.wc-size-chart-button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    text-align: center !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-size: 16px !important;
    margin: 4px 2px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
}

.wc-size-chart-button:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

.wc-size-chart-modal {
    display: none;
    position: fixed;
    z-index: 999999; /* Максимальный z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Более темный фон для лучшего контраста */
}

.wc-size-chart-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3); /* Добавим тень для лучшего визуального отделения */
    z-index: 1000000; /* Еще выше для контента */
}

.wc-size-chart-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    line-height: 1;
    z-index: 1000001; /* Самая высокая позиция для кнопки закрытия */
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wc-size-chart-close:hover {
    color: #000;
    background: #f5f5f5;
}

.wc-size-chart {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.wc-size-chart th,
.wc-size-chart td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.wc-size-chart th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.wc-size-chart tr:nth-child(even) {
    background-color: #f8f9fa;
}

.wc-size-chart tr:hover {
    background-color: #e9ecef;
}

/* Гарантируем, что модальное окно будет поверх всех элементов */
body.wc-size-chart-modal-open {
    overflow: hidden;
}
