/**
 * Heritage Harvests - Account / Auth Page Styles
 * Premium unified login/register experience
 */

/* ===== Auth Wrapper ===== */
.hh-auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 40%, #FFF8E1 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.hh-auth-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(46, 125, 50, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(139, 195, 74, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== Auth Card ===== */
.hh-auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow:
        0 20px 60px rgba(46, 125, 50, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(46, 125, 50, 0.08);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* ===== Card Header ===== */
.hh-auth-header {
    background: linear-gradient(135deg, var(--hh-primary-dark, #1B5E20) 0%, var(--hh-primary, #2E7D32) 50%, var(--hh-secondary, #388E3C) 100%);
    padding: 40px 30px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hh-auth-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 Q35 15 30 25 Q25 15 30 5' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.hh-auth-logo {
    font-size: 42px;
    margin-bottom: 12px;
    display: inline-block;
    animation: hh-float 3s ease-in-out infinite;
}

@keyframes hh-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hh-auth-title {
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    line-height: 1.3;
    position: relative;
}

.hh-auth-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    position: relative;
    transition: all 0.3s ease;
}

/* ===== Notices ===== */
.hh-auth-notices {
    padding: 0 30px;
}

.hh-auth-notice {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
    animation: hh-notice-in 0.3s ease;
}

@keyframes hh-notice-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hh-auth-notice-error {
    background: #FFF0F0;
    color: #C62828;
    border: 1px solid rgba(198, 40, 40, 0.15);
}

.hh-auth-notice-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

/* ===== Steps ===== */
.hh-auth-step {
    padding: 30px;
    display: none;
    animation: hh-step-in 0.35s ease;
}

.hh-auth-step-active {
    display: block;
}

.hh-auth-step-exit {
    display: none;
}

@keyframes hh-step-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Email Badge (step 2a/2b) ===== */
.hh-auth-email-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 24px;
}

.hh-auth-email-text {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hh-primary, #2E7D32);
}

.hh-auth-change-email {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.hh-auth-change-email:hover {
    opacity: 1;
}

/* ===== Form Group ===== */
.hh-auth-form-group {
    margin-bottom: 20px;
}

.hh-auth-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hh-text, #2D3A2E);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hh-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hh-auth-input-icon {
    position: absolute;
    left: 16px;
    color: var(--hh-text-light, #5D6B5E);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.3s;
    z-index: 2;
}

.hh-auth-input {
    width: 100%;
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    color: var(--hh-text, #2D3A2E) !important;
    padding: 16px 16px 16px 48px !important;
    border: 2px solid rgba(46, 125, 50, 0.15) !important;
    border-radius: 14px !important;
    background: #fff !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.hh-auth-input:focus {
    border-color: var(--hh-primary, #2E7D32) !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08) !important;
}

.hh-auth-input:focus~.hh-auth-input-icon,
.hh-auth-input-wrap:focus-within .hh-auth-input-icon {
    color: var(--hh-primary, #2E7D32);
}

.hh-auth-input::placeholder {
    color: #B0BEB1 !important;
    font-weight: 400;
}

/* ===== Password Toggle ===== */
.hh-auth-toggle-pw {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hh-text-light, #5D6B5E);
    display: flex;
    align-items: center;
    padding: 4px;
    z-index: 2;
    transition: color 0.2s;
}

.hh-auth-toggle-pw:hover {
    color: var(--hh-primary, #2E7D32);
}

/* ===== Primary Button ===== */
.hh-auth-btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hh-auth-btn-primary {
    background: linear-gradient(135deg, var(--hh-primary, #2E7D32) 0%, var(--hh-primary-dark, #1B5E20) 100%);
    color: #fff;
    padding: 17px 30px;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(46, 125, 50, 0.3);
    letter-spacing: 0.3px;
}

.hh-auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(46, 125, 50, 0.4);
}

.hh-auth-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.hh-auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Shimmer effect */
.hh-auth-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.hh-auth-btn-primary:hover::after {
    left: 100%;
}

/* ===== Spinner ===== */
.hh-spinner {
    width: 22px;
    height: 22px;
    animation: hh-spin 1s linear infinite;
}

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

.hh-auth-btn-loader {
    display: inline-flex;
    align-items: center;
}

/* ===== Alt Actions ===== */
.hh-auth-alt-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(46, 125, 50, 0.08);
}

.hh-auth-link {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--hh-primary, #2E7D32);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0;
}

.hh-auth-link:hover {
    color: var(--hh-primary-dark, #1B5E20);
    text-decoration: underline;
}

.hh-auth-link-muted {
    color: var(--hh-text-light, #5D6B5E);
    font-weight: 500;
}

.hh-auth-link-muted:hover {
    color: var(--hh-primary, #2E7D32);
}

/* ===== OTP Inputs ===== */
.hh-auth-otp-info {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--hh-text-light, #5D6B5E);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

.hh-auth-otp-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hh-otp-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-family: 'Outfit', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--hh-primary, #2E7D32) !important;
    border: 2px solid rgba(46, 125, 50, 0.15) !important;
    border-radius: 14px !important;
    background: #fff !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    caret-color: var(--hh-primary, #2E7D32);
}

.hh-otp-digit:focus {
    border-color: var(--hh-primary, #2E7D32) !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08) !important;
    transform: translateY(-2px);
}

.hh-otp-digit:not(:placeholder-shown) {
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9) !important;
}

.hh-otp-separator {
    font-size: 20px;
    color: #B0BEB1;
    font-weight: 700;
    margin: 0 2px;
    user-select: none;
}

/* ===== Resend ===== */
.hh-auth-resend {
    text-align: center;
    margin-top: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--hh-text-light, #5D6B5E);
}

/* ===== Trust Badges ===== */
.hh-auth-trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px 30px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: var(--hh-text-light, #5D6B5E);
    flex-wrap: wrap;
}

.hh-auth-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ===== Hide Default WooCommerce Elements ===== */
.woocommerce-account .woocommerce-notices-wrapper:empty {
    display: none;
}

/* Hide default page title on my-account */
.woocommerce-account .page-header,
.woocommerce-account h1.entry-title,
.woocommerce-account .entry-header {
    display: none !important;
}

.woocommerce-account .entry-content {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
}

.woocommerce-account .site-content {
    padding: 0 !important;
}

/* ===== Auth Responsive (Logged Out) ===== */
@media (max-width: 520px) {
    .hh-auth-wrapper {
        padding: 30px 15px;
    }

    .hh-auth-card {
        border-radius: 22px;
    }

    .hh-auth-header {
        padding: 30px 20px 25px;
    }

    .hh-auth-title {
        font-size: 19px !important;
    }

    .hh-auth-step {
        padding: 24px 20px;
    }

    .hh-otp-digit {
        width: 44px;
        height: 52px;
        font-size: 20px !important;
        border-radius: 12px !important;
    }

    .hh-auth-otp-inputs {
        gap: 6px;
    }

    .hh-auth-trust {
        gap: 12px;
        padding: 14px 20px 20px;
    }
}

@media (max-width: 380px) {
    .hh-otp-digit {
        width: 38px;
        height: 46px;
        font-size: 18px !important;
        border-radius: 10px !important;
    }

    .hh-auth-btn-primary {
        padding: 15px 20px;
        font-size: 15px;
    }
}

/* ==========================================================================
   LOGGED-IN DASHBOARD STYLES
   ========================================================================== */

/* ===== Account Wrapper (Logged In) ===== */
.hh-account-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: 'Outfit', sans-serif;
}

/* ===== Profile Header ===== */
.hh-account-header {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
}

.hh-account-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #43A047 70%, #66BB6A 100%);
    z-index: 0;
}

.hh-account-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    background-size: 100% 100%;
}

.hh-account-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 24px;
}

.hh-account-avatar {
    flex-shrink: 0;
}

.hh-account-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hh-account-user-info {
    min-width: 0;
}

.hh-account-username {
    font-family: 'Outfit', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 4px !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-account-email {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-account-member-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #1B5E20;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

/* ===== Navigation Grid ===== */
.hh-account-nav {
    margin-bottom: 24px;
}

.hh-account-nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.hh-account-nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(46, 125, 50, 0.06);
    border-radius: 16px;
    text-decoration: none !important;
    color: var(--hh-text, #2D3A2E) !important;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hh-account-nav-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--card-accent, #2E7D32);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hh-account-nav-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(46, 125, 50, 0.12);
    color: var(--hh-text, #2D3A2E) !important;
    text-decoration: none !important;
}

.hh-account-nav-card:hover::before {
    opacity: 1;
}

.hh-account-nav-card.is-active {
    background: rgba(46, 125, 50, 0.04);
    border-color: rgba(46, 125, 50, 0.15);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08);
}

.hh-account-nav-card.is-active::before {
    opacity: 1;
}

.hh-account-nav-card.is-logout {
    background: rgba(245, 245, 245, 0.8);
    border-color: rgba(0, 0, 0, 0.04);
}

.hh-account-nav-card.is-logout:hover {
    background: rgba(198, 40, 40, 0.04);
    border-color: rgba(198, 40, 40, 0.1);
}

.hh-account-nav-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.06);
    border-radius: 12px;
}

.hh-account-nav-icon .bi {
    font-size: 20px;
    line-height: 1;
    color: var(--card-accent, #2E7D32);
}

.hh-account-nav-arrow {
    font-size: 14px;
}

.hh-account-nav-label {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--hh-text, #2D3A2E);
}

.hh-account-nav-arrow {
    color: var(--hh-text-light, #5D6B5E);
    opacity: 0.4;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hh-account-nav-card:hover .hh-account-nav-arrow {
    opacity: 0.8;
    transform: translateX(3px);
}

/* ===== Dashboard Content ===== */
.hh-account-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== Dashboard Greeting ===== */
.hh-dash-greeting {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.04), rgba(139, 195, 74, 0.06));
    border: 1px solid rgba(46, 125, 50, 0.08);
    border-radius: 18px;
    margin-bottom: 20px;
}

.hh-dash-greeting-icon {
    flex-shrink: 0;
}

.hh-dash-greeting-icon .bi {
    font-size: 32px;
    line-height: 1;
    color: var(--hh-primary, #2E7D32);
}

.hh-dash-greeting-text {
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--hh-text, #2D3A2E) !important;
    margin: 0 0 4px !important;
    line-height: 1.3;
}

.hh-dash-greeting-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--hh-text-light, #5D6B5E);
    margin: 0;
}

/* ===== Quick Stats ===== */
.hh-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.hh-dash-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 10px;
    background: #fff;
    border: 1px solid rgba(46, 125, 50, 0.06);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.hh-dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.hh-dash-stat-icon .bi {
    font-size: 24px;
    line-height: 1;
    color: var(--hh-primary, #2E7D32);
}

.hh-dash-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--hh-primary, #2E7D32);
    line-height: 1;
}

.hh-dash-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--hh-text-light, #5D6B5E);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

/* ===== Section Titles ===== */
.hh-dash-section-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--hh-text, #2D3A2E) !important;
    margin: 0 0 14px !important;
}

.hh-dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hh-dash-section-header .hh-dash-section-title {
    margin-bottom: 0 !important;
}

.hh-dash-view-all {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hh-primary, #2E7D32);
    text-decoration: none;
    transition: all 0.2s;
}

.hh-dash-view-all:hover {
    color: var(--hh-primary-dark, #1B5E20);
    text-decoration: none;
}

/* ===== Quick Actions ===== */
.hh-dash-actions {
    margin-bottom: 24px;
}

.hh-dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hh-dash-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px;
    background: #fff;
    border: 1px solid rgba(46, 125, 50, 0.06);
    border-radius: 18px;
    text-decoration: none !important;
    color: var(--hh-text, #2D3A2E) !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hh-dash-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.1);
    border-color: rgba(46, 125, 50, 0.15);
    text-decoration: none !important;
    color: var(--hh-text, #2D3A2E) !important;
}

.hh-dash-action-icon .bi {
    font-size: 28px;
    line-height: 1;
    color: var(--hh-primary, #2E7D32);
}

.hh-dash-action-text {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* ===== Recent Orders ===== */
.hh-dash-recent {
    margin-bottom: 10px;
}

.hh-dash-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hh-dash-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid rgba(46, 125, 50, 0.06);
    border-radius: 14px;
    text-decoration: none !important;
    color: var(--hh-text, #2D3A2E) !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hh-dash-order-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
    color: var(--hh-text, #2D3A2E) !important;
}

.hh-dash-order-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hh-dash-order-id {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--hh-text, #2D3A2E);
}

.hh-dash-order-date {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: var(--hh-text-light, #5D6B5E);
}

.hh-dash-order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.hh-dash-order-total {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--hh-primary, #2E7D32);
}

.hh-dash-order-status {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--status-color, #757575);
    background: color-mix(in srgb, var(--status-color, #757575) 8%, transparent);
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== Empty Orders ===== */
.hh-dash-empty-orders {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid rgba(46, 125, 50, 0.06);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.hh-dash-empty-icon .bi {
    font-size: 48px;
    line-height: 1;
    color: var(--hh-text-light, #5D6B5E);
    display: block;
    margin-bottom: 12px;
}

.hh-dash-empty-orders p {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--hh-text-light, #5D6B5E);
    margin: 0 0 20px;
    line-height: 1.5;
}

.hh-dash-shop-btn {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(135deg, var(--hh-primary, #2E7D32), var(--hh-primary-dark, #1B5E20)) !important;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
}

.hh-dash-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.35);
    color: #fff !important;
    text-decoration: none !important;
}

/* ===== WooCommerce Content Pages Styling ===== */
/* Style the standard WC pages (orders table, addresses, account form) */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
    display: none !important;
    /* Hidden — we use our custom nav */
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}

/* Orders table */
.woocommerce-MyAccount-content .woocommerce-orders-table {
    font-family: 'Outfit', sans-serif;
    border: none !important;
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
}

.woocommerce-MyAccount-content .woocommerce-orders-table thead {
    display: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tr {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(46, 125, 50, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 18px;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table td {
    border: none !important;
    padding: 0 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table td::before {
    font-weight: 700;
    color: var(--hh-text, #2D3A2E);
    margin-right: 6px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
    color: var(--hh-primary, #2E7D32) !important;
    text-decoration: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hh-primary, #2E7D32) !important;
    background: rgba(46, 125, 50, 0.06);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: rgba(46, 125, 50, 0.12);
    color: var(--hh-primary-dark, #1B5E20) !important;
}

/* Address cards - target actual WooCommerce col2-set structure */
.woocommerce-MyAccount-content .col2-set.addresses,
.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    float: none !important;
    width: 100% !important;
}

@media (min-width: 600px) {

    .woocommerce-MyAccount-content .col2-set.addresses,
    .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.woocommerce-MyAccount-content .col2-set .u-column1,
.woocommerce-MyAccount-content .col2-set .u-column2,
.woocommerce-MyAccount-content .woocommerce-Address {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(46, 125, 50, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-MyAccount-content .woocommerce-Address header,
.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.06);
}

.woocommerce-MyAccount-content .woocommerce-Address header h2,
.woocommerce-MyAccount-content .woocommerce-Address header h3,
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--hh-text, #2D3A2E) !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-content .woocommerce-Address header a,
.woocommerce-MyAccount-content .woocommerce-Address-title a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hh-primary, #2E7D32) !important;
    text-decoration: none;
    white-space: nowrap;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--hh-text-light, #5D6B5E);
    line-height: 1.7;
    font-style: normal;
}

/* Description text above addresses */
.woocommerce-MyAccount-content>p {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--hh-text-light, #5D6B5E);
    margin-bottom: 20px;
}

/* Account form */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .edit-account {
    font-family: 'Outfit', sans-serif;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
    border: 1px solid rgba(46, 125, 50, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin: 0 0 20px;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--hh-text, #2D3A2E);
    padding: 0 10px;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm label {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--hh-text, #2D3A2E);
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="text"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="email"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="password"],
.woocommerce-MyAccount-content .edit-account input[type="text"],
.woocommerce-MyAccount-content .edit-account input[type="email"],
.woocommerce-MyAccount-content .edit-account input[type="password"],
.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form input[type="tel"],
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    padding: 14px 16px !important;
    border: 2px solid rgba(46, 125, 50, 0.12) !important;
    border-radius: 12px !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-MyAccount-content form input:focus,
.woocommerce-MyAccount-content form select:focus,
.woocommerce-MyAccount-content form textarea:focus {
    border-color: var(--hh-primary, #2E7D32) !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08) !important;
}

/* WooCommerce buttons */
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"],
.woocommerce-MyAccount-content .button {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--hh-primary, #2E7D32), var(--hh-primary-dark, #1B5E20)) !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3) !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none !important;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-MyAccount-content .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.35) !important;
}

/* WooCommerce notices */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    font-family: 'Outfit', sans-serif;
    border-radius: 14px !important;
    border-left: 4px solid var(--hh-primary, #2E7D32) !important;
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9) !important;
    border-top: none !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    font-size: 14px;
    color: var(--hh-text, #2D3A2E);
}

.woocommerce-MyAccount-content .woocommerce-error,
.woocommerce-account .woocommerce-error {
    font-family: 'Outfit', sans-serif;
    border-radius: 14px !important;
    border-left: 4px solid #C62828 !important;
    background: #FFF0F0 !important;
    border-top: none !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    font-size: 14px;
    color: #C62828;
}

/* ===== Responsive - Logged In ===== */
@media (min-width: 600px) {
    .hh-account-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hh-dash-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 800px) {
    .hh-account-wrapper {
        padding: 32px 24px 60px;
    }

    .hh-account-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hh-account-header-content {
        padding: 36px 32px;
    }

    .hh-account-avatar img {
        width: 90px;
        height: 90px;
    }

    .hh-account-username {
        font-size: 24px !important;
    }
}

@media (max-width: 380px) {
    .hh-account-header-content {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }

    .hh-account-avatar img {
        width: 64px;
        height: 64px;
    }

    .hh-account-username {
        font-size: 18px !important;
    }

    .hh-dash-stat {
        padding: 14px 8px;
    }

    .hh-dash-stat-value {
        font-size: 20px;
    }

    .hh-dash-greeting-text {
        font-size: 16px !important;
    }
}