.size-chart-container {
    margin: 20px 0;
}

.size-chart-button {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
    display: inline-block;
    transition: color 0.2s ease;
}

.size-chart-button:hover {
    color: #333;
    text-decoration: underline;
}

.size-chart-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Modal Styles */
.size-chart-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.size-chart-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.size-chart-modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.size-chart-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.size-chart-modal-close:hover {
    color: #000;
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.size-chart-modal-body {
    padding: 0;
    text-align: center;
}

.size-chart-image {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

.size-chart-loading,
.size-chart-error {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.size-chart-error {
    color: #d32f2f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .size-chart-modal-content {
        margin: 10px;
        max-width: 95%;
        max-height: 95%;
    }
    
    .size-chart-modal-header {
        padding: 15px;
    }
    
    .size-chart-modal-header h3 {
        font-size: 18px;
    }
    
    .size-chart-modal-body {
        padding: 15px;
    }
    
    .size-chart-image {
        max-height: 60vh;
    }
    
    .size-chart-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}