/*
 * Copyright ETS Software Technology Co., Ltd
 *
 * NOTICE OF LICENSE
 *
 * This file is not open source! Each license that you purchased is only available for 1 website only.
 * If you want to use this file on more websites (or projects), you need to purchase additional licenses.
 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future.
 *
 * @author ETS Software Technology Co., Ltd
 * @copyright  ETS Software Technology Co., Ltd
 * @license    Valid for 1 website (or project) for each purchase of license
 */

body#checkout section.checkout-step .payment-options label {
    display: block;
    margin-bottom: 0;
}
.ets_payment_method .payment-option {
    display: flex;
    display: -webkit-flex;
    align-items: center;
}
.ets-opc-checkout .delivery-options .col-sm-1 {
    padding-left: 0;
    padding-right: 0;
}
.carrier-name-img .carrier-name img {
    margin-right: 8px;
}
.ets-opc-checkout .payment-options label {
    text-align: left;
}
.ets-opc-checkout .payment-options .js-additional-information img {
    float: left;
}
.ets-opc-checkout .payment-options .js-additional-information section {
    display: unset;
}
label#label_delivery_message {
    cursor: auto!important;
}
.payment-options .custom-radio input[type="radio"] + span {
    border: none;
    background: transparent;
    border-radius: 50%;
    opacity: 1;
}
.ets-opc-checkout .payment-options .js-additional-information {
    margin-bottom: 15px;
}
.ets-opc-checkout .payment-options .alert {
    margin-bottom: 0;
}
body#checkout #hook-display-after-carrier {
    margin-top: 10px;
}
.ets-opc-checkout .jp-card .jp-card-front .jp-card-lower .jp-card-number{
    min-height: 45px;
}
.ets-opc-checkout .jp-card .jp-card-front .jp-card-lower .jp-card-name {
    font-size: 18px;
    width: 163px;
}
.ets-opc-checkout .jp-card .jp-card-front .jp-card-lower .jp-card-number {
    font-size: 21px;
}
.js-additional-information {
    margin-bottom: 15px;
}
.ets-opc-checkout #paymentcloud_formblock .jp-card-container{
    padding: 0 15px;
    max-width: 100%;
    min-width:100%;
    height: 180px;
}
.ets-opc-checkout #paymentcloud_form input.form-control {
    font-weight: normal;
    background: #fff;
    font-size: 14px;
}
.ets-opc-checkout .jp-card .jp-card-front .jp-card-lower {
    width: 252px;
    position: absolute;
    left: 5%;
    bottom: 10px;
    max-width: 100%;
}
.ets-opc-checkout .jp-card .jp-card-back .jp-card-shiny:after{
    max-width: 200px;
}
.ets-opc-checkout #paymentcloud_formblock .jp-card{
    max-width: 100%;
    min-width:100%;
}
#ets-opc-checkout-form .row.delivery-option {
    display: flex;
    display: -webkit-flex;
    padding-top: 10px;
}
#ets-opc-checkout-form .row.delivery-option:hover {
    background: #fafafa;
}
#ets-opc-checkout-form .row.delivery-option .carrier-name {
    text-align: left;
    font-weight: normal;
    display: flex;
    align-items: center;
    padding-bottom: 3px;
    font-size: 14px;
}
.delivery-options .delivery-option-2 .left_content {
    text-align: left;
    display: flex;
}
.payment-option img,
.js-additional-information img,
.ets-opc-checkout .payment-desc img {
    margin-right: 8px;
    max-width: 60px!important;
    margin-bottom: 5px;
    height: auto!important;
}
#ets-opc-checkout-form .row.delivery-option .row > div > div {
    padding-left: 0;
    padding-right: 0;
}
#ets-opc-checkout-form .row.delivery-option label,
#ets-opc-checkout-form .payment-options label{
    cursor: pointer;
    margin-bottom: 15px;
}
#ets-opc-checkout-form .row.delivery-option span.carrier-delay {
    color: #99abab;
    font-size: 13px;
}
#conditions-to-approve input,
#conditions-to-approve .condition-label label{
    cursor: pointer;
    text-align: left;
}
.ets-opc-checkout.block-payment .content {
    padding: 0!important;
}
.ets-opc-checkout .payment-options > div {
    clear: both;
    width: 100%;
}
.ets-opc-checkout .additional-information section.payment_fee {
    margin-top: -5px;
}
.ets-opc-checkout .additional-information section.payment_fee .payment-desc {
    margin-bottom: 5px;
}
.ets-opc-checkout .js-additional-information,
.ets-opc-checkout .js-payment-option-form,
.ets-opc-checkout .payment-option{
    clear: both;
    width: 100%;
}
.ets-opc-checkout .payment-option {
    margin-bottom: 8px;
}
label#label_delivery_message {
    text-align: left;
}
textarea#delivery_message {
    border: 1px solid #ddd;
    max-width: 100%;
    font-size: 14px;
    padding: 5px 12px;
    min-height: 70px;
}
span[paypal-mark-container] + span[paypal-mark-container] {
    display: none!important;
}
.ets_payment_method {
    padding: 10px 15px;
}
.ets_payment_method:hover {
    background: #fafafa;
}
body#checkout .ets_payment_method .additional-information {
    margin-left: 0;
    padding-left: 20px;
    margin-bottom: 0;
    margin-top: 6px;
}
.ets-opc-checkout .payment-option {
    margin-bottom: 0!important;
}
.ets-opc-checkout .payment-options {
    font-size: 14px;
}
.ets-opc-checkout .payment-options > .alert {
    max-width: calc(100% - 30px);
    margin: 0 15px 15px;
}
.ets_payment_method .definition-list dl {
    margin-bottom: 0;
}
.ets_payment_method span.custom-radio span {
    opacity: 0;
}
#fee_paypal + #paypalwithfee-feerow, #paypalwithfee-feerow + #fee_paypal,#fee_paypal + #fee_paypal,#paypalwithfee-feerow + #paypalwithfee-feerow{
    display: none;
}
.ets-opc-col div#conditions-to-approve {
    margin-bottom: 41px;
    clear: both;
    margin-top: 0;
}
#checkout #delivery #delivery_message {
    float: none!important;
    margin-bottom: 0!important;
    border-radius: 4px;
}
div#shipping-methods {
    padding: 0 15px 15px;
}
.ets-opc-checkout.block-shipping {
    padding-left: 0;
    padding-right: 0;
}
.ets-opc-checkout.block-shipping .block-content {
    padding-left: 15px;
    padding-right: 15px;
}
#conditions-to-approve li {
    display: flex;
    display: -webkit-flex;
}
#ets-opc-checkout-form #conditions-to-approve span.checkbox.ets_checkinput {
    font-size: 0;
}
div#payment-confirmation {
    display: none !important;
}
#ps_checkout-binary-form{
    height:0;
    opacity:0;
    overflow:hidden;
    display:block !important;
}
#ps_checkout-binary-form.popup{
    display: block;
    opacity: 1;
    height: auto;
    overflow: visible;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex!important;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 1000;
}
#ps_checkout-binary-form.popup:before {
    content: '';
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    opacity: 0.9;
    position: absolute;
    top: 0;
}
div#ps_checkout-buttons-container {
    width: 500px;
    margin: 0 auto;
    max-width: 90%;
}
.box_more_fee_shipping .box_shipping_free {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #bcdff1;
    height: 16px;
    flex: 1;
    -webkit-flex: 1;
    margin: 2px 0;
    border-radius: 40px;
    overflow: hidden;
}
.ets-opc-checkout .alert-info.buy_more_fee_shipping {
    margin-bottom: 25px;
    border-radius: 2px;
}
.box_more_fee_shipping {
    display: flex;
    display: -webkit-flex;
    margin-top: 10px;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
    width: 100%;
}
.box_more_fee_shipping span.start {
    margin-right: 10px;
    line-height: 20px;
    color: #31708f;
    border-radius: 4px;
    white-space: nowrap;
}
.box_more_fee_shipping span.end {
    margin-left: 10px;
    line-height: 20px;
    color: #31708f;
    border-radius: 4px;
    min-width: 40px;
    text-align: right;
    white-space: nowrap;
}
.box_more_fee_shipping .box_total_cart {
    background: #0cb7e2 none repeat scroll 0 0;
    height: 100%;
    width:10%;
}
.box_more_fee_shipping .end {
    float: right;
}
.ets-opc-checkout.block-payment.popup {
    background: #fff none repeat scroll 0 0;
    left: 50%;
    margin: 0;
    overflow: auto;
    position: fixed;
    top: 50%;
    transform: translate3d(-50%,-50%,0);
    width: min(760px, 94vw);
    z-index: 10000;
    box-shadow: 0 0 16px 0 #aaa;
    max-width: 94vw;
    max-height: 88vh;
}
.block-payment.popup .payment-options .payment-option ,.block-payment.popup .js-additional-information{
    display:none!important;
}
.block-payment.popup.ets-opc-card-popup .payment-options .payment-option.ets-opc-active-card-option,
.block-payment.popup.ets-opc-card-popup .js-additional-information.ets-opc-active-card-details {
    display: block !important;
}
.block-payment.popup.ets-opc-card-popup .js-additional-information.ets-opc-active-card-details {
    padding: 15px 20px 12px;
}
.block-payment.popup.ets-opc-card-popup .ets-opc-card-popup-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 18px;
}
.block-payment.popup.ets-opc-card-popup .ets-opc-card-popup-footer .ets-opc-card-submit {
    min-width: 220px;
}
@media (max-width: 479px) {
    .block-payment.popup.ets-opc-card-popup .ets-opc-card-popup-footer .ets-opc-card-submit {
        min-width: 0;
        width: 100%;
    }
}
.ets-opc-checkout.block-payment.popup .js-payment-binary {
    display: none !important;
}
.ets-opc-checkout.block-payment.popup .js-payment-binary.ets-opc-active-wallet {
    display: block !important;
    padding: 0 15px 20px;
}
.ets-opc-checkout.block-payment.popup .js-payment-binary.ets-opc-active-wallet .ps_checkout-button {
    min-height: 58px;
}
body#checkout #delivery, body#checkout #gift_message {
    border-color: #b2ced2;
    max-width: 100%;
    padding: 10px;
}
body#checkout #gift_message {
    font-size: 14px;
    color: #7a7a7a;
    min-height: 70px;
}
.ets-opc-checkout .paypal-buttons.paypal-buttons-context-iframe:not(.popup) {
    display:block;
}
body .paypal-buttons-context-iframe.popup {
    align-items: center;
    background: rgba(0, 0, 0, 0.7) none repeat scroll 0 0;
    border: 0 none;
    bottom: 0;
    display: flex !important;
    height: 100vh !important;
    justify-content: center;
    left: 0;
    max-height: none !important;
    max-width: none !important;
    position: fixed !important;
    right: 0;
    top: 0;
    width: 100% !important;
    z-index: 10000;
}
body .paypal-buttons-context-iframe.popup iframe.component-frame.visible {
    display: block;
    float: none;
    height: 56px;
    left: 50% !important;
    max-height: none;
    min-height: 56px;
    position: absolute;
    top: 50% !important;
    transform: translate3d(-50%, -50%, 0px);
    width: min(420px, 92vw) !important;
    max-width: 420px !important;
}
body .paypal-buttons-context-iframe.popup iframe[name^="__detect_close"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.ets-opc-checkout.popup .js-payment-ps_checkout-paypal  .paypal-buttons.paypal-buttons-context-iframe {
    display:block!important;
}
.ets-opc-checkout.block-payment.popup .paypal-buttons.paypal-buttons-context-iframe:not(.popup) {
    display: block !important;
}
#ets-opc-checkout-form.stripe_official_popup #js-stripe-payment-form {
    position: fixed;
    background: rgba(0,0,0,0.8);
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-content: center;
    text-align: center;
}
/*stripe_official*/
#ets-opc-checkout-form:not(.stripe_official_popup) #js-stripe-payment-form,
#ets-opc-checkout-form:not(.stripe_official_popup) #js-stripe-payment-element {
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}
#ets-opc-checkout-form.stripe_official_popup #js-stripe-payment-form #js-stripe-payment-element {
    margin: 30px auto 0;
    width: 90%;
    max-width: 700px;
    background: #fff;
    padding: 30px;
}
.stripe_footer {
    background: #fff;
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
}
#mondialrelay_save-relay.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}
#mondialrelay_save-relay .mr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ets-opc-spin 0.8s linear infinite;
    -webkit-animation: ets-opc-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
#mondialrelay_content.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}
#mondialrelay_content.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    border: 3px solid #0cb7e2;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ets-opc-spin 0.8s linear infinite;
    -webkit-animation: ets-opc-spin 0.8s linear infinite;
    z-index: 100;
}
/* Tích hợp Popup PayPal */
body#checkout.paypal-popup-open {
    overflow: hidden;
}
body#checkout.paypal-popup-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
div[paypal-button-container].paypal-smart-button-popup.popup,
[paypal-bnpl-button-container].paypal-smart-button-popup.popup,
[paypal-venmo-button-container].paypal-smart-button-popup.popup,
#paypal-sepa.paypal-smart-button-popup.popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    z-index: 10001 !important;
    width: 95%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    min-height: 120px;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    animation: etsOpcFadeInScale 0.3s ease-out;
}
/* Ẩn module gốc trên giao diện checkout bình thường bằng cách cho height = 0 */
div[paypal-button-container]:not(.popup),
[paypal-bnpl-button-container]:not(.popup),
[paypal-venmo-button-container]:not(.popup),
#paypal-sepa:not(.popup) {
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
div[paypal-button-container].popup,
[paypal-bnpl-button-container].popup {
    display: block !important;
}
/* Tránh tình trạng duplicate nút hiển thị */
div[paypal-button-container] .paypal-buttons:not(:last-child),
[paypal-bnpl-button-container] .paypal-buttons:not(:last-child) {
    display: none !important;
}
.ets-opc-checkout.block-payment.popup .ets_payment_method {
    padding: 0 15px;
}
@media (max-width: 767px) {
    .box_more_fee_shipping span.start,
    .box_more_fee_shipping span.end {
        white-space: normal;
        word-break: break-word;
    }
}
