/**
 * FWA Vietnam Checkout - Clean Layout
 * Compatible with Puca theme checkout structure
 *
 * Scoped under body.fwa-vn-checkout for easy per-site override.
 * Each field has a unique .fwa-field-* class for granular customization.
 *
 * Puca uses: .details-check (billing/shipping) + .details-review (order review)
 * Column modes: .checkout-column-one (stacked) / .checkout-column-two (side-by-side)
 *
 * @package FWA Add-ons
 * @since 2.2.0
 */

/* ========================================
   Hidden Fields
   ======================================== */

.fwa-vn-checkout .fwa-hidden-field,
.fwa-vn-checkout #billing_country_field.fwa-hidden-field,
.fwa-vn-checkout #shipping_country_field.fwa-hidden-field {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ========================================
   Two-Column Page Layout (Puca structure)
   ======================================== */

@media (min-width: 992px) {
    .woocommerce-checkout.fwa-vn-checkout form.checkout.checkout-column-two {
        display: grid;
        grid-template-columns: 1fr 38%;
        gap: 24px;
        width: 100%;
    }

    .fwa-vn-checkout form.checkout.checkout-column-two .details-check,
    .fwa-vn-checkout form.checkout.checkout-column-two .details-review {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .fwa-vn-checkout form.checkout.checkout-column-two .details-review .order-review {
        position: sticky;
        top: 24px;
    }

    /* Error notices must span full grid width */
    .fwa-vn-checkout form.checkout.checkout-column-two .woocommerce-NoticeGroup,
    .fwa-vn-checkout form.checkout.checkout-column-two .woocommerce-notices-wrapper {
        grid-column: 1 / -1;
    }
}

/* ========================================
   Checkout Notices (error / success / info)
   ======================================== */

.fwa-vn-checkout .woocommerce-NoticeGroup {
    margin-bottom: 16px;
}

p.checkout-inline-error-message {
    display: flex;
    width: 100%;
    color: #ff0000;
    font-size: 14px;
    padding: 5px 10px;
    justify-content: flex-end;
}

.fwa-vn-checkout .woocommerce-error,
.fwa-vn-checkout .woocommerce-message,
.fwa-vn-checkout .woocommerce-info {
    list-style: none;
    margin: 0 0 12px;
    padding: 12px 16px 12px 44px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;    
    margin-top: 15px;
}

.fwa-vn-checkout .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.fwa-vn-checkout .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.fwa-vn-checkout .woocommerce-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.fwa-vn-checkout .woocommerce-error::before,
.fwa-vn-checkout .woocommerce-message::before,
.fwa-vn-checkout .woocommerce-info::before {
    position: absolute;
    left: 14px;
    top: 12px;
    font-size: 18px;
    line-height: 1;
}

.fwa-vn-checkout .woocommerce-error::before {
    content: "✕";
    color: #dc2626;
    font-weight: 700;
}

.fwa-vn-checkout .woocommerce-message::before {
    content: "✓";
    color: #16a34a;
    font-weight: 700;
}

.fwa-vn-checkout .woocommerce-info::before {
    content: "ℹ";
    color: #2563eb;
    font-weight: 700;
}

.fwa-vn-checkout .woocommerce-error li,
.fwa-vn-checkout .woocommerce-message li,
.fwa-vn-checkout .woocommerce-info li {
    list-style: none;
    margin: 0;
    padding: 2px 0;
}

.fwa-vn-checkout .woocommerce-error li + li,
.fwa-vn-checkout .woocommerce-message li + li,
.fwa-vn-checkout .woocommerce-info li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 6px;
    padding-top: 6px;
}

.fwa-vn-checkout .woocommerce-error li strong,
.fwa-vn-checkout .woocommerce-message li strong,
.fwa-vn-checkout .woocommerce-info li strong {
    font-weight: 600;
}

/* ========================================
   Field Grid Layout (CSS Grid — no gap hacks)
   ======================================== */

.fwa-vn-checkout .woocommerce-billing-fields__field-wrapper,
.fwa-vn-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

/* Half-width fields */
.fwa-vn-checkout .form-row.form-row-first,
.fwa-vn-checkout .form-row.form-row-last {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Full-width fields */
.fwa-vn-checkout .form-row.form-row-wide,
.fwa-vn-checkout .fwa-field-address,
.fwa-vn-checkout #billing_address_1_field,
.fwa-vn-checkout #shipping_address_1_field {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.fwa-vn-checkout #billing_address_1_field.form-row .woocommerce-input-wrapper {
    max-width: 100%;
}
/* ========================================
   Input / Select / Textarea — Uniform sizing
   ======================================== */

.fwa-vn-checkout .form-row label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
}

.fwa-vn-checkout .form-row input.input-text,
.fwa-vn-checkout .form-row select,
.fwa-vn-checkout .form-row textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    line-height: 42px;
    transition: border-color 0.2s ease;
    background-color: #fff;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.fwa-vn-checkout .form-row textarea {
    height: auto;
    line-height: 1.5;
    padding: 10px 12px;
}

.fwa-vn-checkout .form-row input.input-text:focus,
.fwa-vn-checkout .form-row select:focus,
.fwa-vn-checkout .form-row textarea:focus {
    border-color: var(--tb-theme-color, #2b87c3);
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 135, 195, 0.1);
}

.fwa-vn-checkout .form-row select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6'%3E%3Cpath d='M0 0l6 6 6-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* Select2/selectWoo container — match input height */
.fwa-vn-checkout .form-row .select2-container .select2-selection--single {
    height: 42px;
    border-radius: 10px;
    padding: 0 12px;
    line-height: 42px;
    padding: 0;
}

.fwa-vn-checkout .woocommerce select#billing_city {
    max-width: 100%;
}

.fwa-vn-checkout .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding: 0;
    color: #333;
}

.fwa-vn-checkout .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
    right: 8px;
}

/* woocommerce-input-wrapper — make it full width */
.fwa-vn-checkout .form-row .woocommerce-input-wrapper {
    width: 100%;
    display: block;
}

/* Required asterisk */
.fwa-vn-checkout .form-row label .required {
    color: #e74c3c;
    font-weight: bold;
}

/* Optional field hint */
.fwa-vn-checkout .form-row .optional {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    font-style: italic;
}

/* ========================================
   Section Headers
   ======================================== */

.fwa-vn-checkout .details-check h3,
.fwa-vn-checkout h3#ship-to-different-address {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.fwa-vn-checkout .details-review h3#order_review_heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8e8e8;
}

/* ========================================
   Order Review (Right column)
   ======================================== */

.fwa-vn-checkout .details-review .order-review {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px 15px;
    position: sticky;
    top: 20px;
}

.fwa-vn-checkout .details-review .subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

/* ---- Product Card Layout (Shopee/Tiki style) ---- */

.fwa-order-review__products {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fwa-order-review__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fwa-order-review__item:last-child {
    border-bottom: none;
}

.fwa-order-review__item-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}

.fwa-order-review__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fwa-order-review__item-info {
    flex: 1;
    min-width: 0;
}

.fwa-order-review__item-name {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.fwa-order-review__item-name a {
    color: inherit;
    text-decoration: none;
}

.fwa-order-review__item-name a:hover {
    color: var(--tb-theme-color, #2b87c3);
}

.fwa-order-review__item-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.fwa-order-review__item-meta dl {
    display: inline;
    margin: 0;
}

.fwa-order-review__item-meta dt,
.fwa-order-review__item-meta dd {
    display: inline;
    margin: 0;
    padding: 0;
}

.fwa-order-review__item-meta dd::after {
    content: '  ';
}

.fwa-order-review__item-price-line {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.fwa-order-review__item-qty {
    color: #999;
    margin-left: 4px;
}

.fwa-order-review__item-subtotal {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e74c3c;
    text-align: right;
    white-space: nowrap;
    padding-top: 2px;
}

/* ---- Totals Section ---- */

.fwa-order-review__totals {
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    padding-top: 12px;
}

.fwa-order-review__totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #555;
}

.fwa-order-review__totals-row > span:last-child {
    font-weight: 500;
    color: #333;
}

.fwa-order-review__totals-discount {
    background: #f0fdf4;
    margin: 2px -12px;
    padding: 8px 12px !important;
    border-radius: 6px;
    border-left: 3px solid #27ae60;
}

.fwa-order-review__totals-discount > span:first-child {
    color: #1e8e4e;
    font-weight: 600;
}

.fwa-order-review__totals-discount span:last-child {
    color: #27ae60;
}

.fwa-order-review__totals-total {
    border-top: 1px solid #e5e7eb;
    margin-top: 6px;
    padding-top: 12px !important;
    font-size: 15px !important;
}

.fwa-order-review__totals-total > span:first-child {
    font-weight: 700;
    color: #1a3a5c;
}

.fwa-order-review__totals-total > span:last-child {
    font-weight: 700;
    color: #e74c3c;
    font-size: 17px;
}

/* WooCommerce shipping rows inside totals */
.fwa-order-review__totals .woocommerce-shipping-totals td,
.fwa-order-review__totals .woocommerce-shipping-totals th {
    padding: 6px 0;
    border: none;
    font-size: 13px;
    color: #555;
}

/* Back to cart link */
.fwa-back-to-cart {
    text-align: center;
    padding: 10px 0 4px;
}

.fwa-back-to-cart a {
    font-size: 13px;
    color: var(--tb-theme-color, #2b87c3);
    text-decoration: none;
    transition: color 0.2s;
}

.fwa-back-to-cart a:hover {
    color: #1a3a5c;
    text-decoration: underline;
}

/* ========================================
   Payment Methods
   ======================================== */

.fwa-vn-checkout #payment {
    border-radius: 8px;
}

.fwa-vn-checkout #payment ul.payment_methods {
    padding: 0 !important;
    margin: 0;
    border: none !important;
}

.fwa-vn-checkout #payment ul.payment_methods li {
    padding: 0 16px;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    list-style: none;
}

.fwa-vn-checkout #payment_heading {
    margin: 10px 0;
}

.fwa-vn-checkout #payment ul.payment_methods li:last-child {
    border-bottom: none;
}

.fwa-vn-checkout #payment ul.payment_methods li label {
    font-weight: 600;
    cursor: pointer;
    display: inline;
    vertical-align: middle;
}

.fwa-vn-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 8px;
    vertical-align: middle;
}

.fwa-vn-checkout #payment ul.payment_methods li img {
    display: block;
    max-height: 28px;
    margin-top: 6px;
    margin-left: 26px;
}

.fwa-vn-checkout #payment ul.payment_methods li .payment_box {
    padding: 10px 0 4px 26px;
    margin: 0;
    font-size: 13px;
    color: #666;
    background: none !important;
}

.fwa-vn-checkout #payment ul.payment_methods li .payment_box::before {
    display: none;
}

/* Privacy & Terms */
.fwa-vn-checkout #payment .woocommerce-privacy-policy-text {
    font-size: 13px;
    color: #666;
    padding: 10px 16px;
    margin: 0;
}

.fwa-vn-checkout #payment .woocommerce-privacy-policy-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.fwa-vn-checkout #payment .woocommerce-terms-and-conditions-wrapper {
    padding: 8px 16px;
    margin: 0;
}

.fwa-vn-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.fwa-vn-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.fwa-vn-checkout #payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox a {
    color: var(--tb-theme-color, #2b87c3);
    text-decoration: underline;
}

/* Place order button */
.fwa-vn-checkout #place_order {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: none;
    background: var(--tb-theme-color, #2b87c3);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.fwa-vn-checkout #place_order:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========================================
   Coupon Section
   ======================================== */

.fwa-vn-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 0;
}

.fwa-vn-checkout .checkout_coupon {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    padding: 15px 20px !important;
    background: #f9fafb;
}

/* Available Coupons — tag row */
.fwa-checkout-coupons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-bottom: 4px;
}

.fwa-checkout-coupons__label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-right: 4px;
    display: block;
    width: 100%;
}
.woocommerce-cart-form .coupon {
    display: none;
}

.fwa-coupon-tag {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 12px;
    border: 1.5px dashed var(--tb-theme-color, #2b87c3);
    border-radius: 6px;
    background: #f0f7ff;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 220px;
    user-select: none;
}

.fwa-coupon-tag:hover {
    background: #dbeeff;
    border-color: var(--tb-theme-color, #1a6fa0);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.fwa-coupon-tag:active {
    transform: translateY(0);
}

.fwa-coupon-tag strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--tb-theme-color, #1a6fa0);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.fwa-coupon-tag small {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    margin-top: 1px;
}

/* Disabled coupon */
.fwa-coupon-tag--disabled {
    border-color: #d9d9d9;
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.fwa-coupon-tag--disabled:hover {
    background: #f5f5f5;
    border-color: #d9d9d9;
    transform: none;
    box-shadow: none;
}

.fwa-coupon-tag--disabled strong {
    color: #999;
    text-decoration: line-through;
}

.fwa-coupon-tag--disabled small {
    color: #999;
}

/* Active (applied) coupon */
.fwa-coupon-tag--active {
    border-style: solid;
    border-color: #27ae60;
    background: #edfcf2;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
    position: relative;
}

.fwa-coupon-tag--active::after {
    content: 'Đang áp dụng';
    position: absolute;
    top: -8px;
    right: 6px;
    background: #27ae60;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.fwa-coupon-tag--active:hover {
    background: #d4f5e0;
    border-color: #1e8e4e;
}

.fwa-coupon-tag--active strong {
    color: #1e8e4e;
}

.fwa-coupon-tag__check {
    color: #27ae60;
    font-weight: 700;
    font-size: 13px;
}

/* Loading state */
.fwa-coupon-tag--loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Hide old coupon form completely */
.fwa-vn-checkout .woocommerce-form-coupon-toggle,
.fwa-vn-checkout .checkout_coupon.woocommerce-form-coupon {
    display: none !important;
}

/* ========================================
   Order Notes
   ======================================== */

.fwa-vn-checkout #order_comments_field textarea {
    min-height: 80px;
    resize: vertical;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
    .woocommerce-checkout .fwa-vn-checkout form.checkout.checkout-column-two {
        display: block;
    }

    .fwa-vn-checkout form.checkout.checkout-column-two .details-check,
    .fwa-vn-checkout form.checkout.checkout-column-two .details-review {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .fwa-vn-checkout .details-review {
        margin-top: 30px;
    }

    .fwa-vn-checkout .woocommerce-billing-fields__field-wrapper,
    .fwa-vn-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Validation States
   ======================================== */

.fwa-vn-checkout .form-row.woocommerce-invalid input.input-text,
.fwa-vn-checkout .form-row.woocommerce-invalid select,
.fwa-vn-checkout .form-row.woocommerce-invalid .select2-container .select2-selection--single {
    border-color: #e74c3c;
}

.fwa-vn-checkout .form-row.woocommerce-validated input.input-text,
.fwa-vn-checkout .form-row.woocommerce-validated select,
.fwa-vn-checkout .form-row.woocommerce-validated .select2-container .select2-selection--single {
    border-color: #27ae60;
}

/* ========================================
   Cart Page – hide old coupon input
   ======================================== */

.fwa-vn-cart .cart-collaterals .coupon {
    display: none !important;
}

/* ========================================
   Thank You Page
   ======================================== */

.fwa-thankyou {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* --- Status Banner --- */
.fwa-thankyou__status {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.fwa-thankyou__status--success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
}

.fwa-thankyou__status--failed {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 1px solid #fecaca;
}

.fwa-thankyou__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.fwa-thankyou__status--success .fwa-thankyou__icon {
    background: #16a34a;
    color: #fff;
}

.fwa-thankyou__status--failed .fwa-thankyou__icon {
    background: #dc2626;
    color: #fff;
}

.fwa-thankyou__status h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a1a;
}

.fwa-thankyou__status p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

.fwa-thankyou__actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* --- Grid: summary + address side by side --- */
.fwa-thankyou__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* --- Cards --- */
.fwa-thankyou__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
}

.fwa-thankyou__card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- Info Grid (order summary) --- */
.fwa-thankyou__info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}

.fwa-thankyou__info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fwa-thankyou__label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fwa-thankyou__value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.fwa-thankyou__value--total {
    color: #e74c3c;
    font-size: 16px;
}

/* --- Address Card --- */
.fwa-thankyou__address-content p {
    margin: 0 0 4px;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.fwa-thankyou__address-content p strong {
    color: #1a1a1a;
    font-size: 15px;
}

/* --- Items Card --- */
.fwa-thankyou__items {
    margin-bottom: 16px;
}

.fwa-thankyou__product {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.fwa-thankyou__product:last-child {
    border-bottom: none;
}

.fwa-thankyou__product-img {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.fwa-thankyou__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fwa-thankyou__product-info {
    flex: 1;
    min-width: 0;
}

.fwa-thankyou__product-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

.fwa-thankyou__product-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.fwa-thankyou__product-qty {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.fwa-thankyou__product-total {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: right;
    white-space: nowrap;
}

/* --- Totals --- */
.fwa-thankyou__totals {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 4px;
}

.fwa-thankyou__totals-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.fwa-thankyou__totals-row--grand {
    border-top: 2px solid #1a1a1a;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.fwa-thankyou__totals-row--grand span:last-child {
    color: #e74c3c;
}

/* --- Note --- */
.fwa-thankyou__note {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 6px;
    font-size: 13px;
    color: #713f12;
}

/* --- Hide default WooCommerce order-details on thankyou --- */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    display: none !important;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .fwa-thankyou__grid {
        grid-template-columns: 1fr;
    }

    .fwa-thankyou__info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fwa-thankyou__status h2 {
        font-size: 19px;
    }

    .fwa-thankyou__card {
        padding: 16px;
    }
}
