/* GiftB360x — My Account (TIGC-style, mobile-first) */

/* ── Wrapper ────────────────────────────────────────────────────────── */
.gb-acct-wrap {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    position: relative;
    font-family: inherit;
}

/* ── Login shell (logged-out state) ─────────────────────────────────── */
.gb-acct-login-shell {
    padding: 40px 24px 60px;
}
.gb-acct-login-shell .woocommerce { max-width: 100%; }
.gb-acct-login-shell h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.gb-acct-login-shell .form-row { margin-bottom: 14px; }
.gb-acct-login-shell .form-row label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; }
.gb-acct-login-shell .form-row input { width: 100%; padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; }
.gb-acct-login-shell .form-row input:focus { border-color: var(--gb-primary, #7c3aed); }
.gb-acct-login-shell .button { width: 100%; background: var(--gb-primary, #7c3aed); color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; letter-spacing: .5px; }

/* ── Dashboard ─────────────────────────────────────────────────────── */
.gb-acct-dashboard { padding-bottom: 80px; }

.gb-acct-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 16px 20px;
    background: #faf9f7;
    border-bottom: 1px solid #f0f0f0;
}
.gb-acct-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gb-primary, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: 0;
}
.gb-acct-greeting { font-size: 18px; font-weight: 700; color: #111; line-height: 1.3; }
.gb-acct-sub { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* Tiles */
.gb-acct-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
    margin: 0 0 8px;
    border-bottom: 1px solid #f0f0f0;
}
.gb-acct-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 10px;
    background: #fff;
    text-decoration: none;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    transition: background .15s;
}
.gb-acct-tile:hover { background: #faf9f7; }
.gb-acct-tile svg { stroke: #374151; }

/* Link rows */
.gb-acct-links {
    margin: 8px 0;
    border-top: 1px solid #f0f0f0;
}
.gb-acct-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    transition: background .12s;
}
.gb-acct-link:hover { background: #faf9f7; }
.gb-acct-link-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gb-acct-link-icon svg { stroke: #374151; }
.gb-acct-link-text { flex: 1; }
.gb-acct-wa-dot { font-size: 10px; margin-left: 4px; }
.gb-acct-chevron { flex-shrink: 0; stroke: #9ca3af; }

/* Logout */
.gb-acct-logout-wrap { padding: 24px 16px 32px; }
.gb-acct-logout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    color: #374151;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.gb-acct-logout:hover { border-color: #ef4444; color: #ef4444; }

/* ── Sub-page common ────────────────────────────────────────────────── */
.gb-acct-subpage { min-height: 80vh; padding-bottom: 100px; }

.gb-acct-subheader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 50;
}
.gb-acct-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none !important;
    color: #111 !important;
    flex-shrink: 0;
    transition: background .15s;
}
.gb-acct-back svg { display: block; }
.gb-acct-back:hover { background: #f3f4f6; color: #111 !important; }
.gb-acct-subtitle {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .6px;
    color: #111;
}

/* CTA button — color: !important to beat Astra global a{} override */
.gb-acct-cta {
    display: block;
    width: calc(100% - 32px);
    margin: 16px;
    padding: 16px;
    background: var(--gb-primary, #7c3aed);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    font-family: inherit;
    transition: opacity .2s;
}
.gb-acct-cta:hover { opacity: .88; color: #fff !important; }
.gb-acct-cta--outline {
    background: transparent !important;
    color: var(--gb-primary, #7c3aed) !important;
    border: 1.5px solid var(--gb-primary, #7c3aed);
}

/* ── Profile Form ──────────────────────────────────────────────────── */
.gb-profile-form { padding: 20px 16px 0; }

/* Floating label field */
.gb-field-float {
    position: relative;
    margin-bottom: 18px;
}
.gb-field-float input,
.gb-field-float select {
    width: 100%;
    padding: 20px 14px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
    color: #111;
}
.gb-field-float input:focus,
.gb-field-float select:focus { border-color: var(--gb-primary, #7c3aed); }
.gb-field-float label {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 15px;
    color: #9ca3af;
    font-weight: 400;
    pointer-events: none;
    transition: all .15s ease;
    transform-origin: left top;
    background: transparent;
}
.gb-field-float input:focus ~ label,
.gb-field-float input:not(:placeholder-shown) ~ label,
.gb-field-float select:focus ~ label,
.gb-field-float select:not([value=""]) ~ label {
    top: 7px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: .3px;
}
.gb-field-float label span { color: #ef4444; }

/* Gender */
.gb-field-gender { padding: 6px 0 20px; }
.gb-gender-label { display: block; font-size: 13px; color: #6b7280; font-weight: 500; margin-bottom: 12px; }
.gb-gender-opts { display: flex; gap: 12px; }
.gb-gender-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}
.gb-gender-opt input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gb-primary, #7c3aed);
    cursor: pointer;
}

/* ── Orders List ───────────────────────────────────────────────────── */
.gb-orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 500;
}

.gb-orders-list { padding: 8px 0; }

.gb-order-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: #111;
    transition: background .12s;
}
.gb-order-card:hover { background: #faf9f7; }
.gb-order-img { flex-shrink: 0; }
.gb-order-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #f3f4f6; }
.gb-order-img-ph { width: 64px; height: 64px; border-radius: 8px; background: #f9fafb; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; }

.gb-order-info { flex: 1; min-width: 0; }
.gb-order-num { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.gb-order-meta { font-size: 12px; color: #9ca3af; margin-bottom: 6px; }

/* Status badges — !important so Astra a{} color doesn't override */
.gb-order-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none !important;
}
.gb-order-badge--processing,
.gb-order-badge--on-hold    { background: #fef9c3; color: #854d0e !important; }
.gb-order-badge--completed  { background: #dcfce7; color: #166534 !important; }
.gb-order-badge--shipped,
.gb-order-badge--out-for-delivery { background: #dbeafe; color: #1e40af !important; }
.gb-order-badge--cancelled,
.gb-order-badge--failed,
.gb-order-badge--refunded   { background: #fee2e2; color: #991b1b !important; }
.gb-order-badge--pending    { background: #f3f4f6; color: #374151 !important; }

.gb-order-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.gb-order-total { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ── Order Detail ──────────────────────────────────────────────────── */
.gb-odet-banner {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #f0f0f0;
}
.gb-odet-banner--completed  { background: #f0fdf4; }
.gb-odet-banner--processing { background: #fefce8; }
.gb-odet-banner--shipped,
.gb-odet-banner--out-for-delivery { background: #eff6ff; }
.gb-odet-banner--cancelled,
.gb-odet-banner--failed,
.gb-odet-banner--refunded   { background: #fef2f2; }
.gb-odet-banner--pending    { background: #f9fafb; }

.gb-odet-banner-status { font-size: 16px; font-weight: 800; color: #111; }
.gb-odet-banner-date   { font-size: 12px; color: #6b7280; }

/* Horizontal timeline */
.gb-htimeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 16px 16px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    gap: 0;
}
.gb-htimeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.gb-htimeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    transition: background .2s;
}
.gb-htimeline-step.is-done .gb-htimeline-dot  { background: var(--gb-primary, #7c3aed); }
.gb-htimeline-step.is-active .gb-htimeline-dot { background: var(--gb-primary, #7c3aed); box-shadow: 0 0 0 4px rgba(124,58,237,.15); }
.gb-htimeline-line {
    position: absolute;
    top: 12px;
    left: calc(50% + 12px);
    right: calc(-50% + 12px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.gb-htimeline-line.is-done { background: var(--gb-primary, #7c3aed); }
.gb-htimeline-label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
    white-space: nowrap;
    line-height: 1.3;
    max-width: 60px;
}
.gb-htimeline-step.is-done .gb-htimeline-label  { color: var(--gb-primary, #7c3aed); }
.gb-htimeline-step.is-active .gb-htimeline-label { color: #111; font-weight: 700; }

/* Order detail sections */
.gb-odet-section {
    padding: 16px;
    border-bottom: 8px solid #f9fafb;
}
.gb-odet-section--muted { border-bottom: 1px solid #f0f0f0; }
.gb-odet-heading {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.gb-odet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.gb-odet-item:last-child { border: none; }
.gb-odet-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #f3f4f6; flex-shrink: 0; }
.gb-odet-item-info { flex: 1; min-width: 0; }
.gb-odet-item-name { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 2px; }
.gb-odet-item-var  { font-size: 11px; color: #9ca3af; }
.gb-odet-item-qty  { font-size: 12px; color: #6b7280; margin-top: 2px; }
.gb-odet-item-price { font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

.gb-odet-address { font-size: 14px; color: #374151; line-height: 1.7; }
.gb-odet-address-phone { font-size: 13px; color: #6b7280; margin-top: 6px; }

.gb-odet-prices { }
.gb-odet-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}
.gb-odet-price-row:last-child { border: none; }
.gb-odet-price-row span:first-child { color: #6b7280; }
.gb-odet-price-row span:last-child  { font-weight: 600; color: #111; }
.gb-odet-price-row--disc span { color: #16a34a !important; }
.gb-odet-price-row--total {
    font-size: 15px;
    padding-top: 12px;
    border-top: 2px solid #f0f0f0;
    border-bottom: none;
}
.gb-odet-price-row--total span { font-weight: 800 !important; color: #111 !important; }

.gb-odet-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #f9fafb;
}
.gb-odet-meta-row:last-child { border: none; }
.gb-odet-meta-row span:first-child { color: #9ca3af; }
.gb-odet-meta-row span:last-child { font-weight: 600; color: #374151; }

.gb-odet-note { background: #f9fafb; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.gb-odet-note-text { font-size: 13px; color: #374151; line-height: 1.5; }
.gb-odet-note-date { font-size: 11px; color: #9ca3af; margin-top: 4px; }

.gb-odet-actions { padding: 16px 0; }

/* ── Addresses ─────────────────────────────────────────────────────── */
/* Profile saved banner */
.gb-profile-saved {
    margin: 12px 16px;
    padding: 11px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    font-size: 13px;
    color: #166534;
    font-weight: 600;
}

.gb-addr-card {
    margin: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}
.gb-addr-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.gb-addr-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; }
.gb-addr-card-actions { display: flex; align-items: center; gap: 12px; }
.gb-addr-edit-link { font-size: 13px; font-weight: 700; color: var(--gb-primary, #7c3aed) !important; text-decoration: none !important; }
.gb-addr-delete-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}
.gb-addr-delete-btn:hover { text-decoration: underline; }
.gb-addr-text { font-size: 14px; color: #374151; line-height: 1.7; }
.gb-addr-phone { font-size: 13px; color: #6b7280; margin-top: 6px; }
.gb-addr-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color .15s, color .15s;
}
.gb-addr-add-btn:hover { border-color: var(--gb-primary, #7c3aed); color: var(--gb-primary, #7c3aed) !important; }

/* Standalone "Add New Address" button below the cards */
.gb-addr-new-wrap {
    margin: 8px 16px 24px;
}
.gb-addr-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: var(--gb-primary, #7c3aed);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .2s;
    box-sizing: border-box;
}
.gb-addr-new-btn:hover { opacity: .88; color: #fff !important; }
.gb-addr-new-btn svg { stroke: #fff; flex-shrink: 0; }

/* WC address form — rendered via do_shortcode('[woocommerce_my_account]') */
.gb-wc-addr-form { padding: 16px; }

/* Hide WC's native nav & breadcrumb inside our shell */
.gb-wc-addr-form .woocommerce-MyAccount-navigation,
.gb-wc-addr-form .woocommerce-MyAccount-navigation-link,
.gb-wc-addr-form h2.woocommerce-column__title { display: none !important; }

/* Strip WC's outer layout margin */
.gb-wc-addr-form .woocommerce-MyAccount-content { margin: 0 !important; padding: 0 !important; }

.gb-wc-addr-form fieldset { border: none; padding: 0; margin: 0 0 12px; }
.gb-wc-addr-form fieldset legend { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: #111; display: none; }
.gb-wc-addr-form .form-row { margin-bottom: 14px; }
.gb-wc-addr-form .form-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
}
.gb-wc-addr-form .form-row input,
.gb-wc-addr-form .form-row select,
.gb-wc-addr-form .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    -webkit-appearance: none;
}
.gb-wc-addr-form .form-row input:focus,
.gb-wc-addr-form .form-row select:focus { border-color: var(--gb-primary, #7c3aed); }
.gb-wc-addr-form .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.gb-wc-addr-form .button,
.gb-wc-addr-form button[type="submit"] {
    width: 100%;
    background: var(--gb-primary, #7c3aed);
    color: #fff !important;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .6px;
    margin-top: 8px;
}
.gb-wc-addr-form .woocommerce-address-fields { margin-top: 0; }
.gb-wc-addr-form p.woocommerce-form-row { margin-bottom: 14px; }
@media (max-width: 480px) {
    .gb-wc-addr-form .col2-set { grid-template-columns: 1fr; }
}

/* ── Track Order ───────────────────────────────────────────────────── */
.gb-track-form { padding: 20px 16px 0; }
.gb-track-hint { font-size: 13px; color: #9ca3af; margin: -8px 0 16px; line-height: 1.5; }
.gb-track-error {
    margin: 16px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    font-size: 13px;
    color: #991b1b;
    font-weight: 500;
}

.gb-track-result { padding: 20px 16px; }
.gb-track-num { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.gb-track-date { font-size: 13px; color: #6b7280; margin: 8px 0 24px; }
.gb-track-cancelled { font-size: 14px; color: #374151; line-height: 1.7; padding: 16px 0; }
.gb-track-cancelled a { color: #25d366; }
.gb-track-addr-box { margin-top: 24px; padding: 14px; background: #f9fafb; border-radius: 8px; }
.gb-track-addr-label { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.gb-track-addr-text { font-size: 14px; color: #374151; line-height: 1.7; }
.gb-track-again { display: block; margin-top: 24px; font-size: 13px; color: var(--gb-primary, #7c3aed); text-decoration: none; font-weight: 600; }

/* Vertical Timeline (Track page) */
.gb-vtimeline { padding: 8px 0 24px; }
.gb-vtl-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-height: 56px;
}
.gb-vtl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.gb-vtl-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
    z-index: 1;
    position: relative;
}
.gb-vtl-step.is-done .gb-vtl-dot  { background: var(--gb-primary, #7c3aed); }
.gb-vtl-step.is-active .gb-vtl-dot {
    background: var(--gb-primary, #7c3aed);
    box-shadow: 0 0 0 5px rgba(124,58,237,.12);
}
.gb-vtl-connector {
    width: 2px;
    flex: 1;
    background: #e5e7eb;
    min-height: 28px;
    margin: 2px 0;
}
.gb-vtl-connector.is-done { background: var(--gb-primary, #7c3aed); }
.gb-vtl-right { padding: 4px 0 20px; }
.gb-vtl-label { font-size: 14px; font-weight: 600; color: #6b7280; line-height: 1.4; }
.gb-vtl-step.is-done .gb-vtl-label  { color: #374151; }
.gb-vtl-step.is-active .gb-vtl-label { color: #111; font-weight: 800; }
.gb-vtl-sub { font-size: 12px; color: #9ca3af; margin-top: 3px; }

/* ── WooCommerce notices (inside our template) ────────────────────── */
.gb-acct-subpage .woocommerce-message,
.gb-acct-subpage .woocommerce-error,
.gb-acct-subpage .woocommerce-info {
    margin: 12px 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    list-style: none;
}
.gb-acct-subpage .woocommerce-message { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.gb-acct-subpage .woocommerce-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.gb-acct-subpage .woocommerce-error li { list-style: none; }

/* ── Responsive tweaks ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .gb-acct-wrap { max-width: 100%; }
    .gb-htimeline-label { max-width: 50px; font-size: 9px; }
    .gb-wc-addr-form .col2-set { grid-template-columns: 1fr; }
}

/* ── Orders toolbar (search + sort) ───────────────────────────────── */
.gb-orders-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 16px 12px;
}
.gb-orders-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.gb-orders-search-wrap svg {
    position: absolute;
    left: 10px;
    pointer-events: none;
    display: block;
}
.gb-orders-search {
    width: 100%;
    padding: 9px 12px 9px 32px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    color: #111;
    background: #f9fafb;
    outline: none;
    transition: border-color .15s;
}
.gb-orders-search:focus { border-color: var(--gb-primary, #e63329); background: #fff; }
.gb-orders-sort {
    padding: 9px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 12px;
    color: #111;
    background: #f9fafb;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}
.gb-orders-sort:focus { border-color: var(--gb-primary, #e63329); }
.gb-orders-noresult {
    text-align: center;
    padding: 20px 16px;
    font-size: 13px;
    color: #9ca3af;
}
/* Also fix order status badge colors for custom statuses */
.gb-order-badge--shipped,
.gb-order-badge--out-for-delivery { background: #e0f2fe; color: #0369a1 !important; }
.gb-order-badge--failed           { background: #fee2e2; color: #7f1d1d !important; }

/* ── Profile Page Redesign ─────────────────────────────────────────── */
.gb-prf-page { background: #f3f4f6 !important; }

/* Hero */
.gb-prf-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px 24px;
    background: #fff;
    border-bottom: 6px solid #f3f4f6;
}
.gb-prf-av-wrap { position: relative; margin-bottom: 14px; }
.gb-prf-av {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gb-primary, #7c3aed);
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.gb-prf-hero-name {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
    text-align: center;
    line-height: 1.3;
}
.gb-prf-hero-email {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

/* Success banner */
.gb-prf-saved {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 16px 0;
    padding: 11px 14px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    font-size: 13px;
    color: #166534;
    font-weight: 600;
}
.gb-prf-saved svg { stroke: #16a34a; flex-shrink: 0; }

/* Form */
.gb-prf-form { padding: 0 0 40px; }

/* Section label */
.gb-prf-sec-hd {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 20px 20px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #6b7280;
}
.gb-prf-sec-hd svg { stroke: #9ca3af; flex-shrink: 0; }

/* Card */
.gb-prf-card {
    margin: 0 16px 4px;
    background: #fff;
    border-radius: 16px;
    padding: 0 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    overflow: hidden;
}

/* Override floating-label field styles inside the card */
.gb-prf-card .gb-field-float {
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
}
.gb-prf-card .gb-field-float:last-child { border-bottom: none; }
.gb-prf-card .gb-field-float input,
.gb-prf-card .gb-field-float select {
    border: none !important;
    border-radius: 0 !important;
    padding: 22px 0 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
}
.gb-prf-card .gb-field-float input:focus,
.gb-prf-card .gb-field-float select:focus {
    border: none !important;
    outline: none !important;
}
.gb-prf-card .gb-field-float label {
    left: 0 !important;
    top: 15px;
}
.gb-prf-card .gb-field-float input:focus ~ label,
.gb-prf-card .gb-field-float input:not(:placeholder-shown) ~ label {
    top: 6px;
    font-size: 10px;
    color: var(--gb-primary, #7c3aed);
    font-weight: 700;
    letter-spacing: .3px;
}

/* 2-col name row */
.gb-prf-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    border-bottom: 1px solid #f3f4f6;
}
.gb-prf-name-row .gb-field-float {
    border-bottom: none !important;
}

/* Gender row */
.gb-prf-gender-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 12px;
}
.gb-prf-gender-hd {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}
.gb-prf-pills { display: flex; gap: 8px; }
.gb-prf-pill { cursor: pointer; }
.gb-prf-pill input[type="radio"] { display: none; }
.gb-prf-pill span {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    transition: all .15s;
    user-select: none;
    white-space: nowrap;
}
.gb-prf-pill input:checked + span {
    background: var(--gb-primary, #7c3aed);
    border-color: var(--gb-primary, #7c3aed);
    color: #fff !important;
}

/* Readonly email field */
.gb-field-readonly { position: relative; }
.gb-field-readonly input { color: #9ca3af !important; padding-right: 28px !important; }
.gb-prf-lock {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}
.gb-prf-lock svg { stroke: #d1d5db; }

/* Save button */
.gb-prf-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 24px 16px 0;
    padding: 16px;
    background: var(--gb-primary, #7c3aed);
    color: #fff !important;
    border: none;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .8px;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.gb-prf-save-btn:hover   { opacity: .88; }
.gb-prf-save-btn:active  { transform: scale(.98); }
.gb-prf-save-btn svg     { stroke: #fff; flex-shrink: 0; }
