/* The Woman Store Size Chart Styles - Add to assets/css/tws-size-chart.css */

/* Size Chart Button - The Woman Store Branding */
.tws-size-chart-button {
    background: linear-gradient(135deg, #ed4092 0%, #e883ad 100%);
    border: none;
    color: #ffffff;
    padding: 2px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 150px;
}

.tws-size-chart-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(223, 177, 196);
}

.tws-size-chart-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgb(223, 177, 196);
}

.tws-size-chart-icon {
    font-size: 20px;
}

.tws-size-chart-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Modal Styles - The Woman Store Theme */
.tws-size-chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tws-size-chart-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: twsModalSlideIn 0.4s ease;
}

@keyframes twsModalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tws-size-chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.tws-size-chart-modal-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(255, 107, 53, 0.1), transparent);
}

.tws-modal-title-area h3 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 22px;
    font-weight: 700;
}

.tws-size-chart-close {
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tws-size-chart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tws-size-chart-modal-body {
    padding: 30px;
    line-height: 1.6;
}

/* Size Chart Table Styles */
.tws-size-chart-modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tws-size-chart-modal-body table th,
.tws-size-chart-modal-body table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e8e8e8;
}

.tws-size-chart-modal-body table th {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.tws-size-chart-modal-body table tr:nth-child(even) {
    background: #f9f9f9;
}

.tws-size-chart-modal-body table tr:hover {
    background: #fff5f2;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Flatsome & Page Builder Compatibility */
.flatsome-theme .tws-size-chart-section,
.ux-section .tws-size-chart-section,
.col .tws-size-chart-section {
    margin: 15px 0;
}

.flatsome-theme .tws-size-chart-button {
    font-family: inherit;
}

/* Responsive Design for Fashion Store */
@media (max-width: 768px) {
    .tws-size-chart-modal {
        padding: 15px;
    }

    .tws-size-chart-modal-content {
        max-height: 95vh;
        margin: 0;
        border-radius: 8px;
    }

    .tws-size-chart-modal-header,
    .tws-size-chart-modal-body {
        padding: 20px;
    }

    .tws-modal-title-area h3 {
        font-size: 18px;
    }

    .tws-size-chart-button {
        width: 70%;
        justify-content: center;
        padding: 12px 20px;
        min-width: auto;
    }

    .tws-size-chart-section {
        margin: 15px 0;
    }

    /* Mobile Table Responsiveness */
    .tws-size-chart-modal-body table {
        font-size: 14px;
    }

    .tws-size-chart-modal-body table th,
    .tws-size-chart-modal-body table td {
        padding: 10px 8px;
    }

    .tws-size-chart-tips {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .tws-size-chart-modal-body table {
        font-size: 12px;
    }

    .tws-size-chart-modal-body table th,
    .tws-size-chart-modal-body table td {
        padding: 8px 6px;
    }

    .tws-size-chart-text {
        font-size: 14px;
    }

    .tws-size-chart-subtitle {
        font-size: 10px;
    }
}

/* Print Styles */
@media print {
    .tws-size-chart-modal {
        position: static;
        background: none;
        padding: 0;
    }

    .tws-size-chart-modal-content {
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .tws-size-chart-modal-header {
        border-bottom: 3px solid #ff6b35;
        background: none !important;
        color: #333 !important;
    }

    .tws-size-chart-close {
        display: none;
    }

    .tws-modal-title-area h3 {
        color: #333 !important;
    }
}

/* Responsive Table Styles */
.tws-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tws-table-responsive.has-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255, 107, 53, 0.1));
    pointer-events: none;
    border-radius: 0 8px 8px 0;
}

.tws-scroll-indicator {
    text-align: center;
    font-size: 12px;
    color: #ff6b35;
    padding: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
    border-top: 2px solid #ff6b35;
    font-style: italic;
}