
/*
 * AfroLamps — WooCommerce UI
 * Version: 1.4.0
 *
 * Shared presentation layer for:
 * - WooCommerce notices and validation messages
 * - My Account endpoints
 * - Customer account details and password feedback
 * - Billing and shipping address forms
 * - Country and state Select2 fields
 * - Account tables and buttons
 * - Customer order history
 * - Individual order details
 * - Order products, totals and customer details
 * - Checkout and order-pay supporting UI
 *
 * WooCommerce core stylesheets are intentionally dequeued.
 * This file supplies the necessary presentation styles.
 * Payment gateway-owned overlays remain untouched.
 */


/* ============================================================
   01. BRAND TOKENS
============================================================ */

:root {
    --afro-wc-dark: #361105;
    --afro-wc-gold: #DC9C15;
    --afro-wc-cream: #FAF9F6;
    --afro-wc-ivory: #F4EFE7;
    --afro-wc-rust: #A33B2E;
    --afro-wc-muted: rgba(54, 17, 5, 0.62);
    --afro-wc-line: rgba(54, 17, 5, 0.12);
    --afro-wc-border: rgba(54, 17, 5, 0.20);
    --afro-wc-success: #47734A;
    --afro-wc-success-bg: #F1F6F0;
    --afro-wc-error-bg: #FCF4F1;
    --afro-wc-info-bg: #F5F2EC;
    --afro-wc-shadow: 0 16px 42px rgba(54, 17, 5, 0.07);
}


/* ============================================================
   02. NOTICE WRAPPERS
============================================================ */

body.woocommerce-page .woocommerce-notices-wrapper {
    position: relative;
    box-sizing: border-box;
    width: min(100% - 2rem, 80rem);
    max-width: 80rem;
    margin: 1.25rem auto;
}

body.woocommerce-page .woocommerce-notices-wrapper:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper:empty {
    display: none !important;
    margin: 0 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-NoticeGroup {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
}


/* ============================================================
   03. GLOBAL WOOCOMMERCE NOTICES
============================================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce-NoticeGroup-checkout .woocommerce-message,
.woocommerce-NoticeGroup-checkout .woocommerce-info,
.woocommerce-NoticeGroup-checkout .woocommerce-error,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-message,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-info,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error {
    position: relative !important;
    display: block;
    box-sizing: border-box !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 1rem !important;
    padding: 0.9rem 1rem 0.9rem 2.75rem !important;

    border: 0 !important;
    border-top: 1px solid rgba(54, 17, 5, 0.16) !important;
    border-bottom: 1px solid rgba(54, 17, 5, 0.16) !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: var(--afro-wc-dark) !important;

    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;

    list-style: none !important;
    overflow-wrap: anywhere;
    box-shadow: none !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute !important;
    top: 0.92rem !important;
    left: 0.85rem !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box;
    width: 1.1rem !important;
    height: 1.1rem !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;

    color: #8A681F !important;
    content: 'i' !important;

    font-family: Georgia, serif !important;
    font-size: 1rem !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.woocommerce-message,
.woocommerce-NoticeGroup .woocommerce-message,
.woocommerce-NoticeGroup-checkout .woocommerce-message,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-message {
    border-top-color: rgba(71, 115, 74, 0.32) !important;
    border-bottom-color: rgba(71, 115, 74, 0.32) !important;
    color: #365D3A !important;
}

.woocommerce-message::before {
    color: var(--afro-wc-success) !important;
    content: '✓' !important;
}

.woocommerce-error,
.woocommerce-NoticeGroup .woocommerce-error,
.woocommerce-NoticeGroup-checkout .woocommerce-error,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error {
    border-top-color: rgba(163, 59, 46, 0.32) !important;
    border-bottom-color: rgba(163, 59, 46, 0.32) !important;
    color: #87382D !important;
}

.woocommerce-error::before {
    color: var(--afro-wc-rust) !important;
    content: '×' !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
}

.woocommerce-info,
.woocommerce-NoticeGroup .woocommerce-info,
.woocommerce-NoticeGroup-checkout .woocommerce-info,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-info {
    border-top-color: rgba(54, 17, 5, 0.18) !important;
    border-bottom-color: rgba(54, 17, 5, 0.18) !important;
    color: var(--afro-wc-muted) !important;
}

.woocommerce-info::before {
    color: var(--afro-wc-dark) !important;
    content: 'i' !important;
}

.woocommerce-error li,
.woocommerce-NoticeGroup .woocommerce-error li,
.woocommerce-NoticeGroup-checkout .woocommerce-error li,
.woocommerce-NoticeGroup-updateOrderReview .woocommerce-error li {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    list-style: none !important;
}

.woocommerce-error li + li {
    margin-top: 0.35rem !important;
}

.woocommerce-message p,
.woocommerce-info p,
.woocommerce-error p {
    margin: 0;
    color: inherit;
}

.woocommerce-message p + p,
.woocommerce-info p + p,
.woocommerce-error p + p {
    margin-top: 0.4rem;
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) {
    color: inherit !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(220, 156, 21, 0.8) !important;
    text-underline-offset: 3px;
}

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;

    min-height: 2.2rem;
    margin: 0.55rem 0.5rem 0 0 !important;
    padding: 0.5rem 0.85rem !important;

    border: 1px solid var(--afro-wc-dark) !important;
    border-radius: 0 !important;
    background: var(--afro-wc-dark) !important;
    color: var(--afro-wc-cream) !important;

    font-family: 'Inter', sans-serif !important;
    font-size: 0.62rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    line-height: 1.35 !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase !important;

    box-shadow: none !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
    border-color: var(--afro-wc-gold) !important;
    background: var(--afro-wc-gold) !important;
    color: var(--afro-wc-dark) !important;
}


/* ============================================================
   04. MY ACCOUNT NOTICE PRESENTATION
============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper > .woocommerce-error {
    max-width: 100%;
    overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error strong,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message strong,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info strong {
    color: inherit;
    font-weight: 600;
}


/* ============================================================
   05. WOOCOMMERCE FORM VALIDATION
============================================================ */

.woocommerce form .form-row .required,
.woocommerce form .form-row abbr.required {
    color: var(--afro-wc-rust) !important;
    text-decoration: none !important;
}

.woocommerce form .form-row.woocommerce-invalid label,
.woocommerce form .form-row .woocommerce-invalid-required-field + label,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-invalid > label {
    color: var(--afro-wc-rust) !important;
}

.woocommerce form .form-row .error,
.woocommerce form .form-row .woocommerce-invalid-feedback,
.woocommerce form .form-row .description,
.woocommerce form .form-row .woocommerce-password-hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid textarea,
.woocommerce form .form-row input.input-text.woocommerce-invalid,
.woocommerce form .form-row select.woocommerce-invalid,
.woocommerce form .form-row textarea.woocommerce-invalid,
.woocommerce form .form-row input[aria-invalid="true"],
.woocommerce form .form-row select[aria-invalid="true"],
.woocommerce form .form-row textarea[aria-invalid="true"] {
    border-color: var(--afro-wc-rust) !important;
    box-shadow: 0 0 0 2px rgba(163, 59, 46, 0.08) !important;
}

.woocommerce form .form-row input[aria-invalid="true"]:focus,
.woocommerce form .form-row select[aria-invalid="true"]:focus,
.woocommerce form .form-row textarea[aria-invalid="true"]:focus {
    border-color: var(--afro-wc-rust) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(163, 59, 46, 0.12) !important;
}


/* ============================================================
   06. MY ACCOUNT CONTENT
============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content {
    min-width: 0;
    color: var(--afro-wc-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
}

body.woocommerce-account .woocommerce-MyAccount-content > p,
body.woocommerce-account .woocommerce-MyAccount-content > div > p {
    color: var(--afro-wc-muted);
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-MyAccount-content h4 {
    color: var(--afro-wc-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.25;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
    text-underline-offset: 3px;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not([class*='bg-']):not(.button) {
    color: var(--afro-wc-gold);
}

body.woocommerce-account .woocommerce-MyAccount-content a:not([class*='bg-']):not(.button):hover {
    color: var(--afro-wc-dark);
}


/* ============================================================
   07. ACCOUNT FORMS — FIELD ROWS AND LABELS
============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content form .form-row,
body.woocommerce-account .af-address-editor__form .form-row {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 0 1.15rem;
    padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row label,
body.woocommerce-account .woocommerce-MyAccount-content form > p > label,
body.woocommerce-account .af-address-editor__form .form-row > label {
    display: block;
    margin: 0 0 0.45rem;
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-content form .form-row .woocommerce-input-wrapper,
body.woocommerce-account .af-address-editor__form .form-row .woocommerce-input-wrapper {
    display: block;
    width: 100%;
    min-width: 0;
}


/* ============================================================
   08. ACCOUNT FORM CONTROLS
============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="url"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea,
body.woocommerce-account .af-address-editor__form input.input-text,
body.woocommerce-account .af-address-editor__form input[type="text"],
body.woocommerce-account .af-address-editor__form input[type="email"],
body.woocommerce-account .af-address-editor__form input[type="tel"],
body.woocommerce-account .af-address-editor__form select,
body.woocommerce-account .af-address-editor__form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 3rem;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--afro-wc-border);
    border-radius: 0;
    background-color: #fff;
    color: var(--afro-wc-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

body.woocommerce-account .woocommerce-MyAccount-content input.input-text:focus,
body.woocommerce-account .woocommerce-MyAccount-content input[type="text"]:focus,
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"]:focus,
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"]:focus,
body.woocommerce-account .woocommerce-MyAccount-content input[type="url"]:focus,
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"]:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus,
body.woocommerce-account .af-address-editor__form input:focus,
body.woocommerce-account .af-address-editor__form select:focus,
body.woocommerce-account .af-address-editor__form textarea:focus {
    border-color: var(--afro-wc-gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 156, 21, 0.14);
}

body.woocommerce-account .woocommerce-MyAccount-content input::placeholder,
body.woocommerce-account .woocommerce-MyAccount-content textarea::placeholder,
body.woocommerce-account .af-address-editor__form input::placeholder,
body.woocommerce-account .af-address-editor__form textarea::placeholder {
    color: rgba(54, 17, 5, 0.38);
    opacity: 1;
}

body.woocommerce-account .woocommerce-MyAccount-content textarea,
body.woocommerce-account .af-address-editor__form textarea {
    min-height: 8rem;
    resize: vertical;
}

body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .af-address-editor__form select {
    padding-right: 2.5rem;
    cursor: pointer;
}

body.woocommerce-account .woocommerce-MyAccount-content input:disabled,
body.woocommerce-account .woocommerce-MyAccount-content select:disabled,
body.woocommerce-account .woocommerce-MyAccount-content textarea:disabled,
body.woocommerce-account .af-address-editor__form input:disabled,
body.woocommerce-account .af-address-editor__form select:disabled,
body.woocommerce-account .af-address-editor__form textarea:disabled {
    background-color: #F5F2EC;
    color: rgba(54, 17, 5, 0.55);
    cursor: not-allowed;
}

body.woocommerce-account .woocommerce-MyAccount-content input[type="checkbox"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="radio"] {
    width: auto;
    min-height: 0;
    margin-right: 0.45rem;
    padding: 0;
    accent-color: var(--afro-wc-gold);
}


/* ============================================================
   09. CUSTOMER ACCOUNT DETAILS FORM
============================================================ */

body.woocommerce-account .af-account-form {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    color: var(--afro-wc-dark);
}

body.woocommerce-account .af-account-form .form-row {
    box-sizing: border-box;
    min-width: 0;
}

body.woocommerce-account .af-account-form .form-row > label {
    display: block;
    width: 100%;
}

body.woocommerce-account .af-account-form input[type="text"],
body.woocommerce-account .af-account-form input[type="email"],
body.woocommerce-account .af-account-form input[type="tel"],
body.woocommerce-account .af-account-form input[type="password"] {
    width: 100%;
    min-width: 0;
}

body.woocommerce-account .af-account-form .required {
    color: var(--afro-wc-rust) !important;
    font-size: inherit;
    text-decoration: none !important;
}

body.woocommerce-account .af-account-form input:focus-visible,
body.woocommerce-account .af-account-form button:focus-visible,
body.woocommerce-account .af-account-form a:focus-visible {
    outline: 2px solid rgba(220, 156, 21, 0.8);
    outline-offset: 3px;
}

body.woocommerce-account .af-account-form .af-password-toggle {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0;
    line-height: 1;
    cursor: pointer;
}

body.woocommerce-account .af-account-form .af-password-toggle:hover {
    background: rgba(220, 156, 21, 0.06);
}

body.woocommerce-account .af-account-form .af-password-toggle:focus-visible {
    outline: 2px solid var(--afro-wc-gold);
    outline-offset: 1px;
}

body.woocommerce-account .af-account-form .af-password-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}


/* ============================================================
   10. PASSWORD STRENGTH — AFROLAMPS INDICATOR
============================================================ */

body.woocommerce-account .af-account-form [data-strength-meter] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(54, 17, 5, 0.08);
}

body.woocommerce-account .af-account-form [data-strength-bar] {
    display: block;
    height: 100%;
    min-width: 0;
    transition:
        width 250ms ease,
        background-color 250ms ease;
}

body.woocommerce-account .af-account-form [data-strength-label] {
    display: block;
    margin-top: 0.5rem;
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    line-height: 1.5;
}


/* ============================================================
   11. PASSWORD STRENGTH — WOOCOMMERCE NATIVE INDICATOR
============================================================ */

body.woocommerce-account .af-account-form .woocommerce-password-strength {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0.7rem 0 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--afro-wc-line);
    border-left: 3px solid var(--afro-wc-muted);
    border-radius: 0;
    background: #F5F2EC;
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    box-shadow: none;
}

body.woocommerce-account .af-account-form .woocommerce-password-strength.short,
body.woocommerce-account .af-account-form .woocommerce-password-strength.bad {
    border-color: rgba(163, 59, 46, 0.2);
    border-left-color: var(--afro-wc-rust);
    background: var(--afro-wc-error-bg);
    color: #68271F;
}

body.woocommerce-account .af-account-form .woocommerce-password-strength.good {
    border-color: rgba(220, 156, 21, 0.25);
    border-left-color: var(--afro-wc-gold);
    background: #FBF7EC;
    color: #76510C;
}

body.woocommerce-account .af-account-form .woocommerce-password-strength.strong {
    border-color: rgba(71, 115, 74, 0.2);
    border-left-color: var(--afro-wc-success);
    background: var(--afro-wc-success-bg);
    color: #315A35;
}

body.woocommerce-account .af-account-form .woocommerce-password-hint {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 0.45rem;
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    line-height: 1.55;
}

body.woocommerce-account .af-account-form .woocommerce-password-hint strong {
    color: var(--afro-wc-dark);
    font-weight: 600;
}


/* ============================================================
   12. PASSWORD CONFIRMATION FEEDBACK
============================================================ */

body.woocommerce-account .af-account-form #password_2[aria-invalid="true"] {
    border-color: var(--afro-wc-rust) !important;
    background: #FFFBFA;
    box-shadow: 0 0 0 2px rgba(163, 59, 46, 0.10) !important;
}

body.woocommerce-account .af-account-form #password_2[aria-invalid="true"]:focus {
    border-color: var(--afro-wc-rust) !important;
    box-shadow: 0 0 0 3px rgba(163, 59, 46, 0.14) !important;
}

body.woocommerce-account .af-account-form [data-password-match]:empty {
    display: none;
}

body.woocommerce-account .af-account-form .form-row:has(#password_2) [data-password-match]:not(:empty) {
    display: block;
    margin-top: 0.5rem;
    padding-left: 0.1rem;
    color: var(--afro-wc-success);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-style: normal;
    line-height: 1.5;
}

body.woocommerce-account .af-account-form .form-row:has(#password_2[aria-invalid="true"]) [data-password-match] {
    color: var(--afro-wc-rust);
}


/* ============================================================
   13. ACCOUNT FORM SUBMISSION STATES
============================================================ */

body.woocommerce-account .af-account-form button[type="submit"] {
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        opacity 180ms ease;
}

body.woocommerce-account .af-account-form button[type="submit"]:disabled,
body.woocommerce-account .af-account-form button[type="submit"].disabled {
    opacity: 0.55;
    cursor: not-allowed !important;
    pointer-events: none;
}

body.woocommerce-account .af-account-form button[type="submit"]:disabled:hover,
body.woocommerce-account .af-account-form button[type="submit"].disabled:hover {
    border-color: var(--afro-wc-dark);
    background: var(--afro-wc-dark);
    color: var(--afro-wc-cream);
}


/* ============================================================
   14. ADDRESS EDITOR — STRUCTURE AND GRID
============================================================ */

body.woocommerce-account .af-address-editor {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    color: var(--afro-wc-dark);
}

body.woocommerce-account .af-address-editor__form {
    width: 100%;
    min-width: 0;
    margin: 0;
}

body.woocommerce-account .af-address-editor .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 640px) {
    body.woocommerce-account .af-address-editor .woocommerce-address-fields__field-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.25rem;
        row-gap: 1.15rem;
    }
}

body.woocommerce-account .af-address-editor .woocommerce-address-fields__field-wrapper > .form-row {
    float: none !important;
    clear: none !important;
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-account .af-address-editor .woocommerce-address-fields__field-wrapper > .form-row-wide {
    grid-column: 1 / -1;
}

body.woocommerce-account .af-address-editor .woocommerce-address-fields__field-wrapper > .form-row-first,
body.woocommerce-account .af-address-editor .woocommerce-address-fields__field-wrapper > .form-row-last {
    grid-column: auto;
}

body.woocommerce-account .af-address-editor .form-row > label {
    width: 100%;
}

body.woocommerce-account .af-address-editor .woocommerce-input-wrapper {
    width: 100%;
}

body.woocommerce-account .af-address-editor .woocommerce-input-wrapper > input,
body.woocommerce-account .af-address-editor .woocommerce-input-wrapper > select,
body.woocommerce-account .af-address-editor .woocommerce-input-wrapper > textarea {
    width: 100%;
    max-width: 100%;
}


/* ============================================================
   15. ADDRESS EDITOR — COUNTRY AND STATE SELECT2
============================================================ */

body.woocommerce-account .af-address-editor .select2-container {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

body.woocommerce-account .af-address-editor .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 3rem !important;
    border: 1px solid var(--afro-wc-border) !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    box-shadow: none !important;
}

body.woocommerce-account .af-address-editor .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding-right: 2.5rem !important;
    padding-left: 0.9rem !important;
    overflow: hidden;
    color: var(--afro-wc-dark) !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 46px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.woocommerce-account .af-address-editor .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(54, 17, 5, 0.42);
}

body.woocommerce-account .af-address-editor .select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 1px !important;
    right: 7px;
    width: 2rem;
    height: 46px !important;
}

body.woocommerce-account .af-address-editor .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--afro-wc-muted) transparent transparent transparent;
}

body.woocommerce-account .af-address-editor .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--afro-wc-muted) transparent;
}

body.woocommerce-account .af-address-editor .select2-container--focus .select2-selection,
body.woocommerce-account .af-address-editor .select2-container--open .select2-selection {
    border-color: var(--afro-wc-gold) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 156, 21, 0.12) !important;
}

body.woocommerce-account .af-address-editor .select2-container .select2-selection--multiple {
    box-sizing: border-box;
    min-height: 3rem;
    border: 1px solid var(--afro-wc-border) !important;
    border-radius: 0 !important;
    background-color: #fff !important;
}

body.woocommerce-account .af-address-editor .select2-container .select2-selection--multiple .select2-selection__rendered {
    padding: 0.3rem 0.45rem;
}

body.woocommerce-account .af-address-editor .select2-container .select2-selection--multiple .select2-selection__choice {
    margin: 0.2rem 0.3rem 0.2rem 0;
    padding: 0.25rem 0.45rem;
    border: 1px solid var(--afro-wc-line);
    border-radius: 0;
    background: var(--afro-wc-ivory);
    color: var(--afro-wc-dark);
}

.select2-container--open .select2-dropdown {
    z-index: 99999;
    box-sizing: border-box;
    border: 1px solid var(--afro-wc-border) !important;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: 0 10px 28px rgba(54, 17, 5, 0.08);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.select2-container--default .select2-search--dropdown {
    padding: 0.55rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--afro-wc-border);
    border-radius: 0;
    background: #fff;
    color: var(--afro-wc-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--afro-wc-gold);
    box-shadow: 0 0 0 2px rgba(220, 156, 21, 0.12);
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 15rem;
}

.select2-container--default .select2-results__option {
    padding: 0.65rem 0.85rem;
    color: var(--afro-wc-dark);
    line-height: 1.5;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: var(--afro-wc-gold) !important;
    color: var(--afro-wc-dark) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
    background: var(--afro-wc-ivory);
    color: var(--afro-wc-dark);
}

.select2-container--default .select2-results__option--disabled {
    color: rgba(54, 17, 5, 0.38);
}

.select2-container--default .select2-results__message {
    padding: 0.75rem 0.85rem;
    color: var(--afro-wc-muted);
    font-size: 0.8rem;
}


/* ============================================================
   16. ACCOUNT BUTTONS
============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content a.button,
body.woocommerce-account .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce-MyAccount-content input.button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
body.woocommerce-account .af-address-editor__form button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--afro-wc-dark);
    border-radius: 0;
    background: var(--afro-wc-dark);
    color: var(--afro-wc-cream);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

body.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content button.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content input.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
body.woocommerce-account .af-address-editor__form button.button:hover {
    border-color: var(--afro-wc-gold);
    background: var(--afro-wc-gold);
    color: var(--afro-wc-dark);
}


/* ============================================================
   17. ACCOUNT ADDRESS CARDS
============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-PaymentMethod,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-SavedPaymentMethods li {
    box-sizing: border-box;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--afro-wc-line);
    background: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--afro-wc-line);
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1.15rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
    color: var(--afro-wc-muted);
    font-style: normal;
    line-height: 1.75;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-SavedPaymentMethods,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-PaymentMethods {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-SavedPaymentMethods li + li,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-PaymentMethods li + li {
    margin-top: 0.75rem;
}


/* ============================================================
   18. ACCOUNT TABLES AND ORDER DETAILS
============================================================ */

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: transparent;
    color: var(--afro-wc-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table th {
    padding: 0.8rem 0.65rem;
    border: 0;
    border-bottom: 1px solid rgba(54, 17, 5, 0.18);
    color: var(--afro-wc-muted);
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-align: left;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table td {
    padding: 0.9rem 0.65rem;
    border: 0;
    border-bottom: 1px solid rgba(54, 17, 5, 0.09);
    color: var(--afro-wc-dark);
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot td,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tfoot th,
body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table tfoot td {
    padding-top: 0.85rem;
    border-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title {
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--afro-wc-line);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address {
    padding: 1.1rem;
    border: 1px solid var(--afro-wc-line);
    border-radius: 0;
    background: #fff;
    color: var(--afro-wc-muted);
    line-height: 1.75;
}


/* ============================================================
   19. CUSTOMER ORDER HISTORY
============================================================ */

body.woocommerce-account .afro-account-orders {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

body.woocommerce-account .afro-account-orders > div.overflow-hidden {
    min-width: 0;
}

body.woocommerce-account .afro-account-orders .overflow-x-auto {
    width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

body.woocommerce-account .afro-account-orders table.woocommerce-orders-table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border: 0;
    border-spacing: 0;
    border-collapse: collapse;
    background: #fff;
}

body.woocommerce-account .afro-account-orders table.woocommerce-orders-table thead th {
    background: var(--afro-wc-cream);
    border: 0;
    border-bottom: 1px solid var(--afro-wc-line);
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.5;
    vertical-align: middle;
}

body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody th,
body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody td {
    border: 0;
    border-bottom: 1px solid var(--afro-wc-line);
    color: var(--afro-wc-dark);
    vertical-align: middle;
}

body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody th {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody tr:last-child th,
body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-number a {
    text-decoration-color: rgba(220, 156, 21, 0.5);
    text-underline-offset: 4px;
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-number a:hover {
    color: var(--afro-wc-gold);
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-status > span {
    white-space: nowrap;
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-total {
    line-height: 1.65;
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions > div {
    gap: 0.5rem;
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions a.button {
    min-height: 2.35rem;
    padding: 0.55rem 0.8rem;
    white-space: nowrap;
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions a.pay {
    border-color: var(--afro-wc-gold);
    background: var(--afro-wc-gold);
    color: var(--afro-wc-dark);
}

body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions a.pay:hover {
    border-color: var(--afro-wc-dark);
    background: var(--afro-wc-dark);
    color: var(--afro-wc-cream);
}


/* ============================================================
   20. INDIVIDUAL ORDER VIEW
============================================================ */

body.woocommerce-account .afro-view-order {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    color: var(--afro-wc-dark);
}

body.woocommerce-account .afro-view-order__header,
body.woocommerce-account .afro-view-order__summary,
body.woocommerce-account .afro-view-order__updates,
body.woocommerce-account .afro-view-order__details {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

body.woocommerce-account .afro-view-order__summary mark {
    display: inline;
    padding: 0.1rem 0.3rem;
    border-radius: 0;
    background: rgba(220, 156, 21, 0.10);
    color: var(--afro-wc-dark);
}

body.woocommerce-account .afro-view-order__updates .woocommerce-OrderUpdate {
    box-sizing: border-box;
    min-width: 0;
}

body.woocommerce-account .afro-view-order__updates .woocommerce-OrderUpdate-meta {
    color: var(--afro-wc-muted);
}

body.woocommerce-account .afro-view-order__updates .woocommerce-OrderUpdate-description {
    overflow-wrap: anywhere;
}

body.woocommerce-account .afro-view-order__details {
    overflow: hidden;
}

body.woocommerce-account .afro-view-order__footer a {
    text-decoration: none;
}


/* ============================================================
   21. INDIVIDUAL ORDER — PRODUCT TABLE
============================================================ */

body.woocommerce-account .afro-order-details {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

body.woocommerce-account .afro-order-details__table-wrap {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.woocommerce-account .afro-order-details__table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    color: var(--afro-wc-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

body.woocommerce-account .afro-order-details__table thead th {
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--afro-wc-line);
    background: var(--afro-wc-cream);
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.5;
    vertical-align: middle;
}

body.woocommerce-account .afro-order-details__table tbody td,
body.woocommerce-account .afro-order-details__table tfoot th,
body.woocommerce-account .afro-order-details__table tfoot td {
    border: 0;
    border-bottom: 1px solid var(--afro-wc-line);
    color: var(--afro-wc-dark);
    vertical-align: middle;
}

body.woocommerce-account .afro-order-details__table tbody tr:last-child td {
    border-bottom-color: var(--afro-wc-line);
}

/* Text-only product information. */
body.woocommerce-account .afro-order-item__product {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.woocommerce-account .afro-order-item__name {
    color: var(--afro-wc-dark);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

body.woocommerce-account .afro-order-item__name a {
    color: inherit;
    text-decoration-color: rgba(220, 156, 21, 0.5);
    text-underline-offset: 4px;
}

body.woocommerce-account .afro-order-item__name a:hover {
    color: var(--afro-wc-gold);
}

body.woocommerce-account .afro-order-item__quantity {
    color: var(--afro-wc-muted);
    line-height: 1.5;
}

body.woocommerce-account .afro-order-item__quantity del {
    color: var(--afro-wc-rust);
    text-decoration-color: var(--afro-wc-rust);
}

body.woocommerce-account .afro-order-item__quantity ins {
    background: transparent;
    color: var(--afro-wc-success);
    text-decoration: none;
}

body.woocommerce-account .afro-order-item__meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.woocommerce-account .afro-order-item__meta p {
    margin: 0.25rem 0;
    color: var(--afro-wc-muted);
}

body.woocommerce-account .afro-order-item__meta dl,
body.woocommerce-account .afro-order-item__meta .wc-item-meta {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 0.25rem 0.75rem;
    margin: 0.4rem 0 0;
    padding: 0;
}

body.woocommerce-account .afro-order-item__meta dt,
body.woocommerce-account .afro-order-item__meta .wc-item-meta-label {
    margin: 0;
    color: var(--afro-wc-muted);
    font-size: 0.68rem;
    font-weight: 500;
}

body.woocommerce-account .afro-order-item__meta dd,
body.woocommerce-account .afro-order-item__meta .wc-item-meta-value {
    min-width: 0;
    margin: 0;
    color: var(--afro-wc-dark);
    font-size: 0.68rem;
    overflow-wrap: anywhere;
}

body.woocommerce-account .afro-order-item__meta ul {
    margin: 0.4rem 0 0;
    padding-left: 1rem;
}

body.woocommerce-account .afro-order-item__total {
    white-space: nowrap;
    color: var(--afro-wc-dark);
    font-size: 0.8rem;
    font-weight: 600;
}

body.woocommerce-account .afro-order-item__purchase-note td {
    background: rgba(244, 239, 231, 0.48);
}

body.woocommerce-account .afro-order-item__purchase-note p {
    margin: 0 0 0.5rem;
}

body.woocommerce-account .afro-order-item__purchase-note p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   22. INDIVIDUAL ORDER — TOTALS AND ACTIONS
============================================================ */

/* Financial totals. */
body.woocommerce-account .afro-order-details__table tfoot th,
body.woocommerce-account .afro-order-details__table tfoot td {
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    line-height: 1.55;
}

body.woocommerce-account .afro-order-details__table .afro-order-total--final th,
body.woocommerce-account .afro-order-details__table .afro-order-total--final td {
    border-top: 1px solid var(--afro-wc-border);
    border-bottom: 0;
    color: var(--afro-wc-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

body.woocommerce-account .afro-order-details__table .afro-order-total--final td {
    font-size: 1.05rem;
}

body.woocommerce-account .afro-order-details__table tfoot a {
    color: var(--afro-wc-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.woocommerce-account .afro-order-details__table tfoot a:hover {
    color: var(--afro-wc-dark);
}

/* Customer note. */
body.woocommerce-account .afro-order-customer-note th {
    color: var(--afro-wc-muted);
    font-weight: 500;
}

body.woocommerce-account .afro-order-customer-note td {
    overflow-wrap: anywhere;
}

/* Payment, cancel and other available order actions. */
body.woocommerce-account .afro-order-actions th {
    color: var(--afro-wc-muted);
}

body.woocommerce-account .afro-order-actions td > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

body.woocommerce-account .afro-order-actions a.button {
    min-height: 2.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: none;
}


/* ============================================================
   23. ORDER CUSTOMER DETAILS
============================================================ */

body.woocommerce-account .afro-order-customer-details {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

body.woocommerce-account .afro-order-customer-details .woocommerce-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
    margin: 0;
}

body.woocommerce-account .afro-order-customer-details .woocommerce-column {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--afro-wc-line);
    border-radius: 0;
    background: #fff;
}

body.woocommerce-account .afro-order-customer-details .woocommerce-column__title {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.3;
}

body.woocommerce-account .afro-order-customer-details address {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--afro-wc-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

body.woocommerce-account .afro-order-customer-details address p {
    margin: 0.5rem 0 0;
}

body.woocommerce-account .afro-order-customer-details address p:first-child {
    margin-top: 0;
}

body.woocommerce-account .afro-order-customer-details address p:last-child {
    margin-bottom: 0;
}

body.woocommerce-account .afro-order-customer-details address a {
    color: inherit;
    overflow-wrap: anywhere;
}

body.woocommerce-account .afro-order-customer-details address .woocommerce-customer-details--phone,
body.woocommerce-account .afro-order-customer-details address .woocommerce-customer-details--email {
    color: var(--afro-wc-dark);
}

body.woocommerce-account .afro-order-customer-details address svg {
    flex-shrink: 0;
}


/* ============================================================
   24. ORDER DOWNLOADS
============================================================ */

body.woocommerce-account .woocommerce-order-downloads {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 2rem;
}

body.woocommerce-account .woocommerce-order-downloads__title {
    margin: 0 0 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--afro-wc-dark);
}

body.woocommerce-account .woocommerce-order-downloads table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}

body.woocommerce-account .woocommerce-order-downloads th {
    padding: 0.8rem 0.65rem;
    border: 0;
    border-bottom: 1px solid var(--afro-wc-line);
    color: var(--afro-wc-muted);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

body.woocommerce-account .woocommerce-order-downloads td {
    padding: 0.85rem 0.65rem;
    border: 0;
    border-bottom: 1px solid var(--afro-wc-line);
    color: var(--afro-wc-dark);
    font-size: 0.8rem;
}

body.woocommerce-account .woocommerce-order-downloads a {
    color: var(--afro-wc-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   25. CHECKOUT AND ORDER-PAY SUPPORTING UI
============================================================ */

body.woocommerce-checkout .woocommerce form.checkout,
body.woocommerce-order-pay .woocommerce form#order_review,
body.woocommerce-order-pay .woocommerce form.checkout {
    color: var(--afro-wc-dark);
}

body.woocommerce-checkout .woocommerce form .form-row .woocommerce-input-wrapper,
body.woocommerce-order-pay .woocommerce form .form-row .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

body.woocommerce-checkout .woocommerce form .form-row .description,
body.woocommerce-order-pay .woocommerce form .form-row .description {
    display: block;
    margin-top: 0.4rem;
    color: var(--afro-wc-muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

body.woocommerce-checkout .woocommerce-invalid .input-text,
body.woocommerce-checkout .woocommerce-invalid select,
body.woocommerce-checkout .woocommerce-invalid textarea,
body.woocommerce-order-pay .woocommerce-invalid .input-text {
    border-color: var(--afro-wc-rust) !important;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper {
    color: var(--afro-wc-muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text a,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper a {
    color: var(--afro-wc-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Keep payment gateway logos within their payment method labels. */
body.woocommerce-checkout #payment ul.payment_methods li label img,
body.woocommerce-order-pay #payment ul.payment_methods li label img {
    display: inline-block;
    max-width: 120px;
    max-height: 32px;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Keep payment gateway iframe and popup/container styling untouched. */
body.woocommerce-checkout #payment .payment_box,
body.woocommerce-order-pay #payment .payment_box {
    overflow: visible;
}

/* Keep blocking checkout validation inline. */
body.woocommerce-checkout .woocommerce-NoticeGroup-checkout,
body.woocommerce-checkout .woocommerce-NoticeGroup-updateOrderReview,
body.woocommerce-checkout form.checkout > .woocommerce-error,
body.woocommerce-order-pay #order_review .woocommerce-error {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem !important;
}


/* ============================================================
   26. RESPONSIVE ACCOUNT AND ORDER LAYOUT
============================================================ */

@media (max-width: 767px) {

    /* ----------------------------------------
       Address cards
    ---------------------------------------- */

    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
    body.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses {
        grid-template-columns: minmax(0, 1fr);
    }


    /* ----------------------------------------
       Order history
    ---------------------------------------- */

    body.woocommerce-account .afro-account-orders .overflow-x-auto {
        overflow: visible;
    }

    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table {
        display: block;
        width: 100%;
        min-width: 0;
        border: 0;
    }

    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody {
        display: block;
        width: 100%;
    }

    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.9rem;
        box-sizing: border-box;
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid var(--afro-wc-line);
        background: #fff;
    }

    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody th,
    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.65rem;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0.3rem 0;
        border: 0;
        background: transparent;
        font-size: 0.78rem;
        line-height: 1.5;
        text-align: right;
        overflow-wrap: anywhere;
    }

    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody th::before,
    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody td::before {
        flex: 0 0 40%;
        max-width: 40%;
        margin-right: auto;
        color: var(--afro-wc-muted);
        content: attr(data-title);
        font-family: 'Inter', sans-serif;
        font-size: 0.57rem;
        font-weight: 600;
        letter-spacing: 0.09em;
        line-height: 1.5;
        text-align: left;
        text-transform: uppercase;
    }

    /* Order number occupies the full first row.
       This also explicitly handles the semantic tbody <th>. */
    body.woocommerce-account .afro-account-orders table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number {
        grid-column: 1 / -1;
        align-items: center;
        padding-bottom: 0.7rem;
        border-bottom: 1px solid var(--afro-wc-line);
    }

    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-number a {
        font-size: 1rem;
        text-align: right;
    }

    /* Date and status share the next row. */
    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-date,
    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-status {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.25rem !important;
        text-align: left !important;
    }

    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-date::before,
    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-status::before {
        flex: none;
        max-width: 100%;
        margin: 0;
    }

    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-status > span {
        white-space: normal;
    }

    /* Order total spans both columns. */
    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-total {
        grid-column: 1 / -1;
        align-items: center !important;
        padding-top: 0.65rem !important;
        border-top: 1px solid var(--afro-wc-line) !important;
        text-align: right;
    }

    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-total::before {
        flex: 0 0 40%;
    }

    /* Order actions occupy the full width. */
    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions {
        grid-column: 1 / -1;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap;
        padding-top: 0.7rem !important;
        border-top: 1px solid var(--afro-wc-line) !important;
        text-align: left !important;
    }

    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions::before {
        flex-basis: auto;
        max-width: none;
    }

    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions > div {
        justify-content: flex-start;
        flex: 1 1 100%;
    }

    body.woocommerce-account .afro-account-orders .woocommerce-orders-table__cell-order-actions a.button {
        min-height: 2.4rem;
        font-size: 0.58rem;
    }


    /* ----------------------------------------
       Individual order details
    ---------------------------------------- */

    body.woocommerce-account .afro-order-details__table {
        display: table;
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    body.woocommerce-account .afro-order-details__table thead th:first-child {
        width: 68%;
    }

    body.woocommerce-account .afro-order-details__table thead th:last-child {
        width: 32%;
    }

    body.woocommerce-account .afro-order-details__table tbody td {
        min-width: 0;
        padding: 1rem 0.55rem;
        overflow-wrap: anywhere;
    }

    body.woocommerce-account .afro-order-item__product {
        width: 68%;
    }

    body.woocommerce-account .afro-order-item__total {
        width: 32%;
        font-size: 0.72rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body.woocommerce-account .afro-order-details__table tfoot th,
    body.woocommerce-account .afro-order-details__table tfoot td {
        padding: 0.75rem 0.55rem;
        font-size: 0.72rem;
        overflow-wrap: anywhere;
    }

    body.woocommerce-account .afro-order-details__table .afro-order-total--final th,
    body.woocommerce-account .afro-order-details__table .afro-order-total--final td {
        font-size: 0.88rem;
    }

    body.woocommerce-account .afro-order-details__table .afro-order-total--final td {
        font-size: 0.95rem;
    }

    body.woocommerce-account .afro-order-actions td > div {
        justify-content: flex-start;
    }


    /* ----------------------------------------
       Customer details panels
    ---------------------------------------- */

    body.woocommerce-account .afro-order-customer-details .woocommerce-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    body.woocommerce-account .afro-order-customer-details .woocommerce-column {
        padding: 1.15rem;
    }


    /* ----------------------------------------
       Order downloads
    ---------------------------------------- */

    body.woocommerce-account .woocommerce-order-downloads {
        overflow-x: auto;
    }


    /* ----------------------------------------
       Orders pagination
    ---------------------------------------- */

    body.woocommerce-account .afro-account-orders .woocommerce-Pagination {
        gap: 0.5rem;
    }

    body.woocommerce-account .afro-account-orders .woocommerce-Pagination .button {
        min-height: 2.6rem;
        padding: 0.65rem 0.8rem;
        font-size: 0.58rem;
    }


    /* ----------------------------------------
       General WooCommerce tables
    ---------------------------------------- */

    body.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }


    /* ----------------------------------------
       Notices
    ---------------------------------------- */

    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .woocommerce-NoticeGroup-checkout .woocommerce-error,
    .woocommerce-NoticeGroup-updateOrderReview .woocommerce-error {
        padding: 0.8rem 0.85rem 0.8rem 2.4rem !important;
        font-size: 0.8rem !important;
    }

    .woocommerce-message::before,
    .woocommerce-info::before,
    .woocommerce-error::before {
        top: 0.82rem !important;
        left: 0.7rem !important;
    }

    .woocommerce-message a.button,
    .woocommerce-info a.button,
    .woocommerce-error a.button {
        margin: 0.55rem 0.35rem 0 0 !important;
    }


    /* ----------------------------------------
       Form buttons
    ---------------------------------------- */

    body.woocommerce-account .af-address-editor__form button.button {
        width: 100%;
    }

    body.woocommerce-account .af-account-form .woocommerce-password-strength {
        font-size: 0.68rem;
    }

}


/* ============================================================
   27. ACCESSIBILITY AND REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    body.woocommerce-account .woocommerce-MyAccount-content a.button,
    body.woocommerce-account .woocommerce-MyAccount-content button.button,
    body.woocommerce-account .woocommerce-MyAccount-content input.button,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
    body.woocommerce-account .af-address-editor__form button.button,
    body.woocommerce-account .woocommerce-MyAccount-content input,
    body.woocommerce-account .woocommerce-MyAccount-content select,
    body.woocommerce-account .woocommerce-MyAccount-content textarea,
    body.woocommerce-account .af-account-form [data-strength-bar],
    body.woocommerce-account .af-account-form button[type="submit"] {
        transition: none !important;
    }

}

/* Password visibility toggle positioning */
body.woocommerce-account .af-account-form .form-row > div.relative {
    position: relative;
}

body.woocommerce-account .af-account-form .af-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}


/* Hide WooCommerce's duplicate password toggle in Account Details */
body.woocommerce-account .af-account-form .password-input .show-password-input {
    display: none !important;
}


/* Ensure inactive password visibility icons are hidden */
body.woocommerce-account .af-account-form .af-password-toggle svg.hidden {
    display: none !important;
}

/* Product short description paragraph spacing */
.product-short-description > p + p {
    margin-top: 1rem;
}
