/**
 * ABHO Theme — Checkout Page Styles (Single-Column)
 *
 * Layout single-column centrado para checkout WooCommerce.
 * Cada seção é um "card" visual com bordas arredondadas.
 * Métodos de pagamento recebem tratamento especial.
 *
 * @package ABHO
 * @since   1.5.3
 */

/* ============================================================
   0. VARIABLES
   ============================================================ */

.abho-checkout-page,
.woocommerce-checkout {
    --ck-primary: #0057b7;
    --ck-primary-dark: #004a9e;
    --ck-primary-light: #eff6ff;
    --ck-success: #059669;
    --ck-success-light: #f0fdf4;
    --ck-error: #dc2626;
    --ck-error-light: #fef2f2;
    --ck-warning: #d97706;
    --ck-warning-light: #fefce8;
    --ck-border: #e2e8f0;
    --ck-bg: #f8fafc;
    --ck-bg-card: #fff;
    --ck-text: #1e293b;
    --ck-text-muted: #64748b;
    --ck-text-light: #94a3b8;
    --ck-radius: 14px;
    --ck-radius-sm: 10px;
    --ck-radius-xs: 8px;
    --ck-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    --ck-shadow-md: 0 4px 14px rgba(0,0,0,.07);
    --ck-transition: .2s ease;
}

/* ============================================================
   1. PAGE WRAPPER — Single-Column Centered
   ============================================================ */

.abho-checkout-page {
    background: var(--ck-bg);
    min-height: 80vh;
    padding: 40px 16px 60px;
}

.abho-checkout-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================================
   2. SECTION CARDS  (.abho-ck-section)
   ============================================================ */

.abho-ck-section {
    background: var(--ck-bg-card);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius);
    padding: 32px;
    margin-bottom: 20px;
    box-shadow: var(--ck-shadow);
}

.abho-ck-section__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ck-text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ck-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.abho-ck-section__title::before {
    content: '';
    flex-shrink: 0;
    width: 4px;
    height: 22px;
    background: var(--ck-primary);
    border-radius: 3px;
}

/* ============================================================
   3. LOGIN / COUPON (rendered by woocommerce_before_checkout_form)
   ============================================================ */

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: var(--ck-primary-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--ck-radius);
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--ck-text);
    margin-bottom: 16px;
    box-shadow: none;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none;
}

.woocommerce-checkout .woocommerce-form-login-toggle a,
.woocommerce-checkout .woocommerce-form-coupon-toggle a {
    color: var(--ck-primary);
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-checkout .woocommerce-form-login-toggle a:hover,
.woocommerce-checkout .woocommerce-form-coupon-toggle a:hover {
    text-decoration: underline;
}

/* Login form (hidden by default, toggled) */
.woocommerce-checkout form.woocommerce-form-login,
.woocommerce-checkout .checkout_coupon {
    background: var(--ck-bg-card);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--ck-shadow);
}

.woocommerce-checkout form.woocommerce-form-login p.form-row,
.woocommerce-checkout .checkout_coupon p.form-row {
    margin-bottom: 12px;
}

.woocommerce-checkout form.woocommerce-form-login .button,
.woocommerce-checkout .checkout_coupon .button {
    background: var(--ck-primary);
    color: #fff;
    border: none;
    border-radius: var(--ck-radius-sm);
    padding: 11px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--ck-transition);
}

.woocommerce-checkout form.woocommerce-form-login .button:hover,
.woocommerce-checkout .checkout_coupon .button:hover {
    background: var(--ck-primary-dark);
}

/* Coupon input */
.woocommerce-checkout .checkout_coupon .form-row-first {
    float: none;
    width: 100%;
    margin-bottom: 12px;
}

.woocommerce-checkout .checkout_coupon .form-row-last {
    float: none;
    width: auto;
}

/* ============================================================
   4. BILLING FIELDS CARD
   ============================================================ */

.abho-ck-billing .woocommerce-billing-fields > h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ck-text);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ck-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.abho-ck-billing .woocommerce-billing-fields > h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--ck-primary);
    border-radius: 3px;
}

.abho-ck-billing .woocommerce-billing-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ============================================================
   5. FORM FIELDS — Modern Inputs
   ============================================================ */

.woocommerce-checkout .form-row {
    margin: 0;
    padding: 0;
}

/* Default full-width */
.abho-ck-billing .woocommerce-billing-fields__field-wrapper > .form-row {
    flex: 1 1 100%;
}

/* Half-width pairs */
.abho-ck-billing .woocommerce-billing-fields__field-wrapper > .form-row-first,
.abho-ck-billing .woocommerce-billing-fields__field-wrapper > .form-row-last {
    flex: 1 1 calc(50% - 8px);
    min-width: 180px;
    float: none;
    width: auto;
}

/* Labels */
.woocommerce-checkout .form-row label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ck-text);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.woocommerce-checkout .form-row label .required {
    color: var(--ck-error);
    margin-left: 2px;
}

.woocommerce-checkout .form-row label .optional {
    font-weight: 400;
    color: var(--ck-text-light);
    font-size: 0.76rem;
}

/* Inputs, Selects, Textareas */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--ck-text);
    background: var(--ck-bg);
    transition: border-color var(--ck-transition), box-shadow var(--ck-transition), background var(--ck-transition);
    box-sizing: border-box;
    outline: none;
    line-height: 1.4;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: var(--ck-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 87, 183, .1);
}

.woocommerce-checkout .form-row input::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
    color: var(--ck-text-light);
    font-size: 0.88rem;
}

/* Select2 overrides */
.woocommerce-checkout .select2-container .select2-selection--single {
    height: auto;
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    background: var(--ck-bg);
    transition: border-color var(--ck-transition), box-shadow var(--ck-transition);
}

.woocommerce-checkout .select2-container--open .select2-selection--single {
    border-color: var(--ck-primary);
    box-shadow: 0 0 0 3px rgba(0, 87, 183, .1);
}

.woocommerce-checkout .select2-container .select2-selection__rendered {
    padding: 0 16px;
    line-height: 1.4;
    color: var(--ck-text);
    font-size: 0.92rem;
}

.woocommerce-checkout .select2-container .select2-selection__arrow {
    height: 100%;
    right: 12px;
}

/* Textarea */
.woocommerce-checkout .form-row textarea {
    min-height: 90px;
    resize: vertical;
}

/* ============================================================
   6. VALIDATION STATES
   ============================================================ */

.woocommerce-checkout .woocommerce-validated input.input-text,
.woocommerce-checkout .woocommerce-validated select,
.woocommerce-checkout .woocommerce-validated .select2-selection {
    border-color: var(--ck-success) !important;
}

.woocommerce-checkout .woocommerce-validated input.input-text:focus {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .1);
}

.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce-checkout .woocommerce-invalid .select2-selection {
    border-color: var(--ck-error) !important;
}

.woocommerce-checkout .woocommerce-invalid input.input-text:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}

.woocommerce-checkout .abho-field-error {
    display: block;
    font-size: 0.78rem;
    color: var(--ck-error);
    margin-top: 4px;
    font-weight: 500;
}

/* ============================================================
   7. PERSON TYPE (PF/PJ) — Conditional Fields
   ============================================================ */

.woocommerce-checkout .person-type-field {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity .25s ease, max-height .3s ease;
}

.woocommerce-checkout .person-type-field.abho-visible,
.woocommerce-checkout .person-type-field[style*="display: block"] {
    display: block !important;
    opacity: 1;
    max-height: 200px;
    overflow: visible;
}

/* ============================================================
   8. CEP AUTOCOMPLETE — Visual Feedback
   ============================================================ */

.woocommerce-checkout .abho-cep-loading {
    position: relative;
}

.woocommerce-checkout .abho-cep-loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--ck-border);
    border-top-color: var(--ck-primary);
    border-radius: 50%;
    animation: abho-spin .6s linear infinite;
}

@keyframes abho-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.woocommerce-checkout .abho-cep-success {
    position: relative;
}

.woocommerce-checkout .abho-cep-success::after {
    content: '\2713';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ck-success);
    font-size: 1.1rem;
    font-weight: 700;
}

.woocommerce-checkout .abho-cep-error {
    position: relative;
}

.woocommerce-checkout .abho-cep-error::after {
    content: '\2715';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ck-error);
    font-size: 1rem;
    font-weight: 700;
}

.woocommerce-checkout .abho-cep-msg {
    font-size: 0.78rem;
    margin-top: 4px;
    font-weight: 500;
}

.woocommerce-checkout .abho-cep-msg--success {
    color: var(--ck-success);
}

.woocommerce-checkout .abho-cep-msg--error {
    color: var(--ck-error);
}

/* Auto-filled fields highlight */
.woocommerce-checkout .abho-autofilled {
    background: var(--ck-success-light) !important;
    border-color: var(--ck-success) !important;
    transition: background 1.5s ease, border-color 1.5s ease;
}

/* ============================================================
   9. SECTION SEPARATORS — Visual Grouping within billing
   ============================================================ */

/* Separator before CEP (address section) */
.woocommerce-checkout #billing_postcode_field {
    padding-top: 18px;
    margin-top: 8px;
    position: relative;
}

.woocommerce-checkout #billing_postcode_field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ck-border);
}

/* Separator before phone/email */
.woocommerce-checkout #billing_phone_field {
    padding-top: 18px;
    margin-top: 8px;
    position: relative;
}

.woocommerce-checkout #billing_phone_field::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ck-border);
}

/* ============================================================
   10. THIRD PARTY PURCHASE
   ============================================================ */

.woocommerce-checkout #buy_for_third_party_field {
    margin-top: 12px;
    padding: 16px 20px;
    background: var(--ck-warning-light);
    border: 1px solid #fde68a;
    border-radius: var(--ck-radius-sm);
}

.woocommerce-checkout #buy_for_third_party_field label {
    font-weight: 600;
    color: #92400e;
    cursor: pointer;
    font-size: 0.88rem;
    margin: 0;
}

.woocommerce-checkout #buy_for_third_party_field input[type="checkbox"] {
    accent-color: var(--ck-warning);
    margin-right: 8px;
    transform: scale(1.15);
}

/* ============================================================
   11. ADDITIONAL FIELDS / ORDER NOTES
   ============================================================ */

.abho-ck-notes .woocommerce-additional-fields__field-wrapper {
    margin-top: 0;
}

/* ============================================================
   12. ACCOUNT FIELDS — Create Password
   ============================================================ */

.woocommerce-checkout .woocommerce-account-fields {
    margin-top: 20px;
}

.woocommerce-checkout .create-account {
    background: var(--ck-bg);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    padding: 20px;
    margin-top: 8px;
}

.woocommerce-checkout .create-account p:first-child {
    margin-top: 0;
    font-size: 0.88rem;
    color: var(--ck-text-muted);
}

.woocommerce-checkout .password-input {
    position: relative;
}

.woocommerce-checkout .show-password-input {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ck-text-muted);
    padding: 4px;
}

/* ============================================================
   13. ORDER REVIEW TABLE
   ============================================================ */

.abho-ck-review .woocommerce-checkout-review-order-table {
    border: none;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.abho-ck-review .woocommerce-checkout-review-order-table th,
.abho-ck-review .woocommerce-checkout-review-order-table td {
    padding: 14px 16px;
    border: none;
    font-size: 0.9rem;
    vertical-align: middle;
}

.abho-ck-review .woocommerce-checkout-review-order-table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ck-text-muted);
    border-bottom: 2px solid var(--ck-border);
    padding-bottom: 10px;
}

.abho-ck-review .woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.abho-ck-review .woocommerce-checkout-review-order-table .product-name {
    color: var(--ck-text);
    font-weight: 600;
    padding-right: 16px;
}

.abho-ck-review .woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

/* Product thumbnail + name layout */
.abho-review-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.abho-review-thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    object-fit: cover;
    border-radius: var(--ck-radius-xs, 6px);
    border: 1px solid var(--ck-border, #e2e8f0);
    background: #f8fafc;
}

.abho-review-product__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

/* Variation/custom fields in review */
.abho-ck-review dl.variation {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 0;
    padding: 12px 14px;
    background: var(--ck-bg);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-xs);
    font-size: 0.8rem;
}

.abho-ck-review dl.variation dt {
    float: none;
    display: inline;
    font-weight: 600;
    color: var(--ck-text);
    margin: 0;
}

.abho-ck-review dl.variation dd {
    display: inline;
    color: var(--ck-text-muted);
    margin: 0 0 2px;
}

.abho-ck-review dl.variation dd p {
    display: inline;
    margin: 0;
}

/* Subtotal / Total rows */
.abho-ck-review .woocommerce-checkout-review-order-table tfoot tr {
    border-top: 1px solid var(--ck-border);
}

.abho-ck-review .woocommerce-checkout-review-order-table tfoot th {
    font-weight: 600;
    color: var(--ck-text);
    text-align: left;
}

.abho-ck-review .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 600;
}

.abho-ck-review .woocommerce-checkout-review-order-table .order-total th,
.abho-ck-review .woocommerce-checkout-review-order-table .order-total td {
    padding-top: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border-top: 2px solid var(--ck-border);
}

.abho-ck-review .woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
    color: var(--ck-primary);
    font-size: 1.2rem;
}

/* Shipping methods — better spacing */
.abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals td {
    padding: 16px 16px;
}

.abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals ul#shipping_method li {
    margin: 0;
    padding: 10px 14px;
    background: var(--ck-bg, #f8fafc);
    border: 1px solid var(--ck-border, #e2e8f0);
    border-radius: var(--ck-radius-xs, 6px);
    transition: border-color 0.15s;
}

.abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals ul#shipping_method li:has(:checked) {
    border-color: var(--ck-primary, #0067AC);
    background: #f0f7ff;
}

.abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals label {
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals li p {
    margin: 4px 0 0 26px;
    font-size: 0.8rem;
    color: var(--ck-text-muted, #64748b);
}

.abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals li p small {
    font-size: inherit;
}

/* Quantity × badge */
.abho-ck-review .woocommerce-checkout-review-order-table .product-name strong.product-quantity {
    color: var(--ck-text-muted);
    font-weight: 500;
    font-size: 0.85em;
}

/* ============================================================
   14. PAYMENT METHODS — Premium Cards
   ============================================================ */

.woocommerce-checkout #payment {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.woocommerce-checkout #payment::before {
    display: none;
}

/* Title separator before payment */
.woocommerce-checkout #payment::after {
    display: none;
}

/* Payment methods separator line */
.woocommerce-checkout .woocommerce-checkout-review-order > #payment {
    padding-top: 24px;
    margin-top: 0;
    border-top: 1px solid var(--ck-border);
}

/* Payment heading (added via CSS) */
.woocommerce-checkout .wc_payment_methods::before {
    content: 'Forma de Pagamento';
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ck-text);
    margin-bottom: 16px;
    padding-left: 14px;
    position: relative;
}

.woocommerce-checkout .wc_payment_methods::after {
    content: '';
    display: block;
    clear: both;
}

/* Payment methods list */
.woocommerce-checkout .wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: none !important;
}

/* Individual payment method card */
.woocommerce-checkout .wc_payment_method {
    border: 2px solid var(--ck-border);
    border-radius: var(--ck-radius-sm);
    padding: 0;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
    list-style: none;
    background: var(--ck-bg-card);
    overflow: hidden;
}

.woocommerce-checkout .wc_payment_method:hover {
    border-color: #cbd5e1;
}

/* Selected method */
.woocommerce-checkout .wc_payment_method:has(input:checked) {
    border-color: var(--ck-primary);
    background: #f7faff;
    box-shadow: 0 0 0 1px var(--ck-primary), var(--ck-shadow);
}

/* Fallback for browsers without :has() — JS adds this class */
.woocommerce-checkout .wc_payment_method.abho-payment-active {
    border-color: var(--ck-primary);
    background: #f7faff;
    box-shadow: 0 0 0 1px var(--ck-primary), var(--ck-shadow);
}

/* Payment method header (radio + label) */
.woocommerce-checkout .wc_payment_method > label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ck-text);
    cursor: pointer;
    margin: 0;
    padding: 18px 20px;
    transition: background var(--ck-transition);
}

.woocommerce-checkout .wc_payment_method > label:hover {
    background: #f8fafc;
}

.woocommerce-checkout .wc_payment_method:has(input:checked) > label:hover,
.woocommerce-checkout .wc_payment_method.abho-payment-active > label:hover {
    background: transparent;
}

/* Radio button styling */
.woocommerce-checkout .wc_payment_method > input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color var(--ck-transition), box-shadow var(--ck-transition);
    /* Move radio visually inside label via absolute positioning */
    position: absolute;
    opacity: 0;
}

/* Icon indicators for payment methods */
.woocommerce-checkout .wc_payment_method > label::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ck-transition);
    box-sizing: border-box;
}

.woocommerce-checkout .wc_payment_method:has(input:checked) > label::before,
.woocommerce-checkout .wc_payment_method.abho-payment-active > label::before {
    border-color: var(--ck-primary);
    background: var(--ck-primary);
    box-shadow: inset 0 0 0 3px #fff;
}

/* Payment method icons (after label text) */
.woocommerce-checkout .wc_payment_method > label img {
    height: 24px;
    width: auto;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity var(--ck-transition);
}

.woocommerce-checkout .wc_payment_method:has(input:checked) > label img,
.woocommerce-checkout .wc_payment_method.abho-payment-active > label img {
    opacity: 1;
}

/* Payment box (expanded details) */
.woocommerce-checkout .payment_box {
    margin: 0;
    padding: 20px 20px 20px 54px;
    border-top: 1px solid var(--ck-border);
    background: #fafbfd;
    animation: abho-slideDown .3s ease;
}

@keyframes abho-slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.woocommerce-checkout .payment_box p {
    margin: 0 0 8px;
    font-size: 0.86rem;
    color: var(--ck-text-muted);
    line-height: 1.6;
}

.woocommerce-checkout .payment_box p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   15. CREDIT CARD FORM (PagBank)
   ============================================================ */

.woocommerce-checkout .wc-credit-card-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.woocommerce-checkout .wc-credit-card-form .form-row {
    margin: 0;
    flex: 1 1 100%;
}

.woocommerce-checkout .wc-credit-card-form .form-row-first {
    flex: 1 1 calc(50% - 7px);
    float: none;
    width: auto;
}

.woocommerce-checkout .wc-credit-card-form .form-row-last {
    flex: 1 1 calc(50% - 7px);
    float: none;
    width: auto;
}

.woocommerce-checkout .wc-credit-card-form input.input-text {
    font-size: 0.92rem !important;
    letter-spacing: 0.02em;
}

/* Card number — monospace for readability */
.woocommerce-checkout .wc-credit-card-form #pagbank-card-holder-name + .form-row input,
.woocommerce-checkout .wc-credit-card-form .form-row-wide input[name*="card-number"],
.woocommerce-checkout input[id*="card-number"] {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    letter-spacing: 0.08em;
}

/* Installments */
.woocommerce-checkout .pagbank-credit-card-installments {
    margin-top: 8px;
}

.woocommerce-checkout .pagbank-credit-card-installments select {
    padding: 12px 16px;
}

/* Save payment method */
.woocommerce-checkout .woocommerce-SavedPaymentMethods-saveNew {
    margin-top: 8px;
}

.woocommerce-checkout .woocommerce-SavedPaymentMethods-saveNew label {
    font-weight: 400;
    font-size: 0.84rem;
    color: var(--ck-text-muted);
}

/* PIX info */
.woocommerce-checkout .payment_method_pagbank_pix .payment_box p {
    font-size: 0.88rem;
}

/* COD info */
.woocommerce-checkout .payment_method_cod .payment_box p {
    font-size: 0.88rem;
}

/* ============================================================
   16. TERMS & PLACE ORDER
   ============================================================ */

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
    padding: 0 0 0 0;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 0.8rem;
    color: var(--ck-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: var(--ck-primary);
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ck-text);
    cursor: pointer;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    accent-color: var(--ck-primary);
    transform: scale(1.2);
    margin-top: 2px;
    flex-shrink: 0;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text a {
    color: var(--ck-primary);
    font-weight: 600;
}

.woocommerce-checkout .place-order {
    padding: 0;
}

.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    padding: 18px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0057b7 0%, #0073e6 100%);
    color: #fff !important;
    border: none;
    border-radius: var(--ck-radius);
    cursor: pointer;
    transition: all .25s ease;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.woocommerce-checkout #place_order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .6s ease;
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #004a9e 0%, #005ecc 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 87, 183, .35);
}

.woocommerce-checkout #place_order:hover::before {
    left: 100%;
}

.woocommerce-checkout #place_order:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 87, 183, .25);
}

/* ============================================================
   17. NOTICES
   ============================================================ */

.woocommerce-checkout .woocommerce-NoticeGroup {
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-error {
    background: var(--ck-error-light);
    border: 1px solid #fecaca;
    border-radius: var(--ck-radius);
    padding: 16px 20px;
    list-style: none;
    margin: 0 0 16px;
    color: #991b1b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.woocommerce-checkout .woocommerce-error::before {
    display: none;
}

.woocommerce-checkout .woocommerce-error li {
    list-style: none;
    margin-bottom: 4px;
}

.woocommerce-checkout .woocommerce-error li:last-child {
    margin-bottom: 0;
}

.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    background: var(--ck-primary-light);
    border: 1px solid #bfdbfe;
    border-radius: var(--ck-radius);
    padding: 16px 20px;
    color: var(--ck-text);
    font-size: 0.88rem;
    margin: 0 0 16px;
}

.woocommerce-checkout .woocommerce-message::before,
.woocommerce-checkout .woocommerce-info::before {
    display: none;
}

/* ============================================================
   18. LOGIN REQUIRED MESSAGE
   ============================================================ */

.abho-ck-login-required {
    background: var(--ck-warning-light);
    border: 1px solid #fde68a;
    border-radius: var(--ck-radius);
    padding: 24px 28px;
    text-align: center;
    font-size: 0.95rem;
    color: #92400e;
}

.abho-ck-login-required a {
    color: var(--ck-primary);
    font-weight: 600;
}

/* ============================================================
   19. RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
    .abho-checkout-page {
        padding: 20px 12px 40px;
    }

    .abho-ck-section {
        padding: 20px 16px;
        border-radius: var(--ck-radius-sm);
    }

    .abho-ck-billing .woocommerce-billing-fields__field-wrapper > .form-row-first,
    .abho-ck-billing .woocommerce-billing-fields__field-wrapper > .form-row-last {
        flex: 1 1 100%;
    }

    .woocommerce-checkout .wc_payment_method > label {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .woocommerce-checkout .payment_box {
        padding: 16px 16px 16px 44px;
    }

    .woocommerce-checkout .wc-credit-card-form .form-row-first,
    .woocommerce-checkout .wc-credit-card-form .form-row-last {
        flex: 1 1 100%;
    }

    .woocommerce-checkout #place_order {
        font-size: 1rem;
        padding: 16px 20px;
    }

    /* Review table — responsive */
    .abho-review-thumb {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .abho-review-product {
        gap: 10px;
    }

    .abho-ck-review .woocommerce-checkout-review-order-table .product-name {
        font-size: 0.82rem;
        padding-right: 10px;
    }

    .abho-ck-review .woocommerce-checkout-review-order-table .product-total {
        font-size: 0.82rem;
    }

    .abho-ck-review .woocommerce-checkout-review-order-table th,
    .abho-ck-review .woocommerce-checkout-review-order-table td {
        padding: 10px 10px;
    }

    .abho-ck-review .woocommerce-checkout-review-order-table tfoot th,
    .abho-ck-review .woocommerce-checkout-review-order-table tfoot td {
        font-size: 0.85rem;
    }

    /* Shipping options — compact on mobile */
    .abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals td {
        padding: 10px 10px;
    }

    .abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals ul#shipping_method li {
        padding: 8px 10px;
    }

    .abho-ck-review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals label {
        font-size: 0.82rem;
    }
}

/* ============================================================
   20. HIDE SHIPPING SECTION (digital products)
   ============================================================ */

.woocommerce-checkout .woocommerce-shipping-fields {
    display: none;
}

/* ============================================================
   21. CLEAN UP — Remove WC defaults that conflict
   ============================================================ */

.woocommerce-checkout .col2-set {
    display: block;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    float: none;
    width: 100%;
}

/* Remove Elementor overrides if any leak through */
.woocommerce-checkout .e-checkout__container,
.woocommerce-checkout .e-checkout__column,
.woocommerce-checkout .e-checkout__column-start,
.woocommerce-checkout .e-checkout__column-end {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    position: static !important;
}

/* ============================================================
   22. ORDER RECEIVED / THANK YOU PAGE
   ============================================================ */

.abho-thankyou {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Hero card */
.abho-thankyou__card {
    background: var(--ck-bg-card, #fff);
    border: 1px solid var(--ck-border, #e2e8f0);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 4px 20px rgba(0,0,0,.03);
}

.abho-thankyou__card--success {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
    border-color: #bbf7d0;
}

.abho-thankyou__card--error {
    background: linear-gradient(180deg, #fef2f2 0%, #fff 40%);
    border-color: #fecaca;
}

/* Animated icon */
.abho-thankyou__icon {
    margin: 0 auto 20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    animation: abho-thankyou-pop .5s cubic-bezier(.4,0,.2,1);
}

.abho-thankyou__icon--success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
}

.abho-thankyou__icon--error {
    background: linear-gradient(135deg, #fecaca, #fca5a5);
    color: #dc2626;
}

.abho-thankyou__icon--info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

@keyframes abho-thankyou-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.abho-thankyou__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.abho-thankyou__message {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Summary — horizontal strip card */
.abho-thankyou__summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.abho-thankyou__summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.abho-thankyou__summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    min-width: 0;
    position: relative;
}

.abho-thankyou__summary-item + .abho-thankyou__summary-item::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: #e5e7eb;
}

.abho-thankyou__summary-icon {
    flex-shrink: 0;
    color: #94a3b8;
}

.abho-thankyou__summary-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.abho-thankyou__summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    line-height: 1;
}

.abho-thankyou__summary-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.abho-thankyou__summary-value--highlight {
    color: #0057b7;
    font-size: 1rem;
}

/* Extra info row (email, payment method) */
.abho-thankyou__summary-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 22px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.abho-thankyou__summary-extra-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
}

.abho-thankyou__summary-extra-item svg {
    flex-shrink: 0;
    color: #94a3b8;
}

/* Email notice */
.abho-thankyou__notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 24px;
}

.abho-thankyou__notice-icon {
    flex-shrink: 0;
    color: #2563eb;
    margin-top: 2px;
}

.abho-thankyou__notice-content p {
    margin: 0;
    font-size: 0.88rem;
    color: #1e40af;
    line-height: 1.6;
}

/* Status badge */
.abho-thankyou__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.abho-thankyou__status::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.abho-thankyou__status--processing {
    background: #fef3c7; color: #92400e;
}
.abho-thankyou__status--processing::before { background: #f59e0b; }

.abho-thankyou__status--completed {
    background: #d1fae5; color: #065f46;
}
.abho-thankyou__status--completed::before { background: #10b981; }

.abho-thankyou__status--on-hold {
    background: #e0e7ff; color: #3730a3;
}
.abho-thankyou__status--on-hold::before { background: #6366f1; }

.abho-thankyou__status--pending {
    background: #f3f4f6; color: #6b7280;
}
.abho-thankyou__status--pending::before { background: #9ca3af; }

/* Action buttons */
.abho-thankyou__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.abho-thankyou__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    border: none;
}

.abho-thankyou__btn--primary {
    background: linear-gradient(135deg, #0057b7, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,87,183,.25);
}

.abho-thankyou__btn--primary:hover {
    background: linear-gradient(135deg, #004a9e, #1d4ed8);
    box-shadow: 0 4px 14px rgba(0,87,183,.3);
    transform: translateY(-1px);
    color: #fff;
}

.abho-thankyou__btn--secondary {
    background: #0057b7;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,87,183,.2);
}

.abho-thankyou__btn--secondary:hover {
    background: #004a9e;
    box-shadow: 0 4px 14px rgba(0,87,183,.25);
    transform: translateY(-1px);
    color: #fff;
}

.abho-thankyou__btn--outline {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.abho-thankyou__btn--outline:hover {
    border-color: #0057b7;
    color: #0057b7;
    box-shadow: 0 2px 8px rgba(0,87,183,.1);
    transform: translateY(-1px);
}

/* WC order details table on thank-you */
.abho-thankyou .woocommerce-order-details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.abho-thankyou .woocommerce-order-details__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abho-thankyou .woocommerce-order-details__title::before {
    content: '';
    width: 4px; height: 20px;
    background: #0057b7;
    border-radius: 3px;
    flex-shrink: 0;
}

.abho-thankyou .woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.abho-thankyou .woocommerce-table--order-details th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.abho-thankyou .woocommerce-table--order-details td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.abho-thankyou .woocommerce-table--order-details tfoot th,
.abho-thankyou .woocommerce-table--order-details tfoot td {
    border-bottom: none;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
}

/* Customer details section */
.abho-thankyou .woocommerce-customer-details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.abho-thankyou .woocommerce-customer-details .woocommerce-column__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

.abho-thankyou .woocommerce-customer-details address {
    font-style: normal;
    color: #475569;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* PagBank/payment instructions */
.abho-thankyou .woocommerce-order-details + section,
.abho-thankyou .woocommerce-bacs-bank-details,
.abho-thankyou .rm-pagbank-pix {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* Hide default WC's ugly ul overview since we have our own */
.abho-thankyou .woocommerce-order-overview.order_details {
    display: none;
}

/* Hide WCS raw paragraphs only on Pix pending (our hero already covers it) */
[data-pix-polling="1"] > p {
    display: none;
}

/* ============================================================
   PIX AWAITING PAYMENT — Hero + QR Card
   ============================================================ */

.abho-thankyou__card--pix {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 40%);
    border-color: #bfdbfe;
}

.abho-thankyou__icon--pix {
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    color: #2563eb;
    animation: abho-thankyou-pop .5s cubic-bezier(.4,0,.2,1), abho-pix-pulse 2s ease-in-out infinite;
}

@keyframes abho-pix-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.3); }
    50% { box-shadow: 0 0 0 12px rgba(37,99,235,0); }
}

.abho-thankyou__pix-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #0369a1;
}

.abho-thankyou__pix-timer-dot {
    width: 8px; height: 8px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: abho-pix-dot-blink 1.5s ease-in-out infinite;
}

@keyframes abho-pix-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Pix QR card */
.abho-thankyou__pix-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    overflow: hidden;
}

.abho-thankyou__pix-content {
    padding: 32px;
}

/* Override PagBank's raw styles inside our card */
.abho-thankyou__pix-content .pagbank-pix {
    border: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.abho-thankyou__pix-content .pagbank-pix h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    text-align: left;
}

.abho-thankyou__pix-content .pagbank-pix h3:first-of-type {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.abho-thankyou__pix-content .pagbank-pix h3:first-of-type::before {
    content: '';
    display: inline-block;
    width: 4px; height: 20px;
    background: #2563eb;
    border-radius: 3px;
    flex-shrink: 0;
}

.abho-thankyou__pix-content .pagbank-pix ol {
    text-align: left;
    padding-left: 20px;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

.abho-thankyou__pix-content .pagbank-pix img {
    max-width: 200px;
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto 20px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 8px;
    background: #fff;
}

.abho-thankyou__pix-content .pagbank-pix hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

.abho-thankyou__pix-content .pagbank-pix p {
    text-align: left;
    color: #4b5563;
    font-size: 0.9rem;
    margin: 0 0 12px;
}

.abho-thankyou__pix-content .pix-copy-and-paste {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.abho-thankyou__pix-content .pix-copy-and-paste input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    color: #374151;
    background: #f9fafb;
    min-width: 0;
}

.abho-thankyou__pix-content .pix-copy-and-paste button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0057b7, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}

.abho-thankyou__pix-content .pix-copy-and-paste button:hover {
    background: linear-gradient(135deg, #004a9e, #1d4ed8);
    box-shadow: 0 2px 8px rgba(0,87,183,.25);
}

.abho-thankyou__pix-content .pix-copy-and-paste button.abho-copied {
    background: linear-gradient(135deg, #059669, #10b981);
    pointer-events: none;
}

/* Pix confirmed (polling success) */
.abho-thankyou__card--pix-confirmed {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%) !important;
    border-color: #bbf7d0 !important;
}

.abho-thankyou__card--pix-confirmed .abho-thankyou__icon--pix {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important;
    color: #059669 !important;
    animation: abho-thankyou-pop .5s cubic-bezier(.4,0,.2,1) !important;
}

/* Responsive */
@media (max-width: 500px) {
    .abho-thankyou {
        padding: 24px 12px 40px;
    }
    .abho-thankyou__card {
        padding: 32px 20px;
    }
    .abho-thankyou__title {
        font-size: 1.25rem;
    }
    .abho-thankyou__summary-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .abho-thankyou__summary-item + .abho-thankyou__summary-item::before {
        left: 22px; right: 22px;
        top: 0; bottom: auto;
        width: auto; height: 1px;
    }
    .abho-thankyou__actions {
        flex-direction: column;
    }
    .abho-thankyou__btn {
        justify-content: center;
        width: 100%;
    }
    .abho-thankyou__pix-content {
        padding: 20px;
    }
    .abho-thankyou__pix-content .pix-copy-and-paste {
        flex-direction: column;
    }
    .abho-thankyou__pix-content .pagbank-pix img {
        max-width: 160px;
        width: 160px;
        height: 160px;
    }
}

/* =============================================
   Locked Fields (campos pré-preenchidos readonly)
   ============================================= */
.abho-field-locked input,
.abho-field-locked textarea {
    background-color: #f0f0f0 !important;
    cursor: not-allowed !important;
    opacity: 0.85;
    border-color: #d0d0d0 !important;
    color: #555 !important;
    pointer-events: none;
}
.abho-field-locked label::after {
    content: ' 🔒';
    font-size: 0.75em;
}
.abho-field-locked select {
    background-color: #f0f0f0 !important;
    cursor: not-allowed !important;
    opacity: 0.85;
    border-color: #d0d0d0 !important;
    color: #555 !important;
}
#billing_persontype_field {
    display: block !important;
    visibility: visible !important;
}

/* =============================================
   Resumo do pedido simplificado (assinaturas)
   Esconde linhas redundantes quando há recorrência.
   Scoped para checkout COM assinatura via body class.
   ============================================= */
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table thead {
    display: none;
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tfoot > .cart-subtotal:not(.recurring-total),
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tfoot > .order-total:not(.recurring-total) {
    display: none;
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tfoot > .recurring-totals {
    display: none;
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tfoot > .cart-subtotal.recurring-total {
    display: none;
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tbody .cart_item td {
    padding: 12px 0;
    border-bottom: none;
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tbody .cart_item .product-name {
    font-weight: 500;
    color: var(--abho-text, #1a1a2e);
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tbody .cart_item .product-total {
    text-align: right;
    white-space: nowrap;
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tfoot > .order-total.recurring-total th,
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tfoot > .order-total.recurring-total td {
    padding-top: 16px;
    border-top: 2px solid var(--ck-primary, #0067AC);
    font-size: 1.05rem;
}
.abho-checkout-has-subscription .woocommerce-checkout-review-order-table tfoot > .order-total.recurring-total td {
    text-align: right;
}
