/**
 * Account / Auth Page Styles - Bonebana
 * Matches Figma Attached 1 (Sign In) & Attached 2 (Create Your Account)
 */

/* Full White Background for Account Page */
body.woocommerce-account,
body.woocommerce-account .im-site-main,
body.woocommerce-account #primary,
body.woocommerce-account .im-container,
body.woocommerce-account .woocommerce {
    background-color: #FFFFFF !important;
}

/* Hide WooCommerce native injected password toggles & wrappers */
.woocommerce-account .show-password-input,
.bb-account-auth-container .show-password-input,
.bb-auth-box .show-password-input {
    display: none !important;
}

.woocommerce-account .password-input,
.bb-account-auth-container .password-input {
    display: flex !important;
    width: 100% !important;
    position: relative !important;
}

.bb-account-auth-container {
    max-width: 480px;
    margin: 3rem auto 6rem auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    background-color: #FFFFFF;
}

.bb-auth-box {
    display: none;
    flex-direction: column;
    animation: bbAuthFadeIn 0.25s ease;
}

.bb-auth-box.is-active {
    display: flex;
}

.bb-auth-box.is-hidden {
    display: none !important;
}

@keyframes bbAuthFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bb-auth-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #1C1B18;
}

.bb-auth-page-icon svg {
    color: #1C1B18;
}

.bb-auth-page-title {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: #1C1B18;
    text-align: center;
    margin: 0 0 2.25rem 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

/* Auth Form */
.bb-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
}

.bb-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.bb-form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.bb-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.bb-form-label {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
    margin: 0 0 0.35rem 0;
}

.bb-form-label .required {
    color: #D32F2F;
    margin-left: 2px;
    text-decoration: none;
}

.bb-form-forgot-link {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #666666;
    text-decoration: underline !important;
    transition: color 0.2s;
}

.bb-form-forgot-link:hover {
    color: #1C1B18;
}

/* Underline Input Wrapper */
.bb-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #1C1B18;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.bb-input-wrapper:focus-within {
    border-bottom-color: #5C5248;
}

.bb-input-icon-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #1C1B18;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.bb-pwd-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #1C1B18;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    outline: none;
}

.bb-pwd-toggle:hover {
    color: #5C5248;
}

.bb-input-underline {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px solid #1C1B18 !important;
    background: transparent !important;
    padding: 0.65rem 0.25rem !important;
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
    font-size: 0.875rem !important;
    color: #1C1B18 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease;
}

.bb-input-wrapper .bb-input-underline {
    border-bottom: none !important;
    margin: 0 !important;
}

.bb-input-wrapper.with-icon-left .bb-input-underline {
    padding-left: 1.75rem !important;
}

.bb-input-wrapper.with-icon-right .bb-input-underline {
    padding-right: 2.25rem !important;
}

.bb-input-underline:focus {
    border-bottom-color: #5C5248 !important;
    outline: none !important;
    box-shadow: none !important;
}

.bb-input-underline::placeholder {
    color: #999999;
    font-size: 0.85rem;
}

/* Marketing Checkboxes */
.bb-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.bb-custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.bb-custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.bb-checkbox-box {
    width: 16px;
    height: 16px;
    border: 1px solid #5C5248;
    background-color: transparent;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
}

.bb-custom-checkbox input:checked ~ .bb-checkbox-box {
    background-color: #5C5248;
}

.bb-custom-checkbox input:checked ~ .bb-checkbox-box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bb-checkbox-label {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.75rem;
    color: #444444;
    line-height: 1.45;
}

/* Submit Button */
.bb-form-actions {
    margin-top: 0.75rem;
}

.bb-auth-submit-btn {
    width: 100%;
    height: 48px;
    background-color: #5C5248;
    color: #FFFFFF;
    border: none;
    border-radius: 2px;
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
}

.bb-auth-submit-btn:hover {
    background-color: #1C1B18;
    color: #FFFFFF;
}

/* Footer Switch Links */
.bb-auth-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2.25rem;
    gap: 0.4rem;
}

.bb-auth-footer-prompt {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.725rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888888;
}

.bb-auth-switch-link {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1C1B18 !important;
    text-decoration: underline !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.bb-auth-switch-link:hover {
    color: #5C5248 !important;
}

/* WooCommerce Notices */
.woocommerce-account .woocommerce-notices-wrapper {
    max-width: 480px;
    margin: 0 auto 1.5rem auto;
}

@media (max-width: 500px) {
    .bb-account-auth-container {
        padding: 0 1rem;
        margin: 2.5rem auto 4rem auto;
    }

    .bb-form-row-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   LOGGED IN ACCOUNT DASHBOARD (Figma Match)
   ═══════════════════════════════════════════════════════════════════════ */

.bb-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem 2rem;
    box-sizing: border-box;
    font-family: 'Bricolage Grotesque', var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #1C1B18;
}

.bb-account-subpage-container {
    padding-bottom: 2rem;
}

/* 1. Breadcrumbs */
.bb-account-breadcrumbs {
    margin-bottom: 2rem;
}

.bb-account-breadcrumbs .woocommerce-breadcrumb,
.bb-account-breadcrumbs nav {
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888888;
    margin: 0;
    padding: 0;
}

.bb-account-breadcrumbs a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bb-account-breadcrumbs a:hover {
    color: #1C1B18;
}

.bb-account-breadcrumbs span {
    color: #1C1B18;
    font-weight: 700;
}

/* Hide default WooCommerce message banner in favor of Figma popup modal */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.bb-edit-profile-wrap .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
    display: none !important;
}

/* 2. Profile Header */
.bb-account-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #EAE7E1;
    margin-bottom: 2.5rem;
}

.bb-account-user-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.bb-account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #F8F3F4;
    border: 1px solid #EFE4E6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #825D63;
    flex-shrink: 0;
}

.bb-account-user-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bb-account-welcome-label {
    font-size: 0.725rem;
    color: #8C887F;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bb-account-user-name {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0;
    letter-spacing: -0.01em;
}

.bb-account-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.bb-account-nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1C1B18;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.bb-account-nav-link:hover {
    color: #825D63 !important;
}

.bb-account-nav-separator {
    color: #D5D5D5;
    font-size: 0.85rem;
    user-select: none;
}

/* 3. Main 2-Column Grid */
.bb-account-main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3.5rem;
    align-items: start;
}

.bb-account-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bb-account-section-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0;
    letter-spacing: -0.2px;
}

.bb-account-status-trigger {
    background: #FAF9F5;
    border: 1px solid #E6E2DA;
    border-radius: 999px;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1C1B18;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    transition: all 0.2s ease;
}

.bb-account-status-trigger:hover,
.bb-account-status-trigger.is-filtered {
    background: #825D63;
    border-color: #825D63;
    color: #FFFFFF;
}

.bb-account-status-trigger:hover .bb-plus-icon,
.bb-account-status-trigger.is-filtered .bb-plus-icon {
    color: #FFFFFF;
}

.bb-plus-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* 4. Order Card (Figma Match) */
.bb-account-order-card {
    border: 1px solid #EAE7E1;
    border-radius: 6px;
    background-color: #FFFFFF;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(28, 27, 24, 0.03);
}

.bb-account-order-card:hover {
    border-color: #D8D4CC;
    box-shadow: 0 8px 24px rgba(28, 27, 24, 0.06);
}

/* Card Top */
.bb-order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #F0ECE4;
    margin-bottom: 1.25rem;
}

.bb-order-id-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bb-order-id-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8C887F;
}

.bb-order-id-val-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.bb-order-id-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1C1B18;
    letter-spacing: 0.02em;
}

.bb-copy-order-btn {
    background: #FAF9F5;
    border: 1px solid #EAE7E1;
    border-radius: 3px;
    padding: 3px 5px;
    cursor: pointer;
    color: #8C887F;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bb-copy-order-btn:hover {
    color: #825D63;
    border-color: #825D63;
    background: #FFFFFF;
}

.bb-copy-order-btn.is-copied {
    color: #15803D !important;
    border-color: #15803D !important;
}

.bb-order-date-status-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.bb-order-date {
    font-size: 0.725rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8C887F;
}

.bb-order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: 1px solid transparent;
}

.bb-status-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.bb-order-status-badge.status-awaiting-payment {
    background-color: #FFFBEB;
    border-color: #FEF3C7;
    color: #B45309;
}
.bb-order-status-badge.status-awaiting-payment .bb-status-bullet {
    background-color: #F59E0B;
}

.bb-order-status-badge.status-processing {
    background-color: #FAF5FF;
    border-color: #F3E8FF;
    color: #6B21A8;
}
.bb-order-status-badge.status-processing .bb-status-bullet {
    background-color: #9333EA;
}

.bb-order-status-badge.status-on-its-way {
    background-color: #F0F9FF;
    border-color: #E0F2FE;
    color: #0369A1;
}
.bb-order-status-badge.status-on-its-way .bb-status-bullet {
    background-color: #0284C7;
}

.bb-order-status-badge.status-delivered {
    background-color: #F0FDF4;
    border-color: #DCFCE7;
    color: #15803D;
}
.bb-order-status-badge.status-delivered .bb-status-bullet {
    background-color: #22C55E;
}

.bb-order-status-badge.status-cancelled {
    background-color: #F5F5F3;
    border-color: #EBEAE7;
    color: #716F68;
}
.bb-order-status-badge.status-cancelled .bb-status-bullet {
    background-color: #A3A199;
}

/* Card Product Preview */
.bb-order-card-product {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.bb-order-product-thumb {
    width: 68px;
    height: 90px;
    flex-shrink: 0;
    background-color: #F5F3EF;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #EAE7E1;
    position: relative;
}

.bb-order-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bb-account-order-card:hover .bb-order-product-thumb img {
    transform: scale(1.04);
}

.bb-order-product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.bb-order-product-title {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: #1C1B18;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.bb-order-product-meta {
    font-size: 0.775rem;
    color: #6B6862;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.bb-order-product-qty {
    font-weight: 700;
    color: #1C1B18;
    background: #F5F3EF;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.725rem;
}

.bb-meta-dot {
    color: #B0ADA6;
}

.bb-order-product-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1C1B18;
    margin-top: 0.35rem;
}

.bb-order-more-items {
    font-size: 0.75rem;
    color: #8C887F;
    font-weight: 500;
    text-align: right;
    margin-top: 0.75rem;
}

/* Delivery Info Box */
.bb-order-delivery-box {
    background-color: #FAF9F6;
    border: 1px solid #EAE7E1;
    border-radius: 4px;
    padding: 0.9rem 1.25rem;
    margin-top: 1.25rem;
}

.bb-delivery-box-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8C887F;
    display: block;
    margin-bottom: 0.35rem;
}

.bb-delivery-box-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #1C1B18;
}

.bb-delivery-info-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.bb-delivery-info-left svg {
    color: #825D63;
}

.bb-delivery-info-right {
    font-weight: 600;
}

/* Card Bottom */
.bb-order-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid #F0ECE4;
    margin-top: 1.25rem;
}

.bb-order-total-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bb-order-total-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8C887F;
}

.bb-order-total-val {
    font-family: var(--im-font-body, sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1C1B18;
}

.bb-order-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.35rem;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1C1B18;
    background: transparent;
    border: 1.5px solid #1C1B18;
    border-radius: 2px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bb-order-detail-btn svg {
    transition: transform 0.2s ease;
}

.bb-order-detail-btn:hover {
    background: #825D63;
    border-color: #825D63;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(130, 93, 99, 0.25);
}

.bb-order-detail-btn:hover svg {
    transform: translateX(2px);
}

/* 5. Empty State Cards (Figma Attached 2) */
.bb-account-empty-card {
    background-color: #FAF9F6;
    border: 1px dashed #DDD8CE;
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.bb-empty-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bb-empty-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid #EAE7E1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #825D63;
    flex-shrink: 0;
}

.bb-empty-card-text {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: #6B6862;
}

.bb-empty-card-action {
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #825D63;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.bb-empty-card-action:hover {
    color: #5C5248;
}

/* 6. Voucher Cards (Figma Attached 1 & 2) */
.bb-account-voucher-card {
    border: 1px solid #EAE7E1;
    border-radius: 6px;
    padding: 1.15rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    background-color: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(28, 27, 24, 0.03);
}

.bb-account-voucher-card:hover {
    border-color: #D8D4CC;
    box-shadow: 0 6px 18px rgba(28, 27, 24, 0.06);
}

.bb-voucher-card-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.bb-voucher-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background-color: #F8F3F4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #825D63;
    flex-shrink: 0;
}

.bb-voucher-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bb-voucher-title {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0;
    line-height: 1.3;
}

.bb-voucher-code {
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #825D63;
    background: #FAF5F6;
    padding: 2px 7px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
    border: 1px dashed #E5D5D8;
}

.bb-voucher-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #FAF9F5;
    border: 1px solid #E6E2DA;
    border-radius: 3px;
    font-family: var(--im-font-body, sans-serif);
    font-size: 0.675rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1C1B18;
    cursor: pointer;
    padding: 0.45rem 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.bb-voucher-copy-btn:hover {
    background: #825D63;
    border-color: #825D63;
    color: #FFFFFF;
}

.bb-voucher-copy-btn.is-copied {
    background: #15803D !important;
    border-color: #15803D !important;
    color: #FFFFFF !important;
}

/* 7. Order Status Filter Drawer (Figma Attached 3) */
.bb-status-drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bb-status-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.bb-status-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 88vw;
    background-color: #FFFFFF;
    z-index: 99999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.bb-status-drawer.is-open {
    transform: translateX(0);
}

.bb-status-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #EAEAEA;
}

.bb-status-drawer-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0;
    letter-spacing: -0.2px;
}

.bb-status-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #1C1B18;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.bb-status-drawer-close:hover {
    color: #5C5248;
}

.bb-status-drawer-body {
    padding: 2rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.bb-status-filter-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bb-status-radio-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.bb-status-radio-label input.bb-status-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.bb-status-custom-radio {
    width: 18px;
    height: 18px;
    border: 1.5px solid #1C1B18;
    border-radius: 50%;
    background-color: transparent;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.bb-status-radio-label input.bb-status-radio:checked ~ .bb-status-custom-radio {
    border-color: #825D63;
}

.bb-status-radio-label input.bb-status-radio:checked ~ .bb-status-custom-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background-color: #825D63;
}

.bb-status-radio-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1C1B18;
}

/* 8. Toast Notification */
.bb-account-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #1C1B18;
    color: #FFFFFF;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.bb-account-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 9. Subpages (Edit Account, Edit Address, View Order) */
.bb-account-subpage-content {
    background-color: #FFFFFF;
}

.bb-account-subpage-content h2,
.bb-account-subpage-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1C1B18;
    margin-bottom: 1.5rem;
}

.bb-account-subpage-content .woocommerce-EditAccountForm,
.bb-account-subpage-content .woocommerce-address-fields {
    max-width: 540px;
}

.bb-account-subpage-content .woocommerce-form-row input.input-text {
    height: 44px;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    padding: 0 1rem;
    width: 100%;
    font-size: 0.875rem;
}

.bb-account-subpage-content .woocommerce-Button.button,
.bb-account-subpage-content button[type="submit"] {
    background-color: #5C5248 !important;
    color: #FFFFFF !important;
    border: none !important;
    height: 46px !important;
    padding: 0 2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    margin-top: 1rem !important;
    border-radius: 2px !important;
}

.bb-account-subpage-content .woocommerce-Button.button:hover,
.bb-account-subpage-content button[type="submit"]:hover {
    background-color: #1C1B18 !important;
}

/* 10. Order Detail (view-order.php) */
.bb-view-order-container {
    max-width: 860px;
    margin: 0 auto;
}

.bb-view-order-header-nav {
    margin-bottom: 1.5rem;
}

.bb-view-order-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1C1B18;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bb-view-order-back-btn:hover {
    color: #5C5248;
}

.bb-view-order-card {
    border: 1px solid #E5E5E5;
    background-color: #FFFFFF;
    padding: 2rem;
    box-sizing: border-box;
}

.bb-view-order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 1.5rem;
}

.bb-view-order-status-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 2px;
    margin-bottom: 1.75rem;
}

.bb-view-order-status-notice.is-processing {
    background-color: #F0F9FF;
    border: 1px solid #BAE6FD;
}

.bb-view-order-status-notice.is-awaiting {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
}

.bb-view-order-status-notice.is-on-way {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
}

.bb-view-order-status-notice.is-delivered {
    background-color: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.bb-status-notice-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.bb-status-notice-text strong {
    font-size: 0.875rem;
    color: #1C1B18;
}

.bb-status-notice-text span {
    font-size: 0.8rem;
    color: #555555;
    line-height: 1.4;
}

.bb-btn-pay-now-action {
    background-color: #C97A1E;
    color: #FFFFFF !important;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    white-space: nowrap;
    transition: background 0.2s;
}

.bb-btn-pay-now-action:hover {
    background-color: #B45309;
}

.bb-view-order-info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #F9F9F8;
    border-radius: 2px;
    margin-bottom: 2rem;
}

.bb-info-grid-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bb-info-grid-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888888;
}

.bb-info-grid-val {
    font-size: 0.825rem;
    color: #1C1B18;
    line-height: 1.45;
}

.bb-view-order-items-section {
    margin-bottom: 2rem;
}

.bb-view-order-items-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888888;
    margin-bottom: 1rem;
}

.bb-view-order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bb-view-order-item-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F0F0F0;
}

.bb-view-order-item-thumb {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
    background-color: #F4F3F0;
    overflow: hidden;
    border-radius: 2px;
}

.bb-view-order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-view-order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bb-view-order-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1C1B18;
    margin: 0;
}

.bb-view-order-item-meta {
    font-size: 0.75rem;
    color: #666666;
}

.bb-view-order-item-qty {
    font-weight: 600;
    color: #1C1B18;
}

.bb-view-order-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1C1B18;
}

.bb-view-order-totals-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid #EAEAEA;
}

.bb-view-order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.825rem;
    color: #555555;
}

.bb-view-order-total-row.is-grand-total {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #D0D0D0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1C1B18;
}

.bb-grand-total-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1C1B18;
}

/* Mobile Tab Bar (hidden on desktop) */
.bb-mobile-tab-bar {
    display: none;
}

@media (max-width: 860px) {
    .bb-account-container {
        padding: 1.25rem 1rem 4rem 1rem;
    }

    /* 1. Nav links: 3 columns centered */
    .bb-account-profile-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        border-bottom: none;
        padding-bottom: 1rem;
        margin-bottom: 0;
    }

    .bb-account-nav-links {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: center;
        gap: 0;
        text-align: center;
        border-bottom: 1px solid #EAEAEA;
        padding-bottom: 1.25rem;
    }

    .bb-account-nav-link {
        text-align: center;
        font-size: 0.7rem;
    }

    .bb-account-nav-separator {
        display: block;
        text-align: center;
    }

    /* 2. Mobile tab bar */
    .bb-mobile-tab-bar {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1.25rem;
        padding: 0;
    }

    .bb-mobile-tab {
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
        font-size: 0.95rem;
        font-weight: 500;
        color: #999999;
        padding: 0.5rem 0;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .bb-mobile-tab.is-active {
        color: #1C1B18;
        font-weight: 600;
        border-bottom-color: #1C1B18;
    }

    /* Grid becomes single column */
    .bb-account-main-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Hide section titles on mobile (tabs replace them) */
    .bb-account-orders-col > .bb-account-section-header > .bb-account-section-title,
    .bb-account-vouchers-col > .bb-account-section-header > .bb-account-section-title {
        display: none;
    }

    /* Hide STATUS+ trigger label on mobile, keep it functional */
    .bb-account-orders-col > .bb-account-section-header {
        justify-content: flex-end;
        margin-bottom: 1rem;
    }

    /* Hide voucher section header entirely on mobile */
    .bb-account-vouchers-col > .bb-account-section-header {
        display: none;
    }

    /* Tab content visibility */
    .bb-account-vouchers-col {
        display: none;
    }

    .bb-account-vouchers-col.is-tab-active {
        display: block;
    }

    .bb-account-orders-col {
        display: block;
    }

    .bb-account-orders-col.is-tab-hidden {
        display: none;
    }

    .bb-account-toast {
        left: 1.25rem;
        right: 1.25rem;
        bottom: 1.5rem;
        text-align: center;
    }

    /* Mobile order card adjustments */
    .bb-account-order-card {
        padding: 1.15rem;
        margin-bottom: 1rem;
    }

    .bb-order-card-top {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .bb-order-product-thumb {
        width: 56px;
        height: 72px;
    }

    .bb-order-card-product {
        gap: 1rem;
    }

    /* Mobile voucher card */
    .bb-account-voucher-card {
        padding: 1rem;
    }

    /* 4. Mobile address list */
    .bb-my-address-wrap {
        padding: 1rem 1rem 3rem 1rem;
    }

    .bb-my-address-header {
        margin-bottom: 1.25rem;
    }

    .bb-address-cards-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .bb-address-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 1rem 0;
    }

    .bb-address-card:first-child {
        border-top: 1px solid #EAEAEA;
    }

    .bb-address-card:last-child {
        border-bottom: 1px solid #EAEAEA;
    }

    /* View Order mobile */
    .bb-view-order-card {
        padding: 1.25rem;
    }

    .bb-view-order-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    /* Edit Profile & Address subpage mobile */
    .bb-edit-profile-wrap {
        padding: 1.25rem 1rem 3rem 1rem;
    }

    .bb-edit-profile-header,
    .bb-address-profile-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        border-bottom: none;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }

    .bb-edit-profile-header .bb-account-nav-links,
    .bb-address-profile-header .bb-account-nav-links {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: center;
        gap: 0;
        text-align: center;
        border-bottom: 1px solid #EAEAEA;
        padding-bottom: 1.25rem;
    }

    .bb-edit-profile-header .bb-account-nav-link,
    .bb-address-profile-header .bb-account-nav-link {
        text-align: center;
        font-size: 0.7rem;
    }

    .bb-edit-profile-header .bb-account-nav-separator,
    .bb-address-profile-header .bb-account-nav-separator {
        display: block;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   11. EDIT PROFILE & PASSWORD RESET (Figma Match Attached 1, 2, 3, 4)
   ═══════════════════════════════════════════════════════════════════════ */

.bb-edit-profile-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem 2rem;
    box-sizing: border-box;
    font-family: 'Bricolage Grotesque', var(--im-font-body, sans-serif);
}

.bb-edit-profile-card {
    max-width: 580px;
    margin: 0 auto;
    padding: 0 0 2rem 0;
}

.bb-edit-profile-card-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0 0 2rem 0;
    letter-spacing: -0.2px;
}

.bb-form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bb-form-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.bb-form-field-label {
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666666;
    margin-bottom: 0.25rem;
}

.bb-form-field-label .required {
    color: #D32F2F;
}

.bb-input-underline-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #1C1B18;
    transition: border-color 0.2s ease;
}

.bb-input-underline-wrap:focus-within {
    border-bottom-color: #5C5248;
}

.bb-input-underline-wrap .bb-input-underline {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0.65rem 0 !important;
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
    font-size: 0.9rem !important;
    color: #1C1B18 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.bb-drawer-select-clean {
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 1.5rem !important;
}

.bb-input-underline-wrap.with-icon-left .bb-input-underline {
    padding-left: 1.85rem !important;
}

.bb-input-underline-wrap.with-icon-right .bb-input-underline {
    padding-right: 2.25rem !important;
}

.bb-field-icon-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888888;
}

.bb-pwd-eye-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 4px;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.bb-pwd-eye-btn:hover {
    color: #1C1B18;
}

.bb-edit-profile-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1rem;
}

.bb-btn-change-pwd-trigger {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1C1B18;
    text-decoration: underline !important;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.bb-btn-change-pwd-trigger:hover {
    color: #5C5248;
}

.bb-btn-save-profile {
    height: 46px !important;
    padding: 0 2.25rem !important;
    background-color: #5C5248 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 2px !important;
    font-family: inherit !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.bb-btn-save-profile:hover {
    background-color: #1C1B18 !important;
}

/* Change Password Side Drawer (Figma Attached 2) */
.bb-pwd-drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bb-pwd-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.bb-pwd-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 390px;
    max-width: 90vw;
    background-color: #FFFFFF;
    z-index: 999999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.bb-pwd-drawer.is-open {
    transform: translateX(0);
}

.bb-pwd-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #EAEAEA;
}

.bb-pwd-drawer-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0;
    letter-spacing: -0.2px;
}

.bb-pwd-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #1C1B18;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.bb-pwd-drawer-close:hover {
    color: #5C5248;
}

.bb-pwd-drawer-body {
    padding: 2rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.bb-pwd-drawer-instruction {
    font-size: 0.85rem;
    color: #666666;
    margin: 0 0 2rem 0;
    line-height: 1.45;
}

.bb-pwd-drawer-error {
    color: #D32F2F;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.bb-btn-submit-change-pwd {
    width: 100%;
    height: 48px;
    background-color: #5C5248;
    color: #FFFFFF;
    border: none;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-btn-submit-change-pwd:hover {
    background-color: #1C1B18;
}

.bb-btn-submit-change-pwd:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Modal Popup (Figma Attached 3) */
.bb-pwd-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.25rem;
    box-sizing: border-box;
}

.bb-pwd-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.bb-pwd-modal-card {
    background-color: #FFFFFF;
    border-radius: 6px;
    max-width: 420px;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.bb-pwd-modal-backdrop.is-open .bb-pwd-modal-card {
    transform: scale(1);
}

.bb-pwd-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.bb-pwd-modal-title {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: #1C1B18;
    line-height: 1.45;
    margin: 0 0 1.75rem 0;
}

.bb-pwd-modal-ok-btn {
    width: 100%;
    height: 44px;
    background-color: #5C5248;
    color: #FFFFFF;
    border: none;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-pwd-modal-ok-btn:hover {
    background-color: #1C1B18;
}

/* 12. Enter Your New Password Form (Figma Attached 4) */
.bb-reset-pwd-wrap {
    max-width: 480px;
    margin: 4rem auto 6rem auto;
    padding: 0 1.5rem;
    text-align: center;
    font-family: 'Bricolage Grotesque', var(--im-font-body, sans-serif);
    box-sizing: border-box;
}

.bb-reset-pwd-lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #5C5248;
}

.bb-reset-pwd-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.65rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0 0 2.25rem 0;
    letter-spacing: -0.2px;
}

.bb-reset-pwd-form {
    text-align: left;
}

.bb-pwd-checklist {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bb-rule-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.775rem;
    color: #888888;
    transition: color 0.2s ease;
}

.bb-rule-badge {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #CCCCCC;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    color: #CCCCCC;
    transition: all 0.2s ease;
}

.bb-rule-item.is-valid {
    color: #16A34A;
}

.bb-rule-item.is-valid .bb-rule-badge {
    border-color: #16A34A;
    background-color: #16A34A;
    color: #FFFFFF;
}

.bb-reset-pwd-error {
    color: #D32F2F;
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

.bb-btn-confirm-pwd {
    width: 100% !important;
    height: 48px !important;
    background-color: #5C5248 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 2px !important;
    font-family: inherit !important;
    font-size: 0.825rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-top: 2rem !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bb-btn-confirm-pwd:hover {
    background-color: #1C1B18 !important;
}

@media (max-width: 600px) {
    .bb-form-grid-2col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bb-edit-profile-actions {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .bb-btn-change-pwd-trigger {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   13. MY ADDRESSES PAGE & DRAWER (Figma Match Attached 1, 2, 3, 4)
   ═══════════════════════════════════════════════════════════════════════ */

.bb-my-address-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem 2rem;
    box-sizing: border-box;
    font-family: 'Bricolage Grotesque', var(--im-font-body, sans-serif);
}

.bb-my-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 640px;
    margin: 0 auto 2rem auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EAEAEA;
}

.bb-my-address-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0;
    letter-spacing: -0.2px;
}

.bb-btn-add-address-top {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1C1B18;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.bb-btn-add-address-top:hover {
    color: #5C5248;
}

.bb-my-address-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.bb-my-address-list .bb-address-card,
.bb-address-card {
    border: 1px solid #EAEAEA;
    border-radius: 4px;
    padding: 1.5rem 1.75rem;
    background-color: #FFFFFF;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
}

.bb-address-card:hover {
    border-color: #D0D0D0;
}

.bb-my-address-list .bb-address-card-info,
.bb-address-card-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0.4rem;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
}

.bb-my-address-list .bb-address-card-type-row,
.bb-address-card-type-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1C1B18;
    width: 100%;
    text-align: left;
}

.bb-my-address-list .bb-address-card-recipient,
.bb-address-card-recipient {
    width: 100%;
    text-align: left;
}

.bb-address-card-dot {
    color: #888888;
    font-weight: 400;
}

.bb-address-card-default-badge {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888888;
}

.bb-my-address-list .bb-address-card-text,
.bb-address-card-text {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.825rem;
    color: #666666;
    line-height: 1.45;
    margin: 0;
    width: 100%;
    text-align: left;
    word-break: break-word;
}

.bb-my-address-list .bb-address-card-actions,
.bb-address-card-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.25rem;
    flex-shrink: 0 !important;
    margin-left: auto;
}

@media (max-width: 576px) {
    .bb-my-address-list .bb-address-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1.25rem 1rem !important;
    }
    .bb-my-address-list .bb-address-card-actions {
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

.bb-address-card-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.825rem;
    font-weight: 600;
    color: #1C1B18;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.bb-addr-btn-edit {
    text-decoration: underline !important;
    color: #1C1B18;
}

.bb-addr-btn-edit:hover {
    color: #5C5248;
}

.bb-addr-btn-delete {
    color: #888888;
}

.bb-addr-btn-delete:hover {
    color: #D32F2F;
}

/* Empty State (Figma Attached 2) */
.bb-address-empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    max-width: 540px;
    margin: 0 auto;
    box-sizing: border-box;
}

.bb-address-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bb-address-empty-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.2px;
}

.bb-address-empty-sub {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.45;
    margin: 0 0 2rem 0;
}

.bb-btn-add-address-empty {
    height: 46px;
    padding: 0 2.25rem;
    background-color: #5C5248;
    color: #FFFFFF;
    border: none;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-btn-add-address-empty:hover {
    background-color: #1C1B18;
}

/* 14. Add / Edit Address Drawer (Figma Attached 3) */
.bb-addr-drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bb-addr-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.bb-addr-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 92vw;
    background-color: #FFFFFF;
    z-index: 999999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.bb-addr-drawer.is-open {
    transform: translateX(0);
}

.bb-addr-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #EAEAEA;
}

.bb-addr-drawer-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #1C1B18;
    margin: 0;
    letter-spacing: -0.2px;
}

.bb-addr-drawer-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #1C1B18;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.bb-addr-drawer-close:hover {
    color: #5C5248;
}

.bb-addr-drawer-body {
    padding: 2rem 1.75rem;
    overflow-y: auto;
    flex: 1;
}

.bb-addr-type-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.bb-addr-pill-label {
    cursor: pointer;
    margin: 0;
}

.bb-addr-pill-label input[type="radio"] {
    display: none;
}

.bb-addr-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0;
    border: 1px solid #DDDDDD;
    border-radius: 2px;
    font-size: 0.775rem;
    font-weight: 500;
    color: #1C1B18;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    user-select: none;
}

.bb-addr-pill-label input[type="radio"]:checked + .bb-addr-pill-btn {
    border-color: #1C1B18;
    background-color: #FFFFFF;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #1C1B18;
}

.bb-input-underline-wrap.with-chevron-down .bb-chevron-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888888;
}

.bb-addr-drawer-error {
    color: #D32F2F;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.bb-addr-drawer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.bb-addr-default-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: #1C1B18;
    margin: 0;
    user-select: none;
}

.bb-btn-save-address-info {
    height: 44px;
    padding: 0 1.75rem;
    background-color: #5C5248;
    color: #FFFFFF;
    border: none;
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-btn-save-address-info:hover {
    background-color: #1C1B18;
}

.bb-btn-save-address-info:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 15. Delete Confirmation Modal (Figma Attached 4) */
.bb-addr-del-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1.25rem;
    box-sizing: border-box;
}

.bb-addr-del-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.bb-addr-del-modal-card {
    background-color: #FFFFFF;
    border-radius: 6px;
    max-width: 440px;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.bb-addr-del-modal-backdrop.is-open .bb-addr-del-modal-card {
    transform: scale(1);
}

.bb-addr-del-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #1C1B18;
}

.bb-addr-del-modal-title {
    font-family: 'Bricolage Grotesque', var(--im-font-heading, sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1C1B18;
    line-height: 1.35;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.2px;
}

.bb-addr-del-preview-box {
    border: 1px solid #EAEAEA;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    text-align: left;
    margin-bottom: 2rem;
    background-color: #FAFAFA;
}

.bb-addr-del-preview-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1C1B18;
    margin-bottom: 0.35rem;
}

.bb-addr-del-preview-text {
    font-family: var(--im-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.45;
    margin: 0;
}

.bb-addr-del-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bb-btn-del-cancel {
    height: 44px;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    color: #1C1B18;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bb-btn-del-cancel:hover {
    border-color: #1C1B18;
}

.bb-btn-del-confirm {
    height: 44px;
    background-color: #5C5248;
    border: none;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bb-btn-del-confirm:hover {
    background-color: #1C1B18;
}

.is-hidden {
    display: none !important;
}





