/* OmniPay ZNPay Checkout Styles - Bank-Grade International Card Luxury Design */

.op-znpay-card-icons {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
    line-height: 1 !important;
}

.op-znpay-card-icons svg {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    height: 22px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.payment_method_op_znpay .payment_box,
.payment_method_omnipay_znpay .payment_box {
    margin: 8px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.payment_method_op_znpay .payment_box:before,
.payment_method_op_znpay .payment_box:after,
.payment_method_omnipay_znpay .payment_box:before,
.payment_method_omnipay_znpay .payment_box:after {
    display: none !important;
}

/* Luxury Foreign Exchange Rate Callout Notice */
.op-znpay-fx-notice {
    box-sizing: border-box !important;
    width: 100% !important;
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    margin: 6px 0 10px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #166534 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.op-znpay-fx-notice .op-znpay-fx-icon {
    flex-shrink: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

.op-znpay-fx-notice .op-znpay-fx-body {
    flex: 1 !important;
}

.op-znpay-fx-notice strong {
    font-weight: 700 !important;
    color: #14532d !important;
}

/* Minimalist Luxury Trust Shield */
.op-znpay-trust-shield {
    box-sizing: border-box !important;
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    margin: 8px 0 12px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #1e293b !important;
    line-height: 1.5 !important;
    text-align: left !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.op-znpay-trust-shield * {
    box-sizing: border-box !important;
}

/* Content Row: Icon + Explanation */
.op-znpay-shield-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

.op-znpay-shield-icon-col {
    flex-shrink: 0 !important;
    width: 36px !important;
    height: 36px !important;
    background: #eff6ff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2563eb !important;
    margin-top: 1px !important;
}

.op-znpay-shield-text-col {
    flex: 1 !important;
}

.op-znpay-shield-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
    letter-spacing: -0.1px !important;
    line-height: 1.3 !important;
}

.op-znpay-shield-desc {
    font-size: 12.5px !important;
    color: #475569 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

/* Bottom Trust Row */
.op-znpay-shield-trust-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid #edf2f7 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
}

.op-znpay-trust-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 500 !important;
    color: #475569 !important;
}

.op-znpay-trust-sep {
    color: #cbd5e1 !important;
    font-size: 10px !important;
}

/* PLACE ORDER BUTTON - FULL WIDTH AT THE VERY BOTTOM OF CHECKOUT */
body #place_order.op-znpay-styled-button,
body button#place_order.op-znpay-styled-button,
body input#place_order.op-znpay-styled-button,
body .wfacp_place_order_btn.op-znpay-styled-button,
body .wfacp-place-order-wrapper button.op-znpay-styled-button,
body .wfacp_order_summary_place_order button.op-znpay-styled-button,
body #wfacp_place_order.op-znpay-styled-button,
body .wcf-place-order.op-znpay-styled-button,
body #cfw-place-order-btn.op-znpay-styled-button,
body #order_review #place_order.op-znpay-styled-button,
body #order_review button#place_order.op-znpay-styled-button,
body form.checkout #place_order.op-znpay-styled-button,
body .woocommerce form #place_order.op-znpay-styled-button,
body .woocommerce-checkout #place_order.op-znpay-styled-button,
body .woocommerce-checkout form.checkout #order_review #place_order.op-znpay-styled-button,
body .woocommerce-page #place_order.op-znpay-styled-button,
body .woocommerce #payment #place_order.op-znpay-styled-button,
body .woocommerce-checkout #payment #place_order.op-znpay-styled-button,
body .wc-block-components-checkout-place-order-button.op-znpay-styled-button,
body .wfacp_main_form #place_order.op-znpay-styled-button,
body #wfacp_checkout_form #place_order.op-znpay-styled-button {
    background: #0f172a !important;
    background-color: #0f172a !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    padding: 16px 20px !important;
    min-height: 52px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    cursor: pointer !important;
    margin: 16px 0 0 0 !important;
    box-sizing: border-box !important;
    gap: 0 !important;
}

/* Neutralize all theme pseudo-elements that create blank left offsets */
body #place_order.op-znpay-styled-button::before,
body #place_order.op-znpay-styled-button::after,
body button.op-znpay-styled-button::before,
body button.op-znpay-styled-button::after,
body .op-znpay-styled-button::before,
body .op-znpay-styled-button::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Neutralize FunnelKit internal icons & spacers when ZNPay is active */
body .op-znpay-styled-button .wfacp_order_button_icon,
body .op-znpay-styled-button .wfacp_order_button_spacer {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 0px !important;
}

body .op-znpay-styled-button .wfacp_order_button_text {
    flex: 0 0 auto !important;
    width: auto !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Dedicated Lock + Text Container for dead-center alignment */
.op-znpay-btn-content {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    margin: 0 auto !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

.op-znpay-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
}

.op-znpay-btn-text {
    display: inline-block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    text-align: center !important;
}

body #place_order.op-znpay-styled-button:hover,
body button#place_order.op-znpay-styled-button:hover,
body input#place_order.op-znpay-styled-button:hover,
body .wfacp_place_order_btn.op-znpay-styled-button:hover {
    background: #1e293b !important;
    background-color: #1e293b !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3) !important;
    transform: translateY(-1px) !important;
}

body #place_order.op-znpay-styled-button:active,
body button#place_order.op-znpay-styled-button:active,
body input#place_order.op-znpay-styled-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
}

/* Recalculating state & Micro-spinner */
.op-znpay-styled-button.op-recalculating {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

@keyframes op-znpay-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.op-znpay-spinner {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: op-znpay-spin 0.6s linear infinite !important;
    flex: 0 0 auto !important;
}

/* Mobile Viewport Responsiveness */
@media screen and (max-width: 480px) {
    body #place_order.op-znpay-styled-button,
    body button#place_order.op-znpay-styled-button,
    body input#place_order.op-znpay-styled-button {
        padding: 14px 12px !important;
        font-size: 15px !important;
    }

    .op-znpay-btn-text {
        white-space: normal !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .op-znpay-card-icons {
        margin-left: 4px !important;
    }

    .op-znpay-trust-shield {
        padding: 12px !important;
    }
}
