:root {
    --sbd-green: #6fb82e;
    --sbd-orange: #ec511d;
}

.sbd-account-shell {
    margin: 0 0 32px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
    color: #8a97a8;
    font-size: 16px;
    line-height: 1;
    min-width: 16px;
    text-align: center;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "⌂";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before {
    content: "◧";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "◎";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "⌖";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before {
    content: "↓";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--wishlist a::before {
    content: "♡";
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "↗";
}

.sbd-account-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid #d7e2ee;
    padding: 34px;
    background:
        radial-gradient(circle at top left, rgba(111,184,46,0.16), transparent 26%),
        radial-gradient(circle at top right, rgba(236,81,29,0.14), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.sbd-account-topbar {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.sbd-account-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sbd-account-avatar {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #21324c);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.sbd-account-identity-copy h1 {
    margin: 0 0 8px;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.sbd-account-identity-copy p {
    margin: 0;
    font-size: 15px;
    color: #5b6878;
}

.sbd-account-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #5ca026;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.sbd-account-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.sbd-account-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.88);
    border: 1px solid #d7e2ee;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f172a;
}

.sbd-account-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.sbd-account-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15,23,42,0.14);
    transition: transform .18s ease, box-shadow .18s ease;
}

.sbd-account-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15,23,42,0.18);
}

.sbd-account-action.alt {
    background: rgba(255,255,255,0.92);
    color: #0f172a !important;
    border: 1px solid #d7e2ee;
    box-shadow: none;
}

.sbd-account-highlight {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.sbd-account-highlight-card {
    position: relative;
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #dfe7f1;
}

.sbd-account-highlight-card.is-accent {
    background: linear-gradient(135deg, #0f172a 0%, #1f3b24 100%);
    border-color: transparent;
    color: #fff;
}

.sbd-account-highlight-label {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7b8797;
}

.sbd-account-highlight-card.is-accent .sbd-account-highlight-label {
    color: rgba(255,255,255,0.7);
}

.sbd-account-highlight-card strong {
    display: block;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.sbd-account-highlight-card.is-accent strong {
    color: #fff;
}

.sbd-account-highlight-card p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.sbd-account-highlight-card.is-accent p {
    color: rgba(255,255,255,0.76);
}

.sbd-account-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.sbd-account-section {
    display: none;
}

.sbd-account-section.is-active {
    display: block;
}

.sbd-account-panel {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #dfe7f1;
}

.sbd-account-panel--wide {
    grid-column: 1 / -1;
}

.sbd-account-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sbd-account-panel-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7b8797;
}

.sbd-account-panel h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.sbd-account-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.sbd-account-detail-card,
.sbd-account-address-block {
    padding: 18px;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid #e6edf5;
}

.sbd-account-detail-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7b8797;
}

.sbd-account-detail-card strong,
.sbd-account-address-block strong {
    display: block;
    font-size: 16px;
    line-height: 1.55;
    color: #0f172a;
}

.sbd-account-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sbd-account-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #ebf0f6;
    color: #526172;
}

.sbd-account-list li:last-child {
    border-bottom: none;
}

.sbd-account-list li span {
    font-weight: 600;
}

.sbd-account-list li strong {
    color: #0f172a;
    text-align: right;
}

.sbd-account-panel-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7fee7, #fff7ed);
    border: 1px solid #e4efcb;
    color: #526172;
    font-size: 13px;
    line-height: 1.65;
}

.sbd-account-address-block + .sbd-account-address-block {
    margin-top: 12px;
}

/* =====================================================
 * СКРИТИ ЦЕНИ – роля ограничение
 * ===================================================*/
.sbd-price-hidden,
.sbd-role-restricted {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

/* =====================================================
 * КАШОН – Frontend product page
 * (основните стилове са inline в sbd-case-selling.php
 *  за да се зареждат само на product pages,
 *  тук добавяме само глобалните cart стилове)
 * ===================================================*/
.sbd-case-cart-note {
    color: #374151;
    font-size: 12px;
    display: block;
    margin-top: 4px;
    font-weight: normal;
}

/* =====================================================
 * ПРОДУКТОВИ МЕТА – Frontend
 * ===================================================*/
.sbd-product-info {
    margin: 24px 0 18px;
    padding: 18px 0 0;
    border-top: 1px solid #e8edf4;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sbd-info-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sbd-info-date-item {
    display: flex;
    flex: 1;
    min-width: 180px;
    padding: 14px 16px;
    background: #fbfcfe;
    border: 1px solid #e8edf4;
    border-radius: 16px;
}

.sbd-info-date-item:hover {
    border-color: #d7e1eb;
}

.sbd-info-date-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sbd-info-date-label {
    font-size: 11px;
    font-weight: 600;
    color: #8a99ad;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.sbd-info-date-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sbd-exp-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.sbd-exp-badge--ok {
    background: #ecfdf3;
    color: #166534;
}

.sbd-exp-badge--warn {
    background: #fff7ed;
    color: #9a3412;
}

.sbd-exp-badge--expired {
    background: #fef2f2;
    color: #991b1b;
}

.sbd-info-attrs {
    background: #fbfcfe;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    overflow: hidden;
}

.sbd-info-attrs-title {
    padding: 14px 16px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
}

.sbd-attrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 8px;
}

.sbd-attrs-table th,
.sbd-attrs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}

.sbd-attrs-table tr:last-child th,
.sbd-attrs-table tr:last-child td {
    border-bottom: none;
}

.sbd-attrs-table th {
    font-weight: 600;
    font-size: 12px;
    color: #718096;
    background: #f7f9fc;
    width: 34%;
}

.sbd-attrs-table td {
    color: #1e293b;
    font-weight: 600;
    background: #fbfcfe;
}

@media (max-width: 960px) {
    .sbd-account-box {
        padding: 24px 18px;
        border-radius: 24px;
    }
    .sbd-account-topbar,
    .sbd-account-identity {
        flex-direction: column;
        align-items: flex-start;
    }
    .sbd-account-tools {
        align-items: flex-start;
    }
    .sbd-account-actions {
        justify-content: flex-start;
    }
    .sbd-account-highlight,
    .sbd-account-grid,
    .sbd-account-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sbd-account-identity-copy h1 {
        font-size: 30px;
    }
    .sbd-account-highlight-card strong {
        font-size: 28px;
    }
    .sbd-account-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .sbd-product-info {
        margin: 20px 0 14px;
        padding-top: 14px;
    }
    .sbd-info-date-item {
        min-width: 100%;
    }
    .sbd-attrs-table th,
    .sbd-attrs-table td {
        display: block;
        width: 100%;
    }
    .sbd-attrs-table th {
        border-bottom: none;
        padding-bottom: 4px;
        background: #fff;
    }
    .sbd-attrs-table td {
        padding-top: 0;
        padding-bottom: 14px;
    }
}
