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

.sbd-account-box {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 18px 20px;
    margin-bottom: 24px;
    background: #f8fafc;
    border-top: 4px solid var(--sbd-green);
}

.sbd-account-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.sbd-account-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.sbd-account-col {
    flex: 1 1 260px;
}

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

.sbd-account-meta li {
    margin-bottom: 6px;
}

.sbd-account-label {
    font-weight: 600;
}

.sbd-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--sbd-green);
    color: #ffffff;
    margin-left: 6px;
}

.sbd-tag.light {
    background: var(--sbd-orange);
}

/* Мини адаптация за мобилно */
@media (max-width: 768px) {
    .sbd-account-box {
        padding: 14px 15px;
    }
}

/* =====================================================
 * СКРИТИ ЦЕНИ – роля ограничение
 * ===================================================*/
.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: 28px 0;
    padding: 22px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(248,250,252,0.9) 0%, rgba(255,255,255,1) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.sbd-info-date-item {
    display: flex;
    flex: 1;
    min-width: 220px;
    padding: 14px 16px 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

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

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

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

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

.sbd-exp-badge {
    display: inline-block;
    padding: 4px 10px;
    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: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    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: #64748b;
    background: #f8fafc;
    width: 34%;
}

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

@media (max-width: 600px) {
    .sbd-product-info {
        padding: 18px 16px;
        border-radius: 16px;
    }
    .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;
    }
}
