/* PANDAO checkout v1: isolated from Bernabé Digital/Astra global CSS. */
.pandao-checkout-customer {
    margin: 0 0 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    background: #fff;
}

.pandao-checkout-customer h3 {
    margin: 0 0 .4rem;
}

.pandao-checkout-customer-note {
    margin: 0 0 1rem;
}

.pandao-checkout-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1.25rem;
    margin: 0;
}

.pandao-checkout-customer-grid div {
    min-width: 0;
}

.pandao-checkout-customer-grid dt {
    font-weight: 700;
}

.pandao-checkout-customer-grid dd {
    margin: .15rem 0 0;
    overflow-wrap: anywhere;
}

/* The temporary PANDAO gateway is technical only; do not present it as a payment choice. */
.woocommerce-checkout #payment .wc_payment_methods {
    display: none !important;
}

.woocommerce-checkout #payment .payment_box {
    display: none !important;
}

.pandao-deferred-payment-note {
    margin: 0 0 1rem;
    font-size: .95em;
}

@media (max-width: 700px) {
    .pandao-checkout-customer-grid {
        grid-template-columns: 1fr;
    }
}

.woocommerce-checkout #payment {
    background: transparent !important;
}

.woocommerce-checkout #payment .place-order {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Keep PANDAO profile in WooCommerce/Astra's customer column while hiding
 * the duplicate standard billing/shipping form. */
.woocommerce-checkout #customer_details .woocommerce-billing-fields {
    display: none !important;
}

.woocommerce-checkout #customer_details .col-1 {
    width: 100% !important;
    float: none !important;
}

.woocommerce-checkout #customer_details .col-2 {
    display: none !important;
}

.pandao-checkout-customer--error {
    border-color: rgba(180, 0, 0, 0.35);
}

/* Shared PANDAO payment state shown in customer order details. */
.pandao-order-payment-status {
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    background: #fff;
}

.pandao-order-payment-status p {
    margin: 0 0 .65rem;
}

.pandao-order-payment-status p:last-child {
    margin-bottom: 0;
}

.pandao-payment-claim-note {
    font-size: .95em;
}

/* PANDAO historical order customer/logistics snapshot. */
.pandao-order-customer-snapshot{margin-top:28px;border:1px solid #e1e5eb;padding:18px;border-radius:6px}.pandao-order-customer-snapshot h2{margin:0 0 14px;font-size:1.15em}.pandao-order-customer-snapshot .pandao-checkout-customer-grid{margin:0}


/* PANDAO cart quantity: compact shop-style minus / number / plus control. */
.woocommerce-cart-form .quantity.pandao-qty-ready {
    display: inline-flex !important;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #c9d1db;
    border-radius: 999px;
    background: #fff;
    min-height: 42px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.woocommerce-cart-form .quantity.pandao-qty-ready .qty {
    width: 48px !important;
    min-width: 48px !important;
    height: 40px !important;
    padding: 0 4px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #1f2937 !important;
    opacity: 1 !important;
    font-weight: 700;
    text-align: center;
    box-shadow: none !important;
    appearance: textfield;
    -moz-appearance: textfield;
}
.woocommerce-cart-form .quantity.pandao-qty-ready .qty::-webkit-outer-spin-button,
.woocommerce-cart-form .quantity.pandao-qty-ready .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart-form .pandao-qty-button {
    width: 42px;
    min-width: 42px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f3f5f8 !important;
    color: #243247 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    cursor: pointer;
    box-shadow: none !important;
}
.woocommerce-cart-form .pandao-qty-button:hover { background: #e9edf2 !important; }
.woocommerce-cart-form .quantity.pandao-qty-ready .qty:focus {
    outline: 2px solid rgba(38, 54, 74, .16) !important;
    outline-offset: -2px;
}

/* PANDAO guest access: keep login and registration clear and independent of Astra. */
.pandao-registration {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, .12);
}

.pandao-registration h2 {
    margin-bottom: .5rem;
}

.pandao-registration-intro {
    margin-bottom: 1.25rem;
}

.pandao-registration-form {
    max-width: 520px;
}

.pandao-registration-form small {
    display: block;
    margin-top: .3rem;
}

/* PANDAO account access: show one standard flow at a time. */
body.pandao-auth-secondary .pandao-native-login-wrap{display:none!important}.pandao-auth-register-link{margin-top:18px;padding-top:16px;border-top:1px solid rgba(0,0,0,.12);font-size:1em}.pandao-auth-register-link span{margin-right:4px}.pandao-auth-card{max-width:560px;margin-top:8px!important;padding-top:0!important;border-top:0!important}.pandao-auth-switch{margin-top:18px}.pandao-account-security{margin:0 0 20px;padding:18px;border:1px solid #e2e2e2;border-radius:10px;background:#fafafa}.pandao-account-security h3{margin:0 0 12px}.pandao-security-email-row>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}.pandao-security-email-row span{font-weight:600}.pandao-security-email-row small{color:#3b7a46}.pandao-security-form{max-width:520px}.pandao-security-form label{display:block;margin:0 0 12px}.pandao-security-form label>span{display:block;font-weight:600;margin-bottom:6px}.pandao-security-form input{width:100%;box-sizing:border-box}.pandao-delete-profile{margin-top:22px;padding-top:18px;border-top:1px solid #ddd}.pandao-delete-profile h4{margin:0 0 8px}.pandao-danger-button{border-color:#b32d2e!important;color:#b32d2e!important;background:#fff!important}.pandao-danger-button:hover{background:#fff1f1!important}.pandao-auth-mode-login .pandao-registration{display:none!important}

.pandao-checkout-auth-choice{max-width:620px}.pandao-checkout-auth-choice>p{margin:0 0 12px}.pandao-checkout-auth-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}.pandao-checkout-auth-actions .button{margin:0}.pandao-checkout-shop-link{display:inline-flex;align-items:center;min-height:44px}

/* PANDAO v0.11.28: cart quantities are saved automatically. */
.woocommerce-cart-form button[name="update_cart"]{display:none!important}
.wc-proceed-to-checkout .checkout-button.pandao-checkout-waiting{pointer-events:none;opacity:.6}
