/* Ukamart Box: My Account dashboard layout (reference UI) */
.ukamart-account-shell {
    --ukamart-primary: var(--wp--preset--color--primary, var(--primary, #135bec));
    --ukamart-bg-light: #f6f6f8;
    --ukamart-bg-dark: #101622;
    --ukamart-text: #0f172a;
    --ukamart-muted: #64748b;
    --ukamart-border: #e2e8f0;

    display: flex;
    min-height: 100vh;
    background: var(--ukamart-bg-light);
    color: var(--ukamart-text);
}

.ukamart-account-sidebar {
    width: 288px;
    background: #fff;
    border-right: 1px solid var(--ukamart-border);
    display: flex;
    flex-direction: column;
}

.ukamart-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 28px 18px;
}

.ukamart-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--ukamart-primary);
    color: #fff;
    display: grid;
    place-items: center;
}

.ukamart-brand-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.ukamart-account-nav {
    flex: 1;
    padding: 0 16px 16px;
    overflow-y: auto;
}

.ukamart-nav-section {
    margin-top: 12px;
}

.ukamart-nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 16px 12px 10px;
}

.ukamart-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    color: #475569;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.ukamart-nav-item .material-symbols-outlined {
    font-size: 22px;
}

.ukamart-nav-item:hover {
    background: #f8fafc;
    color: var(--ukamart-text);
}

.ukamart-nav-item.is-active {
    background: rgba(19, 91, 236, 0.12);
    color: var(--ukamart-primary);
}

.ukamart-nav-item.is-active .material-symbols-outlined {
    color: var(--ukamart-primary);
}

.ukamart-nav-logout {
    padding: 16px;
    border-top: 1px solid var(--ukamart-border);
}

.ukamart-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #ef4444;
    font-weight: 600;
}

.ukamart-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.ukamart-account-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ukamart-account-topbar {
    height: 80px;
    background: #fff;
    border-bottom: 1px solid var(--ukamart-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    gap: 16px;
}

.ukamart-search {
    position: relative;
    width: min(480px, 100%);
}

.ukamart-search .material-symbols-outlined {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
}

.ukamart-search input {
    width: 100%;
    padding: 10px 44px 10px 14px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    font-size: 14px;
}

.ukamart-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ukamart-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #64748b;
    display: grid;
    place-items: center;
}

.ukamart-icon-btn:hover {
    background: #f1f5f9;
}

.ukamart-divider {
    width: 1px;
    height: 32px;
    background: var(--ukamart-border);
}

.ukamart-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ukamart-user-meta {
    text-align: right;
}

.ukamart-user-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.ukamart-user-role {
    margin: 0;
    font-size: 12px;
    color: var(--ukamart-muted);
}

.ukamart-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid #fff;
    background: #e2e8f0;
}

.ukamart-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ukamart-account-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--ukamart-bg-light);
}

.ukamart-content-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ukamart-welcome {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ukamart-welcome h2 {
    font-size: 28px;
    margin: 0 0 6px;
    font-weight: 800;
}

.ukamart-welcome p {
    margin: 0;
    color: var(--ukamart-muted);
}

.ukamart-welcome-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ukamart-btn-outline,
.ukamart-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.ukamart-btn-outline {
    border: 1px solid var(--ukamart-border);
    color: var(--ukamart-text);
    background: #fff;
}

.ukamart-btn-outline:hover {
    background: #f8fafc;
}

.ukamart-btn-primary {
    background: var(--ukamart-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(19, 91, 236, 0.2);
}

.ukamart-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ukamart-stat-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ukamart-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.ukamart-stat-icon--wallet {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.ukamart-stat-icon--orders {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.ukamart-stat-icon--spent {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

.ukamart-stat-label {
    margin: 0;
    font-size: 13px;
    color: var(--ukamart-muted);
}

.ukamart-stat-value {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 700;
}

.ukamart-content-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 24px;
}

.ukamart-content-card .woocommerce-message,
.ukamart-content-card .woocommerce-error,
.ukamart-content-card .woocommerce-info {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .ukamart-account-shell {
        flex-direction: column;
    }

    .ukamart-account-sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--ukamart-border);
    }

    .ukamart-account-topbar {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        padding: 16px 20px;
    }

    .ukamart-topbar-actions {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .ukamart-account-content {
        padding: 20px;
    }

    .ukamart-search {
        width: 100%;
    }

    .ukamart-user-meta {
        display: none;
    }
}

.ukamart-notifications {
    position: relative;
}

.ukamart-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

.ukamart-nav-empty {
    margin: 12px 12px 0;
    font-size: 12px;
    color: #94a3b8;
}



.ukamart-account-shell .button,
.ukamart-account-shell .ukvendor-dashboard-links .button {
    background: var(--ukamart-primary);
    border-color: var(--ukamart-primary);
    color: #fff;
}

.ukamart-account-shell .button:hover,
.ukamart-account-shell .ukvendor-dashboard-links .button:hover {
    filter: brightness(0.95);
}

.ukamart-account-shell .button:focus {
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.2);
}

.ukamart-stat-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.ukamart-account-shell .ukamart-btn-primary,
.ukamart-account-shell .button,
.ukamart-account-shell .ukvendor-dashboard-links .button {
    background: var(--ukamart-primary);
    border-color: var(--ukamart-primary);
    color: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 600;
}

.ukamart-account-shell .ukamart-btn-primary:hover,
.ukamart-account-shell .button:hover,
.ukamart-account-shell .ukvendor-dashboard-links .button:hover {
    filter: brightness(0.95);
}

.ukamart-account-shell .ukamart-btn-outline {
    border-radius: 12px;
    padding: 10px 16px;
}

.ukamart-brand-icon {
    overflow: hidden;
}

.ukamart-site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 900px) {
    .ukamart-account-shell {
        flex-direction: column;
    }

    .ukamart-account-sidebar {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--ukamart-border);
    }

    .ukamart-account-nav {
        padding-bottom: 12px;
    }

    .ukamart-nav-section {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 8px;
    }

    .ukamart-nav-label {
        flex-basis: 100%;
        margin: 8px 0 0;
    }

    .ukamart-nav-item {
        flex: 1 1 auto;
        min-width: 140px;
        justify-content: flex-start;
    }

    .ukamart-account-topbar {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        padding: 16px 20px;
    }

    .ukamart-topbar-actions {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .ukamart-welcome-actions {
        width: 100%;
    }

    .ukamart-content-inner {
        gap: 20px;
    }

    .ukamart-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .ukamart-account-content {
        padding: 18px;
    }

    .ukamart-account-nav {
        overflow-x: auto;
        white-space: nowrap;
    }

    .ukamart-nav-section {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .ukamart-nav-item {
        min-width: 130px;
    }
}

.ukamart-mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ukamart-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ukamart-text);
    align-items: center;
    justify-content: center;
}

.ukamart-mobile-menu-toggle .material-symbols-outlined {
    font-size: 22px;
}

@media (max-width: 900px) {
    .ukamart-mobile-menu-toggle {
        display: inline-flex;
    }

    .ukamart-account-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        max-width: 300px;
        width: 88vw;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        z-index: 1000;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
    }

    .ukamart-account-sidebar.is-open {
        transform: translateX(0);
    }

    .ukamart-account-main {
        padding-top: 0;
    }

    .ukamart-account-topbar {
        gap: 12px;
    }
}

@media (max-width: 900px) {
    .ukamart-account-sidebar.is-open .ukamart-nav-section {
        display: block;
    }

    .ukamart-account-sidebar.is-open .ukamart-nav-item {
        width: 100%;
        min-width: 0;
    }

    .ukamart-account-sidebar.is-open .ukamart-nav-label {
        margin: 16px 12px 10px;
    }
}

.ukvendor-dashboard-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.ukvendor-dashboard-links .button {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Match Seller Center tab padding to Affiliate Center */
.ukvendor-dashboard-links .button {
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
}

/* Match Seller Center tab styling to Affiliate Center */
.ukvendor-dashboard-links .button {
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    text-transform: none;
}

/* Force Seller Center tabs to match Affiliate Center sizing */
.ukamart-account-shell .ukvendor-dashboard-links .button {
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.ukamart-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 900;
}

.ukamart-menu-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}
