﻿.seller-card {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 16px;
    background: var(--surface);
    margin: 18px 0;
}

.seller-card-main,
.seller-card__main {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.seller-avatar,
.seller-card__logo,
.seller-card .logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-soft);
    background: #fff;
}

.seller-main-info,
.seller-card__meta {
    width: fit-content;
    max-width: 220px;
    min-width: 150px;
    justify-self: start;
}

.seller-name,
.seller-card__name {
    color: #6f4e37;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.seller-actions,
.seller-card__btns {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.seller-actions .btn,
.seller-card__btns .btn {
    border-radius: 999px;
    padding-inline: 14px;
    white-space: nowrap;
}

.seller-metrics,
.seller-card__stats {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 1fr));
    gap: 12px;
    align-items: center;
}

.seller-metric {
    min-width: 0;
}

.seller-metric-label {
    color: #8a7b6a;
    font-size: .82rem;
    margin-bottom: 4px;
    white-space: nowrap;
}

.seller-metric-value {
    color: #6f4e37;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.seller-metric-value small {
    color: #9a8a80;
    font-size: .74rem;
    font-weight: 500;
    margin-left: 2px;
}

.seller-credit-score {
    color: #2563eb;
    font-weight: 800;
    line-height: 1.25;
}

.seller-metric-warning {
    color: #dc3545;
    font-weight: 700;
}

.seller-credit-summary {
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px solid rgba(120, 90, 60, .16);
    min-width: 0;
}

.seller-credit-summary__head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.seller-credit-summary__score {
    font-size: 1.35rem;
    line-height: 1;
}

.seller-credit-summary__level {
    color: #4b2f24;
    font-weight: 750;
}

.seller-credit-summary__note {
    color: #8a7b6a;
    font-size: .8rem;
}

.seller-credit-grid,
.seller-credit-summary__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(90px, 1fr));
    gap: 10px;
    min-width: 0;
}

.seller-credit-item,
.seller-credit-summary__grid > div {
    background: rgba(255, 250, 244, .72);
    border: 1px solid rgba(111, 78, 55, .08);
    border-radius: 10px;
    padding: 9px 10px;
    min-width: 0;
}

.seller-credit-summary__grid span,
.seller-credit-item span {
    display: block;
    color: #8a7b6a;
    font-size: .76rem;
    line-height: 1.2;
}

.seller-credit-summary__grid strong,
.seller-credit-item strong {
    display: block;
    font-size: .88rem;
    margin-top: 3px;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .seller-card-main,
    .seller-card__main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .seller-metrics,
    .seller-card__stats {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        width: 100%;
    }

    .seller-credit-grid,
    .seller-credit-summary__grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .seller-card {
        padding: 14px;
    }

    .seller-card-main,
    .seller-card__main {
        grid-template-columns: 1fr;
    }

    .seller-main-info,
    .seller-card__meta {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .seller-avatar,
    .seller-card__logo,
    .seller-card .logo {
        margin-bottom: 2px;
    }

    .seller-actions,
    .seller-card__btns {
        width: 100%;
    }

    .seller-actions .btn,
    .seller-card__btns .btn {
        flex: 1 1 auto;
    }

    .seller-metrics,
    .seller-card__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-credit-grid,
    .seller-credit-summary__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
