/* Dark Theme Variables */
:root {
    --wd-bg: #1a1a1a;
    --wd-secondary-bg: #2d2d2d;
    --wd-accent: rgb(251,188,52);
    --wd-text: #e0e0e0;
    --wd-border: #3a3a3a;
}

/* Overlay */
.wd-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    transition: opacity 0.3s;
}

/* Slide Panel */
.wd-size-guide-panel {
    position: fixed;
    top: 0;
    right: -40vw;
    width: 40vw;
    min-width: 420px;
    max-width: 600px;
    height: 100vh;
    background: var(--wd-bg);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
}

.wd-size-guide-panel.open {
    right: 0;
}

.wd-panel-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Header */
.wd-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    border-bottom: 1px solid #383838;
}

.wd-panel-navigation {
    display: flex;
    align-items: center;
    margin: 30px 0;
    justify-content: center;
    flex-direction: column;
}

.wd-panel-close {
    background: none;
    border: none;
    color: var(--wd-text);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.wd-panel-close:hover {
    color: var(--wd-accent);
}

/* Tabs */
.wd-tabs-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 5px;
    background: var(--wd-secondary-bg);
    border-radius: 30px;
}

.wd-tab-toggle {
    flex: 1 0 auto;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 30px;
    color: var(--wd-text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.wd-tab-toggle.active {
    background: var(--wd-accent);
    color: #000;
    box-shadow: inset 0 0 0 1px var(--wd-accent);
}

/* Table */
.wd-sizing-table {
    width: 100%;
    border-collapse: collapse;
    flex: 1 1 auto;
    margin-bottom: 20px;
}

.wd-sizing-table th,
.wd-sizing-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--wd-border);
}

.wd-sizing-table th {
    background: var(--wd-secondary-bg);
    color: var(--wd-accent);
}

.wd-sizing-table tr:nth-child(even) {
    background: var(--wd-secondary-bg);
}

/* Trigger Button */
.wd-size-guide-trigger {
   /* background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.2s;*/
    margin-bottom: 20px;	
    cursor: pointer;
}

    
/* Hide all tab content by default */
.wd-tab-pane {
    display: none;
}

/* Only show active tab content */
.wd-tab-pane.active {
    display: block;
}

/* Scrollbar */
.wd-tabs-content {
    overflow-y: auto;
    flex: 1 1 auto;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .wd-size-guide-panel {
        width: 100%;
        height: 85vh;
        top: auto;
        bottom: -85vh; /* Start off-screen at the bottom */
        right: 0;
        min-width: unset;
        transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 -4px 15px rgba(0,0,0,0.2); /* Adjust shadow for bottom-up effect */
    }

    .wd-size-guide-panel.open {
        right: 0;
        bottom: 0; /* Slide up to bottom: 0 */
    }
    
    .wd-panel-header {
    margin-top: 10px;
    margin-bottom: 20px;
}
}