/* WebBundl Advanced Size Chart Pro — isolated storefront styles. */
.sw-size-chart-wrapper {
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.sw-size-chart-wrapper .sw-premium-chart-trigger,
.sw-size-chart-wrapper button.sw-premium-chart-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: auto !important;
    min-width: 0 !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 12px 18px;
    border: 1px solid transparent !important;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2 !important;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.sw-size-chart-wrapper .sw-premium-chart-trigger:hover,
.sw-size-chart-wrapper .sw-premium-chart-trigger:focus-visible {
    background: #148b9b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(20, 139, 155, 0.25);
    outline: none;
}

.sw-premium-chart-trigger .sw-size-chart-icon {
    display: block !important;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    color: currentColor;
}

.sw-size-chart-button-text { color: currentColor; }
body.sw-size-chart-open { overflow: hidden !important; }

.sw-modal-blur-overlay[hidden] { display: none !important; }
.sw-modal-blur-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw !important;
    height: 100vh !important;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, .56);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sw-modal-responsive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(680px, 100%);
    max-height: min(86vh, 760px);
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    animation: webbundlSizeChartIn .22s ease-out;
}

.sw-modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.sw-modal-top-bar h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-family: inherit;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.sw-modal-top-bar .sw-modal-close-icon,
.sw-modal-top-bar button.sw-modal-close-icon {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #111827 !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
}

.sw-modal-top-bar .sw-modal-close-icon:hover,
.sw-modal-top-bar .sw-modal-close-icon:focus-visible {
    background: #111827 !important;
    color: #ffffff !important;
    outline: none;
}

.sw-modal-scrollable-body {
    padding: 20px 22px 24px;
    overflow-y: auto;
    box-sizing: border-box;
}

.sw-table-mobile-scroller {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.sw-modal-scrollable-body table {
    width: 100% !important;
    min-width: 480px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    table-layout: auto;
}

.sw-modal-scrollable-body table th,
.sw-modal-scrollable-body table td {
    padding: 13px 15px !important;
    border: 0 !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff;
    color: #374151 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    white-space: nowrap;
}
.sw-modal-scrollable-body table tr > *:last-child { border-right: 0 !important; }
.sw-modal-scrollable-body table tbody tr:last-child > * { border-bottom: 0 !important; }
.sw-modal-scrollable-body table thead th { background: #f8fafc !important; color: #111827 !important; font-weight: 700 !important; }
.sw-modal-scrollable-body table tbody th { color: #111827 !important; font-weight: 700 !important; }
.sw-modal-scrollable-body table tbody tr:nth-child(even) td,
.sw-modal-scrollable-body table tbody tr:nth-child(even) th { background: #fbfdff !important; }

.sw-generated-chart__unit {
    padding: 11px 14px 8px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}
.sw-size-chart-notes { padding: 14px; border-top: 1px solid #e5e7eb; color: #4b5563; font-size: 13px; line-height: 1.6; }
.sw-size-chart-notes > :first-child { margin-top: 0; }
.sw-size-chart-notes > :last-child { margin-bottom: 0; }
.sw-elementor-editor-notice { padding: 12px 14px; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; color: #475569; font-size: 13px; }

@keyframes webbundlSizeChartIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
    .sw-modal-blur-overlay { padding: 10px; align-items: flex-end; }
    .sw-modal-responsive-card { max-height: 90vh; border-radius: 16px 16px 10px 10px; }
    .sw-modal-top-bar { padding: 15px 16px; }
    .sw-modal-scrollable-body { padding: 14px 14px 18px; }
}
