/* Таблица размеров носков в карточке товара: ссылка у выбора размера и попап. */
/* Кнопка под размерами: плашка в фирменном зелёном, как бейдж «В наличии». */
.size-chart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 9px 14px 9px 12px;
    border: 1px solid #cfe6dc;
    background: #f1f8f5;
    color: #2a2a2b;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}
.size-chart-link__icon {
    width: 20px;
    height: 20px;
    color: #3b9877;
}
.size-chart-link__arrow {
    width: 14px;
    height: 14px;
    color: #3b9877;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s;
}
.size-chart-link:hover {
    border-color: #3b9877;
    background: #e6f3ed;
}
.size-chart-link:hover .size-chart-link__arrow {
    transform: translateX(3px);
}
.size-chart-link__icon,
.size-chart__measure-icon {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.size-chart-popup {
    max-width: 640px;
}
.size-chart {
    align-items: stretch;
    text-align: left;
}
.size-chart__lead {
    margin-bottom: 0;
}
.size-chart__match {
    margin-bottom: 0;
    color: #3b9877;
}
.size-chart__match b {
    font-weight: 500;
}
/* Вкладки как у описания в карточке (.card-desc .tabs__*), там стили привязаны к блоку. */
.size-chart__tabs .tabs__nav {
    display: flex;
    column-gap: 12px;
    border-bottom: 1px solid #eee;
}
.size-chart__tabs .tabs__nav-item {
    position: relative;
    padding: 0 12px 12px;
    color: #8e8e8e;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .15px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s;
}
.size-chart__tabs .tabs__nav-item:hover,
.size-chart__tabs .tabs__nav-item.active {
    color: #2a2a2b;
}
.size-chart__tabs .tabs__nav-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: #2a2a2b;
}
.size-chart__tabs .tabs__content-item {
    display: none;
    padding-top: 20px;
}
.size-chart__tabs .tabs__content-item.active {
    display: block;
}

.size-chart__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    color: #2a2a2b;
}
.size-chart__table th {
    padding: 0 12px 10px;
    color: #8e8e8e;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.size-chart__table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    transition: background-color .2s;
}
.size-chart__table td:first-child {
    font-weight: 500;
}
.size-chart__table th:first-child,
.size-chart__table td:first-child {
    padding-left: 14px;
}
.size-chart__table tbody tr:hover td {
    background: #f7f7f7;
}
.size-chart__table tr.is-match td {
    background: #f1f8f5;
}
.size-chart__table tr.is-match td:first-child {
    box-shadow: inset 2px 0 0 #3b9877;
}

.size-chart__measure {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #eee;
}
.size-chart__measure-icon {
    width: 20px;
    height: 20px;
    color: #3b9877;
}
.size-chart__measure p {
    margin: 0;
    line-height: 1.45;
}
.size-chart__measure p + p {
    margin-top: 6px;
}
.size-chart__measure-title {
    font-size: 15px;
}

@media (max-width: 575.98px) {
    .size-chart-link {
        margin-top: 12px;
    }
    .size-chart__table {
        font-size: 14px;
    }
    .size-chart__table th {
        padding: 0 6px 8px;
        font-size: 12px;
    }
    .size-chart__table td {
        padding: 11px 6px;
    }
    .size-chart__table th:first-child,
    .size-chart__table td:first-child {
        padding-left: 10px;
    }
    .size-chart__table--age th,
    .size-chart__table--age td {
        padding-left: 4px;
        padding-right: 4px;
    }
    .size-chart__measure {
        padding: 12px;
    }
    .size-chart__tabs .tabs__nav {
        column-gap: 4px;
    }
    .size-chart__tabs .tabs__nav-item {
        padding: 0 8px 12px;
        font-size: 12px;
    }
}
