/* Payment details at the top of the post. */
.pt-payment-details-wrap { 
	background: #dff0d8;
	border: 0;
	padding: 15px;
	margin-bottom: 15px;
}

.pt-payment-details-error {
	background: #ffbaba;
}

/* Basic form styles. Most based off Bootstrap 3. */

.pt-checkout-form {
    position: relative;
	margin-bottom: 15px;
    border: 1px solid #eaeaea;
    padding: 15px;
    width: 20em;
    border-radius: 4px;
}

.pt-checkout-form-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18,18,18,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.pt-loader {
    position: relative;
    height: 100px;
    width: 100px;
    border-radius: 100px;
    border: 3px solid #fff;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: pt-loader 3s linear infinite;
    animation: pt-loader 3s linear infinite;
}
.pt-loader:after{
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 10px;
    background-color: #fff;
}

@-webkit-keyframes pt-loader{
    0%{-webkit-transform:rotate(0deg);}
    100%{-webkit-transform:rotate(360deg);}
}

@keyframes pt-loader{
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}

.pt-checkout-form input[type="checkbox"],
.pt-checkout-form input[type="radio"], .pt-checkout-form select {
    cursor: pointer;
}

/* Form styles */

.pt-form-group {
    margin-bottom: 15px;
}

.pt-form-group label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
}

.pt-form-group .pt-form-control {
    display: inline-block;
    width: 100%;
    padding: 10px 7px;
    height: 38px;
    font-size: 14px;
    line-height: 1.4;
    color: #555555;
    background-image: none;
    border: 1px solid rgba(51, 51, 51, 0.1);
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.pt-form-group .pt-form-control:focus {
    border: 1px solid #c1c1c1;
    color: #333;
    outline: 0;
    background-color: #fff;
    background-image: none;
}

.pt-form-group .pt-form-control::-moz-placeholder {
    color: #999999;
    opacity: 1;
}

.pt-form-group .pt-form-control:-ms-input-placeholder {
    color: #999999;
}

.pt-form-group .pt-form-control::-webkit-input-placeholder {
    color: #999999;
}

.pt-form-group .pt-form-control[disabled],
.pt-form-group .pt-form-control[readonly],
.pt-form-group fieldset[disabled] .pt-form-control {
    cursor: not-allowed;
    background-color: #eeeeee;
    opacity: 1;
}

.pt-form-group textarea.pt-form-control {
    height: auto;
    width: 100%;
}

.pt-form-group input[type="text"],
.pt-form-group input[type="email"],
.pt-form-group textarea,
.pt-uea-container {
    width: 100%;
}

.pt-form-group input[type="checkbox"],
.pt-form-group input[type="radio"] {
    margin: 0 5px 0 5px;
}

/* User-entered amount */

.pt-form-group .pt-uea-container {
    display: table;
    position: relative;
}

.pt-form-group .pt-uea-container-with-prepend {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
    justify-content: space-between;
}
.pt-form-group .pt-uea-container-amount {
    display: flex;
}
.pt-form-group .pt-uea-container .pt-uea-currency-prepend {
    box-sizing: border-box;
    margin-right: -1px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.pt-form-group .pt-uea-container .pt-uea-currency-prepend.currency-after-amount {
    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    -ms-flex-order: 2;
    -webkit-order: 2;
    order: 2;
}
.pt-form-group .pt-uea-container .pt-uea-currency-before {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: .375rem .75rem;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    font-size: 20px;
    background-color: #eceeef;
    border: 1px solid rgba(0,0,0,.15);
}

/* UEA field is inline-block so EUR dollar sign can be placed on the left of it. */
.pt-form-group .pt-uea-container .pt-uea-custom-amount {
    position: relative;
    display: block;
    width: 1%;
    padding: .375rem .75rem;
    background-clip: padding-box;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    max-width: 90px;
}

/* Discount codes */

.pt-form-group.pt-form-group-field-discount {
    display: block;
    background-color: #f7f7f7;
    padding: 15px;
    overflow: auto;
}

/* Discount code field is inline-block so "Apply" button can be placed on the right of it. */
input.pt-discount {
    width: 75% !important;
    display: inline-block;
    float: left;
    padding: 10px 15px !important;
    -webkit-appearance: none;
    border-radius: 4px;
    font-weight: 400;
}

.pt-discount-label {
    display: block;
}

.pt-discount-button {
    display: inline-block;

    //font-size: 14px;
    float: left;
    padding: 10px 15px;
    -webkit-appearance: none;
    border: 3px solid transparent;

    background-color: #464e56;
    color: #fff;
    margin-left: 20px;
    border-radius: 4px;
    font-weight: 400;
}

.pt-discount-button:hover {
    color: #fff;
    background-color: #5a6268;
    border-color: #545b62;
}

.pt-discount-button::-moz-focus-inner {
    border: 0;
}

.pt-form-group .pt-discount .pt-discount-button {
    margin-left: 10px;
}

.pt-form-group .pt-discount-false,
.pt-form-group .pt-discount-email-error,
.pt-form-group .pt-discount-used {
    color: #a94442;
    display: inline-block;
}

.pt-form-group .pt-discount-true, .pt-form-group + .pt-discount-true {
    color: #4CAF50;
    display: inline-block;
}

/* Radio buttons & groups */
.pt-radio-group {
    margin-bottom: 5px;
}

.pt-radio-group ul {
    display: none;
}

.pt-radio-group label, .pt-checkbox-group label {
    font-weight: normal;
    display: block;
    /* margin: 0; Removed by David in 1.1.0, caused issues in some themes*/
    cursor: pointer;
}

.pt-radio-group input[type="radio"] {
    float: left;
    margin-top: 7px;
    margin-right: 7px;
    -webkit-appearance: radio;
    -moz-appearance: radio;
    -ms-appearance: radio;
    -o-appearance: radio;
}

/* Explain prefilling of fields */
.pt-field-prefill-warning-hint {
    cursor: pointer;
 }

.pt-field-prefill-warning-explanation {
    display: none;
 }

.pt-field-prefill-warning {
    font-size: 80%;
    padding: 0 1em;
    color: #6a737d;
    border-left: 0.25em solid #dfe2e5;
    font-style: italic;
}

/* Button */
.pt-checkout-form button.pt-payment-btn {
    -webkit-appearance: button;
    background-color: #343a40;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 20px;
    text-transform: uppercase;
    display: none;
    border-radius: 4px;
}

.pt-checkout-form button.pt-payment-btn:hover {
    background-color: #23272b;
}

/* Parsley JS Validation styles */

.pt-form-group ul.parsley-errors-list,
.pt-form-group ul.parsley-errors-list li {
    color: #a94442;
    list-style-type: none;
}

.pt-checkout-form ul.parsley-errors-list {
    display: none;
}

.pt-checkout-form ul.parsley-errors-list.filled {
    display: inline;
}

.parsley-required {
    color: #a94442;
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}
.pt-form-alert {
    padding: 20px;
    background-color: #ff9800;
    color: white;
    margin: 5px 0 15px 0;
    text-align: center;
    border-radius: 4px;
}

.pt-option-disabled {
    text-decoration: line-through;
    background-color: #80808038;
}

/* Crowdfunding */

.pt-crowdfunding-wrapper .pt-crowdfunding-label {
    font-weight: bold;
}
.pt-crowdfunding-wrapper .pt-crowdfunding-progress-bar {
    border: 1px solid #ccc;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}
.pt-crowdfunding-wrapper .pt-crowdfunding-progress-bar-content {
    position:  absolute;
    width: 100%;
    color: #000000;
    font-weight: bold;
    font-family: inherit;
    line-height: 30px;
}
.pt-crowdfunding-wrapper .pt-crowdfunding-progress-bar-fullness {
    color: #fff;
    height: 30px;
    background-color: #4CAF50;
    text-align: center;
}

/* Quantity box */
.pt-quantity-input {
    max-width: 50px;
    margin-top: 15px;
    float: right;
    padding-left:10px;
    width:45px;
    text-align:center;
}
/* Quantity amount */
.pt-quantity-amount {
    float: right;
}

.pt-form-group-label.has-quantity-input .pt-quantity-input,
.pt-form-group-checkbox-new.has-quantity-input .pt-quantity-input {
    margin-top: 0px;
    /*margin-left: 15px;*/
    float: right;
    padding: 0px;
}
.limit-error-message {
    margin-bottom: 0;
}

.pt-items-left {
    margin: 5px;
}


/* Paytium login */
.paytium-login-form-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
}
.paytium-login-form-wrapper {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 100%;
}
#paytium_login_form {
    width: 560px;
    margin: auto;
    padding: 30px 30px 0 30px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.paytium-login-close {
    color: #fff;
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 50px;
    cursor: pointer;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.paytium-overflow-hidden {
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    #paytium_login_form {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 30px;
    }
    .paytium-login-close {
        color: #000;
    }
    /*.pt-quantity-input[type=number]::-webkit-inner-spin-button,*/
    /*.pt-quantity-input[type=number]::-webkit-outer-spin-button {*/
        /*width: 15px;*/
    /*}*/
}

/* input number quantity spinner */
.pt-quantity-input[type=number]::-webkit-inner-spin-button,
.pt-quantity-input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.paytium-quantity-input {
    display: inline-flex;
    float: right;
    margin-top: -10px;
    margin-left: 15px;
}
.pt-quantity-input[type=number] {
    width: 50px;
    border: solid 1px lightgrey;
    border-radius: 0;
    text-align: center;
    margin-left: 0;
}
.paytium-spinner {
    border: solid 1px lightgrey;
}
.pt-uea-container .paytium-spinner {
    margin-top: 15px;
}
.paytium-spinner:hover {
    background: lightgrey;
}
.paytium-spinner:first-child {
    border-radius: 3px 0 0 3px;
}
.paytium-spinner:last-child {
    border-radius: 0 3px 3px 0;
}

/* discount checkbox */
.pt-discount-tumbler-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 15px;
    cursor: pointer;
}
.pt-discount-tumbler-switch.checked {
    background-color: deepskyblue;
}

.pt-discount-checkbox-tumbler {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.pt-form-group input[type="checkbox"].pt-discount-checkbox {
    display: none;
}

.pt-form-group input[type="checkbox"].pt-discount-checkbox:checked + .pt-discount-checkbox-tumbler {
    transform: translateX(30px);
}

.pt-form-group-field-discount-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media screen and (max-width: 540px) {
    .pt-form-group-field-discount-checkbox, .pt-form-group .pt-discount-tumbler-switch {
        display: block;
    }
}