/**
 * Size Table Offcanvas Styles
 * 
 * @package Lukuro_Shop_Size_Table
 * @since 1.0.0
 */

/* ==========================================================================
   Offcanvas Overlay & Container
   ========================================================================== */

.lukuro-size-table-offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lukuro-size-table-offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lukuro-size-table-offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: white;
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.lukuro-size-table-offcanvas.active {
    right: 0;
}

/* ==========================================================================
   Offcanvas Header
   ========================================================================== */

.lukuro-size-table-offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bricks-border-light, #e1e5e9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-ultra-light);
}

.lukuro-size-table-offcanvas-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--bricks-text-dark, #333);
}

.lukuro-size-table-offcanvas-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--bricks-text-light, #666);
    padding: 0.5rem;
    border-radius: 0;
    transition: all 0.2s ease;
    line-height: 1;
}

.lukuro-size-table-offcanvas-close:hover {
    background: var(--bricks-border-light, #e1e5e9);
    color: var(--bricks-text-dark, #333);
}

/* ==========================================================================
   Offcanvas Body
   ========================================================================== */

.lukuro-size-table-offcanvas-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.lukuro-size-table-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-direction: column;
    gap: 1rem;
}

.lukuro-size-table-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bricks-border-light, #e1e5e9);
    border-top: 3px solid var(--primary, #007cba);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lukuro-size-table-loading-text {
    color: var(--bricks-text-light, #666);
    font-size: 0.9rem;
}

/* ==========================================================================
   Model Note (above size table)
   ========================================================================== */

.lukuro-size-table-model-note {
    color: var(--text-dark-muted, #888);
    font-size: var(--text-xs, 0.75rem);
    margin: 0 0 1rem;
    padding: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Size Table Content (w offcanvas)
   ========================================================================== */

.lukuro-size-table-offcanvas .lukuro-size-table-wrapper {
    margin: 0;
}


.lukuro-size-table-offcanvas .lst-tab-button {
    background: transparent;
    border: 1px solid var(--bricks-border-light, #e1e5e9);
    color: var(--bricks-text-dark, #333);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.625rem 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -1px;
}

.lukuro-size-table-offcanvas .lst-tab-button:hover {
    background-color: var(--bricks-color-primary-light, #f8f9fa);
    border-color: var(--primary, #007cba);
}

.lukuro-size-table-offcanvas .lst-tab-button.active {
    background-color: var(--primary-ultra-light);
    color: var(--text-dark);
    border-color: var(--primary);
}

.lukuro-size-table-offcanvas .lst-table {
    font-size: 0.9rem;
}

.lukuro-size-table-offcanvas .lst-table td {
    padding: 0.75rem 1rem;
}

/* ==========================================================================
   Error State
   ========================================================================== */

.lukuro-size-table-error {
    text-align: center;
    padding: 2rem;
    color: var(--bricks-text-light, #666);
}

.lukuro-size-table-error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--bricks-border-light, #e1e5e9);
}

.lukuro-size-table-error-message {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 767px) {
    .lukuro-size-table-offcanvas {
        max-width: 100%;
        width: 100%;
    }
    
    .lukuro-size-table-offcanvas-header {
        padding: 1rem;
    }
    
    .lukuro-size-table-offcanvas-title {
        font-size: 1.1rem;
    }
    
    .lukuro-size-table-offcanvas-body {
        padding: 1rem;
    }
    
    .lukuro-size-table-offcanvas .lst-table td {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Animation Enhancements
   ========================================================================== */

.lukuro-size-table-offcanvas-body .lukuro-size-table-wrapper {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
