/* Size Chart Link Styles */
.ot-size-chart-link {
    color: var(--tp-theme-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.ot-size-chart-link:hover {
    opacity: 0.8;
    color: var(--tp-theme-primary);
    text-decoration: underline;
}

.ot-size-chart-link:focus {
    outline: 2px solid var(--tp-theme-primary);
    outline-offset: 2px;
}

/* Size Chart Modal Image */
.ot-size-chart-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Size Chart Table Styles */
.ot-size-chart-table {
    margin-bottom: 0;
    font-size: 14px;
}

.ot-size-chart-table thead th {
    background-color: var(--tp-theme-primary);
    color: #fff;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    border-color: var(--tp-theme-primary);
}

.ot-size-chart-table tbody td {
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
}

.ot-size-chart-table tbody tr:hover {
    background-color: rgba(var(--tp-theme-primary-rgb, 0, 123, 255), 0.05);
}

/* Modal Responsive Adjustments */
@media (max-width: 576px) {
    .ot-size-chart-table {
        font-size: 12px;
    }

    .ot-size-chart-table thead th,
    .ot-size-chart-table tbody td {
        padding: 8px 4px;
    }
}