/* Size Chart Trigger */
.dscc-size-chart-wrapper {
    margin: 10px 0;
}

.dscc-size-chart-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.dscc-size-chart-trigger:hover {
    opacity: 0.8;
}

.dscc-icon {
    flex-shrink: 0;
}

.dscc-size-chart-text {
    text-decoration: underline;
}

/* Modal - hidden by default via CSS (NOT inline style) */
.dscc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.dscc-modal-overlay.active {
    display: flex !important;
}

.dscc-modal {
    background: #fff;
    border-radius: 4px;
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    animation: dsccFadeIn 0.25s ease;
}

.dscc-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    z-index: 10;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dscc-modal-close:hover {
    color: #000;
}

.dscc-modal-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

@keyframes dsccFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .dscc-modal {
        padding: 15px;
        max-height: 95vh;
    }
}
