/* =====================================================
   My Account — GiftTree BD Premium Design
   Layout controlled by: .gifttree-account-wrap (our template)
   ===================================================== */

/* ── Page background ── */
.woocommerce-account {
    background: var(--color-cream);
    min-height: 60vh;
}

/* =====================================================
   1. TWO-COLUMN GRID LAYOUT
      Controlled entirely by our my-account.php wrapper.
      No dependency on WooCommerce body classes.
   ===================================================== */

/* Logged-in: sidebar + content grid */
.gifttree-account-wrap {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 36px;
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding: 48px 24px;
    align-items: start;
    box-sizing: border-box;
}

.gifttree-account-sidebar { min-width: 0; }

.gifttree-account-content {
    min-width: 0;
    /* Reset any WC padding/margin */
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
}

/* Not-logged-in: login page full-width */
.gifttree-login-wrap {
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* =====================================================
   2. HEADING SIZE OVERRIDES inside account content
      Global h1-h6 in style.css are too large for account UI.
   ===================================================== */

.gifttree-account-content h2,
.woocommerce-MyAccount-content h2 { font-size: 1.2rem; }

.gifttree-account-content h3,
.woocommerce-MyAccount-content h3 { font-size: 1rem; }

/* WooCommerce internal headings (order details, addresses) */
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2 {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    color: var(--color-muted) !important;
    margin-bottom: 12px !important;
    font-family: var(--font-body) !important;
}

/* =====================================================
   3. SIDEBAR NAVIGATION
   ===================================================== */
.wc-account-nav {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 90px;
    box-shadow: 0 1px 8px rgba(var(--color-text-rgb),0.05);
}

/* Reset any WC defaults on the nav element */
.wc-account-nav,
nav.woocommerce-MyAccount-navigation {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* WC adds styles to the nav ul; reset them */
.wc-account-nav .wc-account-nav__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}

.wc-account-nav .wc-account-nav__item {
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    border: none !important;
    float: none !important;
    display: block !important;
}

/* WC default link styles reset */
.wc-account-nav .wc-account-nav__item > a.wc-account-nav__link {
    padding: 0 !important;
    font-size: inherit !important;
    color: inherit !important;
    background: none !important;
    display: flex !important;
    border-bottom: none !important;
    width: 100% !important;
}

/* ── User profile area ── */
.wc-account-nav__user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.wc-account-nav__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.55);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.wc-account-nav__user-info { min-width: 0; }

.wc-account-nav__name {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    margin-bottom: 2px;
}

.wc-account-nav__email {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* ── Nav link items ── */
.wc-account-nav__link {
    display: flex !important;
    align-items: center !important;
    gap: 13px;
    padding: 15px 24px !important;
    color: var(--color-text) !important;
    font-size: 0.92rem !important;
    font-weight: 500;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    box-sizing: border-box;
    line-height: 1.5;
    min-height: 52px;
}

.wc-account-nav__link:hover {
    background: var(--color-blush) !important;
    color: var(--color-primary) !important;
    border-left-color: var(--color-primary);
    text-decoration: none !important;
}

/* Active state — WooCommerce adds both class variants */
.wc-account-nav__item.is-active > .wc-account-nav__link,
.wc-account-nav__item.woocommerce-MyAccount-navigation-link--active > .wc-account-nav__link {
    background: #eef6e4 !important;
    color: var(--color-primary) !important;
    border-left-color: var(--color-primary);
    font-weight: 700;
}

.wc-account-nav__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.6;
    width: 18px;
    height: 18px;
}

.wc-account-nav__item.is-active .wc-account-nav__icon,
.wc-account-nav__item.woocommerce-MyAccount-navigation-link--active .wc-account-nav__icon,
.wc-account-nav__link:hover .wc-account-nav__icon { opacity: 1; }

/* Logout item separator */
.wc-account-nav__item--logout {
    border-top: 1px solid var(--color-border);
    margin-top: 6px !important;
    padding-top: 6px !important;
}

.wc-account-nav__item--logout .wc-account-nav__link { color: #e53e3e !important; }
.wc-account-nav__item--logout .wc-account-nav__link:hover {
    background: #fff5f5 !important;
    border-left-color: #e53e3e !important;
    color: #e53e3e !important;
}

/* =====================================================
   4. PAGE TITLE
   ===================================================== */
.wc-account-page-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(20px, 2.5vw, 26px) !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin: 0 0 22px !important;
    line-height: 1.2 !important;
}

/* ── Generic card ── */
.wc-account-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 22px;
}

/* =====================================================
   5. DASHBOARD
   ===================================================== */
.wc-dashboard-welcome {
    background: linear-gradient(135deg, #eef6e4 0%, var(--color-blush) 100%);
    border: 1px solid #d4eab4;
    border-radius: 16px;
    padding: 26px 30px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.wc-dashboard-welcome::after {
    content: '🎁';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    opacity: 0.2;
    pointer-events: none;
}

.wc-dashboard-welcome__greeting {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.wc-dashboard-welcome__name {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(20px, 2.5vw, 28px) !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin: 0 0 10px !important;
    line-height: 1.2 !important;
}

.wc-dashboard-welcome__text {
    font-size: 0.855rem;
    color: var(--color-muted);
    line-height: 1.65;
    max-width: 520px;
    margin: 0;
}

/* Quick-access cards */
.wc-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.wc-dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 20px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-decoration: none !important;
    color: var(--color-text);
    text-align: center;
    transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s, color 0.22s;
}

.wc-dashboard-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 18px rgba(var(--color-primary-rgb),0.14);
    transform: translateY(-2px);
    color: var(--color-primary);
    text-decoration: none !important;
}

.wc-dashboard-card--logout:hover {
    border-color: #e53e3e;
    box-shadow: 0 4px 18px rgba(229,62,62,0.1);
    color: #e53e3e;
}

.wc-dashboard-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--color-blush);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: background 0.22s;
    flex-shrink: 0;
}

.wc-dashboard-card:hover .wc-dashboard-card__icon { background: #eef6e4; }
.wc-dashboard-card--logout .wc-dashboard-card__icon { background: #fff5f5; color: #e53e3e; }
.wc-dashboard-card--logout:hover .wc-dashboard-card__icon { background: #ffe0e0; }

.wc-dashboard-card__label {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Recent orders section */
.wc-dashboard-recent { margin-bottom: 22px; }

.wc-dashboard-recent__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.wc-dashboard-recent__title {
    font-size: 0.97rem !important;
    font-weight: 800 !important;
    color: var(--color-text) !important;
    margin: 0 !important;
    font-family: var(--font-body) !important;
}

.wc-dashboard-recent__viewall {
    font-size: 0.81rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}
.wc-dashboard-recent__viewall:hover { text-decoration: underline; }

/* =====================================================
   6. ORDERS TABLE
   ===================================================== */
.wc-orders-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 22px;
}

.wc-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.wc-orders-table thead th {
    background: var(--color-cream);
    padding: 12px 15px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    font-family: var(--font-body);
}

.wc-orders-table tbody td {
    padding: 14px 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text);
}

.wc-orders-table tbody tr:last-child td { border-bottom: none; }
.wc-orders-table tbody tr:hover td { background: #fafaf8; }

.wc-order-number a {
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none !important;
}
.wc-order-number a:hover { text-decoration: underline !important; }

.wc-order-date { color: var(--color-muted); font-size: 0.83rem; }
.wc-order-total { font-weight: 800; }

/* ── Status badges ── */
.wc-order-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
    font-family: var(--font-body);
}

.wc-order-status.status-completed    { background: #d4edda; color: #1a5c2e; }
.wc-order-status.status-processing   { background: #d1ecf1; color: #0a4a57; }
.wc-order-status.status-pending,
.wc-order-status.status-pending-payment { background: #fff3cd; color: #7a5a00; }
.wc-order-status.status-on-hold      { background: #fde8d0; color: #7a3e0d; }
.wc-order-status.status-cancelled    { background: #f0f0f0; color: #555; }
.wc-order-status.status-refunded     { background: #e9d8fd; color: #5b21b6; }
.wc-order-status.status-failed       { background: #fde8e8; color: #9b1c1c; }

.wc-order-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.18s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.wc-order-action-btn:hover { background: var(--color-primary-dark); color: #fff !important; }
.wc-order-action-btn + .wc-order-action-btn { margin-left: 6px; }

.wc-orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border-top: 1px solid var(--color-border);
}

.wc-orders-empty {
    text-align: center;
    padding: 56px 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.wc-orders-empty__icon { font-size: 48px; margin-bottom: 14px; display: block; }

.wc-orders-empty__title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: var(--color-text) !important;
    margin: 0 0 8px !important;
    font-family: var(--font-body) !important;
}

.wc-orders-empty__text {
    color: var(--color-muted);
    font-size: 0.87rem;
    margin: 0 0 18px;
}

/* =====================================================
   7. VIEW ORDER
   ===================================================== */
.wc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.81rem;
    font-weight: 600;
    color: var(--color-muted);
    text-decoration: none !important;
    margin-bottom: 10px;
    transition: color 0.18s;
}
.wc-back-link:hover { color: var(--color-primary); }

.wc-view-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.wc-view-order-header .wc-account-page-title { margin-bottom: 0 !important; }

.wc-view-order-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.wc-view-order-meta-item {
    background: var(--color-cream);
    border-radius: 11px;
    padding: 14px;
    border: 1px solid var(--color-border);
}

.wc-view-order-meta-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-muted);
    margin-bottom: 5px;
}

.wc-view-order-meta-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
}

/* WC order table inside card */
.wc-account-card .woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.wc-account-card .woocommerce-table--order-details thead th {
    font-size: 0.71rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
}

.wc-account-card .woocommerce-table--order-details tbody td {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    color: var(--color-text);
}

.wc-account-card .order-total td {
    font-weight: 800;
    font-size: 1rem;
    color: var(--color-primary);
}

.wc-account-card address {
    font-style: normal;
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-cream);
    border-radius: 11px;
    padding: 14px;
    border: 1px solid var(--color-border);
    margin-top: 8px;
}

.wc-view-order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* =====================================================
   8. ADDRESSES
   ===================================================== */
.wc-addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.wc-address-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 22px;
}

.wc-address-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.wc-address-card__title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: var(--color-text) !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-family: var(--font-body) !important;
}

.wc-address-card__edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--color-primary) !important;
    text-decoration: none !important;
    padding: 5px 12px;
    border: 1.5px solid var(--color-primary);
    border-radius: 999px;
    transition: all 0.18s;
}
.wc-address-card__edit:hover { background: var(--color-primary); color: #fff !important; }

.wc-address-card__content {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.8;
}

.wc-address-card__empty {
    color: var(--color-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* =====================================================
   9. ACCOUNT FORM (form-edit-account)
   ===================================================== */
.wc-account-form-wrap {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 30px;
}

.wc-account-form-wrap .woocommerce-form-row,
.wc-account-form-wrap .form-row { margin-bottom: 18px !important; }

.wc-account-form-wrap label {
    display: block !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin-bottom: 6px !important;
    font-family: var(--font-body) !important;
}

.wc-account-form-wrap .required { color: var(--color-primary); }

.wc-account-form-wrap input[type="text"],
.wc-account-form-wrap input[type="email"],
.wc-account-form-wrap input[type="password"],
.wc-account-form-wrap input[type="tel"],
.wc-account-form-wrap select {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 10px !important;
    background: var(--color-white) !important;
    color: var(--color-text) !important;
    font-size: 0.9rem !important;
    font-family: var(--font-body) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.wc-account-form-wrap input:focus,
.wc-account-form-wrap select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.13) !important;
}

.wc-account-form-section {
    padding-top: 22px;
    margin-top: 6px;
    border-top: 1px solid var(--color-border);
}

.wc-account-form-section__title {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    color: var(--color-text) !important;
    margin: 0 0 16px !important;
    font-family: var(--font-body) !important;
}

.wc-account-form-wrap [type="submit"],
.wc-account-form-wrap .button {
    padding: 11px 30px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    font-family: var(--font-body) !important;
    cursor: pointer !important;
    transition: background 0.18s !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.wc-account-form-wrap [type="submit"]:hover { background: var(--color-primary-dark) !important; }

.wc-account-form-row-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* =====================================================
   9b. EDIT ADDRESS FORM
       WooCommerce renders fields via woocommerce_form_field()
       which wraps each in .woocommerce-address-fields__field-wrapper > p.form-row
   ===================================================== */
.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

/* Full-width fields (first name, last name, etc. are half; address lines / country are full) */
.woocommerce-address-fields__field-wrapper .form-row-wide,
.woocommerce-address-fields__field-wrapper .woocommerce-address-fields__field-wrapper--full {
    grid-column: 1 / -1;
}

.woocommerce-address-fields__field-wrapper .form-row-first { grid-column: 1; }
.woocommerce-address-fields__field-wrapper .form-row-last  { grid-column: 2; }

/* Field row resets */
.wc-account-form-wrap .woocommerce-address-fields__field-wrapper .form-row {
    margin-bottom: 18px !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
}

/* Select fields inside form-edit-address */
.wc-account-form-wrap .select2-container,
.wc-account-form-wrap .select2-container--default .select2-selection--single {
    width: 100% !important;
    height: auto !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    font-family: var(--font-body) !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
    outline: none !important;
}

.wc-account-form-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 11px 14px !important;
    line-height: 1.4 !important;
    color: var(--color-text) !important;
    font-size: 0.9rem !important;
}

.wc-account-form-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 12px !important;
}

.wc-account-form-wrap .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.13) !important;
}

/* State/postcode row — display side by side */
.woocommerce-address-fields__field-wrapper #billing_city_field,
.woocommerce-address-fields__field-wrapper #shipping_city_field { grid-column: 1; }

.woocommerce-address-fields__field-wrapper #billing_postcode_field,
.woocommerce-address-fields__field-wrapper #shipping_postcode_field { grid-column: 2; }

@media (max-width: 640px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
    .woocommerce-address-fields__field-wrapper .form-row-first,
    .woocommerce-address-fields__field-wrapper .form-row-last,
    .woocommerce-address-fields__field-wrapper #billing_city_field,
    .woocommerce-address-fields__field-wrapper #shipping_city_field,
    .woocommerce-address-fields__field-wrapper #billing_postcode_field,
    .woocommerce-address-fields__field-wrapper #shipping_postcode_field {
        grid-column: 1;
    }
}

/* =====================================================
   10. LOGIN / REGISTER PAGE
   ===================================================== */
.wc-login-page-wrap {
    max-width: var(--container-width, 1280px);
    margin: 0 auto;
    padding: 52px 24px;
    box-sizing: border-box;
}

.wc-login-page-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef6e4;
    border: 1px solid #b7dba0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 26px;
    font-size: 0.875rem;
    color: #2e6b13;
    font-weight: 500;
}

.wc-login-register {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
}

.wc-auth-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 2px 12px rgba(var(--color-text-rgb),0.05);
}

.wc-auth-card__title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(21px, 2.6vw, 27px) !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin: 0 0 6px !important;
    line-height: 1.2 !important;
}

.wc-auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0 0 26px;
    line-height: 1.5;
}

.wc-auth-card .woocommerce-form-row,
.wc-auth-card .form-row { margin-bottom: 16px !important; }

.wc-auth-card label {
    display: block !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin-bottom: 6px !important;
    font-family: var(--font-body) !important;
}

.wc-auth-card .required { color: var(--color-primary); }

.wc-auth-card input[type="text"],
.wc-auth-card input[type="email"],
.wc-auth-card input[type="password"],
.wc-auth-card input[type="tel"] {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 10px !important;
    background: var(--color-white) !important;
    color: var(--color-text) !important;
    font-size: 0.9rem !important;
    font-family: var(--font-body) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.wc-auth-card input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.13) !important;
}

.wc-auth-card__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--color-muted);
    cursor: pointer;
}

.wc-auth-card__remember input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.wc-auth-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.wc-auth-card [type="submit"],
.wc-auth-card .woocommerce-button,
.wc-auth-card .woocommerce-Button {
    padding: 11px 30px !important;
    background: var(--color-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    font-family: var(--font-body) !important;
    cursor: pointer !important;
    transition: background 0.18s !important;
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.wc-auth-card [type="submit"]:hover,
.wc-auth-card .woocommerce-button:hover {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
}

.wc-auth-card__forgot {
    font-size: 0.82rem;
    color: var(--color-muted);
    text-decoration: none !important;
}
.wc-auth-card__forgot:hover { color: var(--color-primary); text-decoration: underline !important; }

.wc-auth-card .woocommerce-privacy-policy-text {
    font-size: 0.78rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.wc-auth-card .woocommerce-privacy-policy-text a { color: var(--color-primary); }

.wc-auth-card__hint {
    font-size: 0.79rem;
    color: var(--color-muted);
    background: var(--color-cream);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--color-border);
}

/* =====================================================
   11. OTP REGISTRATION FORM
   ===================================================== */

/* — Sent notice banner — */
.gifttree-otp-sent-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef6e4;
    border: 1px solid #b7dba0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.855rem;
    color: #2e6b13;
    font-weight: 500;
}

/* — OTP instruction label — */
.gifttree-otp-label {
    font-size: 0.83rem;
    color: var(--color-muted);
    margin: 0 0 16px;
    font-weight: 500;
}

/* — 6-digit input row — */
.gifttree-otp-inputs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    justify-content: flex-start;
}

.gifttree-otp-digit {
    width: 46px !important;
    height: 52px !important;
    text-align: center;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    border: 2px solid var(--color-border) !important;
    border-radius: 10px !important;
    background: var(--color-white) !important;
    color: var(--color-text) !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s, box-shadow 0.18s !important;
    box-sizing: border-box !important;
    caret-color: var(--color-primary);
    font-family: 'Courier New', monospace !important;
}

.gifttree-otp-digit:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb),0.18) !important;
}

.gifttree-otp-digit:not(:placeholder-shown):not(:focus) {
    border-color: var(--color-primary) !important;
    background: #f5faf0 !important;
}

.gifttree-otp-sep {
    font-size: 1.2rem;
    color: var(--color-muted);
    line-height: 1;
    margin: 0 2px;
    user-select: none;
}

/* — Countdown timer — */
.gifttree-otp-timer-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 14px;
}

.gifttree-otp-timer-wrap svg { flex-shrink: 0; opacity: 0.6; }

#gifttree-otp-countdown {
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

/* — Error box — */
.gifttree-otp-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fde8e8;
    border: 1px solid #f5c0c0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.83rem;
    color: #9b1c1c;
    font-weight: 500;
}

/* — Footer links (Resend · Change details) — */
.gifttree-otp-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.82rem;
}

.gifttree-otp-link {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
    font-family: var(--font-body) !important;
    color: var(--color-primary) !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: opacity 0.18s !important;
    line-height: 1.4 !important;
    height: auto !important;
    display: inline !important;
    box-shadow: none !important;
}

.gifttree-otp-link:disabled,
.gifttree-otp-link[disabled] {
    color: var(--color-muted) !important;
    text-decoration: none !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.gifttree-otp-dot {
    color: var(--color-border);
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

/* — Spinner inside buttons — */
.gifttree-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gifttree-spin 0.65s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
    flex-shrink: 0;
}

@keyframes gifttree-spin {
    to { transform: rotate(360deg); }
}

/* — Loading state — */
.wc-auth-card .woocommerce-button.is-loading,
.wc-auth-card button[disabled] {
    opacity: 0.75;
    cursor: not-allowed !important;
}

/* — Password section divider — */
.gifttree-otp-section-divider {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin: 22px 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

/* — Password input wrapper (input + eye toggle) — */
.gifttree-pw-wrap {
    display: flex !important;
    align-items: center;
    position: relative;
}

.gifttree-pw-wrap .woocommerce-Input {
    padding-right: 44px !important;
}

.gifttree-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    color: var(--color-muted) !important;
    line-height: 1 !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: color 0.18s !important;
    border-radius: 4px !important;
}
.gifttree-pw-toggle:hover { color: var(--color-primary) !important; }

/* — Mobile: shrink OTP digits slightly — */
@media (max-width: 480px) {
    .gifttree-otp-digit {
        width: 38px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }
    .gifttree-otp-inputs-wrap { gap: 5px; }
    .gifttree-otp-sep { margin: 0; font-size: 1rem; }
}

/* =====================================================
   13. WooCommerce NOTICES
   ===================================================== */
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.gifttree-account-content .woocommerce-error,
.gifttree-account-content .woocommerce-message,
.gifttree-account-content .woocommerce-info {
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    padding: 13px 16px !important;
    margin-bottom: 18px !important;
    list-style: none !important;
}

.woocommerce-account .woocommerce-message,
.gifttree-account-content .woocommerce-message {
    background: #eef6e4 !important;
    border-left: 4px solid var(--color-primary) !important;
    color: #2e6b13 !important;
}

.woocommerce-account .woocommerce-error,
.gifttree-account-content .woocommerce-error {
    background: #fde8e8 !important;
    border-left: 4px solid #e53e3e !important;
    color: #9b1c1c !important;
}

.woocommerce-account .woocommerce-info,
.gifttree-account-content .woocommerce-info {
    background: #e8f4fd !important;
    border-left: 4px solid #2b6cb0 !important;
    color: #1a4e7c !important;
}

.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-error::before,
.woocommerce-account .woocommerce-info::before { display: none !important; }

/* =====================================================
   15. RESPONSIVE — Tablet (≤960px)
   ===================================================== */
@media (max-width: 960px) {

    /* ── Two-column → single column ── */
    .gifttree-account-wrap {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    /* ── Sidebar: sticky → static, becomes a top nav bar ── */
    .gifttree-account-sidebar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 2px 10px rgba(var(--color-text-rgb),0.07);
    }

    .wc-account-nav {
        position: static !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Hide user profile block on mobile to save space */
    .wc-account-nav__user { display: none !important; }

    /* Horizontal scrolling pill nav */
    .wc-account-nav .wc-account-nav__list {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 10px 14px 10px !important;
        gap: 7px;
        flex-wrap: nowrap !important;
        margin: 0 !important;
    }
    .wc-account-nav .wc-account-nav__list::-webkit-scrollbar { display: none !important; }

    .wc-account-nav__item {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important;
    }

    .wc-account-nav__link {
        padding: 9px 16px !important;
        border-radius: 999px !important;
        border-left: none !important;
        border: 1.5px solid var(--color-border) !important;
        font-size: 0.83rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        min-height: auto !important;
        gap: 7px !important;
        background: var(--color-white) !important;
        line-height: 1.3 !important;
    }

    .wc-account-nav__link:hover {
        border-color: var(--color-primary) !important;
        background: #eef6e4 !important;
        color: var(--color-primary) !important;
    }

    .wc-account-nav__item.is-active > .wc-account-nav__link,
    .wc-account-nav__item.woocommerce-MyAccount-navigation-link--active > .wc-account-nav__link {
        background: var(--color-primary) !important;
        color: #fff !important;
        border-color: var(--color-primary) !important;
        font-weight: 700 !important;
    }

    .wc-account-nav__item.is-active .wc-account-nav__icon,
    .wc-account-nav__item.woocommerce-MyAccount-navigation-link--active .wc-account-nav__icon,
    .wc-account-nav__link:hover .wc-account-nav__icon { opacity: 1; }

    .wc-account-nav__item--logout {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .wc-account-nav__item--logout .wc-account-nav__link {
        color: #e53e3e !important;
        border-color: #f5c0c0 !important;
    }
    .wc-account-nav__item--logout .wc-account-nav__link:hover {
        background: #fff5f5 !important;
        border-color: #e53e3e !important;
    }

    /* ── Content area ── */
    .gifttree-account-content {
        padding: 28px 20px !important;
    }

    /* ── Dashboard ── */
    .wc-dashboard-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wc-view-order-meta { grid-template-columns: 1fr 1fr; }
    .wc-account-form-row-pair { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================
   16. RESPONSIVE — Mobile (≤640px)
   ===================================================== */
@media (max-width: 640px) {

    /* ── Login / Register page ── */
    .wc-login-page-wrap { padding: 24px 16px 40px; }
    .wc-login-register  { grid-template-columns: 1fr; gap: 18px; }
    .wc-auth-card       { padding: 24px 18px; border-radius: 16px; }
    .wc-auth-card__title { font-size: clamp(19px, 5.5vw, 24px) !important; }

    /* ── Account content area ── */
    .gifttree-account-content { padding: 20px 14px !important; }

    /* ── Page titles ── */
    .wc-account-page-title {
        font-size: clamp(18px, 5vw, 22px) !important;
        margin-bottom: 16px !important;
    }

    /* ── Dashboard welcome ── */
    .wc-dashboard-welcome {
        padding: 20px 18px;
        border-radius: 12px;
    }
    .wc-dashboard-welcome::after { display: none; }

    /* ── Dashboard cards: 2-col on mobile ── */
    .wc-dashboard-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
    .wc-dashboard-card  { padding: 16px 10px; border-radius: 12px; gap: 8px; }
    .wc-dashboard-card__icon  { width: 38px; height: 38px; border-radius: 9px; }
    .wc-dashboard-card__label { font-size: 0.77rem; }

    /* ── Orders table: horizontal scroll ── */
    .wc-orders-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
    .wc-orders-table { min-width: 520px; }
    .wc-orders-table thead th,
    .wc-orders-table tbody td { padding: 12px 12px; }

    /* ── View order ── */
    .wc-view-order-header  { flex-direction: column; gap: 10px; }
    .wc-view-order-meta    { grid-template-columns: 1fr 1fr; gap: 9px; }
    .wc-view-order-actions { flex-direction: column; }
    .wc-view-order-actions .wc-order-action-btn { width: 100%; justify-content: center; }

    /* ── Address cards ── */
    .wc-addresses-grid { grid-template-columns: 1fr; gap: 14px; }
    .wc-address-card   { padding: 18px; border-radius: 12px; }

    /* ── Account form ── */
    .wc-account-card     { padding: 18px; border-radius: 12px; }
    .wc-account-form-wrap { padding: 18px 16px; border-radius: 12px; }
    .wc-account-form-row-pair { grid-template-columns: 1fr; gap: 0; }

    /* ── Edit address form ── */
    .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
    .woocommerce-address-fields__field-wrapper .form-row-first,
    .woocommerce-address-fields__field-wrapper .form-row-last { grid-column: 1; }

    /* ── OTP form ── */
    .gifttree-otp-digit {
        width: 40px !important;
        height: 46px !important;
        font-size: 1.15rem !important;
        border-radius: 8px !important;
    }
    .gifttree-otp-inputs-wrap { gap: 6px; justify-content: center; }
    .gifttree-otp-sep { margin: 0 2px; font-size: 0.9rem; }

    /* ── Pagination ── */
    .wc-orders-pagination { padding: 14px; gap: 8px; flex-wrap: wrap; justify-content: center; }

    /* ── Generic cards ── */
    .wc-orders-empty { padding: 40px 18px; border-radius: 12px; }

    /* ── Form rows ── */
    .wc-auth-card .woocommerce-form-row { margin-bottom: 14px !important; }
}

/* =====================================================
   17. RESPONSIVE — Small mobile (≤400px)
   ===================================================== */
@media (max-width: 400px) {
    .wc-auth-card { padding: 20px 14px; }
    .wc-auth-card__footer { flex-direction: column; align-items: stretch; gap: 10px; }
    .wc-auth-card [type="submit"],
    .wc-auth-card .woocommerce-button { width: 100%; justify-content: center; }

    .wc-dashboard-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .wc-dashboard-card  { padding: 12px 8px; gap: 6px; }
    .wc-dashboard-card__icon  { width: 34px; height: 34px; }
    .wc-dashboard-card__label { font-size: 0.72rem; }

    .gifttree-otp-digit {
        width: 36px !important;
        height: 42px !important;
        font-size: 1rem !important;
    }
    .gifttree-otp-inputs-wrap { gap: 4px; }

    .wc-view-order-meta { grid-template-columns: 1fr; }
}
