:root{--rw-sidebar-width:240px;--rw-sidebar-width-collapsed:64px;--rw-sidebar-bg:#1a1a1a;--rw-sidebar-border:#2a2a2a;--rw-sidebar-text:#a0a0a0;--rw-sidebar-text-hover:#ffffff;--rw-sidebar-icon:#cecece;--rw-sidebar-icon-hover:#ffffff;--rw-sidebar-active-bg:rgba(255, 255, 255, 0.08);--rw-sidebar-bg-surface:var(--rw-sidebar-bg-custom, var(--rw-sidebar-bg));--rw-sidebar-shadow:none;--rw-sidebar-site-name:#ffffff;--rw-sidebar-toggle-bg:transparent;--rw-sidebar-toggle-border:var(--rw-sidebar-border);--rw-sidebar-toggle-icon:rgba(255, 255, 255, 0.85);--rw-sidebar-icon-hover:#ffffff;--rw-sidebar-page-bg:transparent;--rw-sidebar-user-bg:transparent;--rw-sidebar-user-bg-hover:var(--rw-sidebar-active-bg);--rw-sidebar-user-menu-hover:rgba(0, 0, 0, 0.247);--rw-sidebar-user-border:transparent;--rw-sidebar-popover-bg:#2a2a2e;--rw-sidebar-popover-border:rgba(255, 255, 255, 0.08);--rw-sidebar-popover-shadow:0 8px 32px rgba(0, 0, 0, 0.36), 0 2px 8px rgba(0, 0, 0, 0.2);--rw-sidebar-popover-text:#d1d1d6;--rw-sidebar-popover-text-muted:#7a7a85;--rw-sidebar-popover-hover:rgba(255, 255, 255, 0.06);--rw-sidebar-popover-divider:rgba(255, 255, 255, 0.07);--rw-sidebar-link-radius:12px;--rw-sidebar-transition:0.2s ease}html[data-rw-theme-state="light"] body,html:not([data-rw-theme-state="dark"]) body:not(.global-color-scheme-light){--rw-sidebar-bg-surface:linear-gradient(180deg, #fcfbf8 0%, #f6f4ef 100%);--rw-sidebar-border:#ece7de;--rw-sidebar-text:#606878;--rw-sidebar-text-hover:#151d2c;--rw-sidebar-icon:#332b6a;--rw-sidebar-icon-hover:#1c2435;--rw-sidebar-active-bg:#efede7;--rw-sidebar-shadow:18px 0 36px rgba(15, 23, 42, 0.08);--rw-sidebar-site-name:#111827;--rw-sidebar-toggle-bg:#ffffff;--rw-sidebar-toggle-border:#e8e4db;--rw-sidebar-toggle-icon:#8d95a4;--rw-sidebar-page-bg:#fbfaf6;--rw-sidebar-user-bg:#ffffff;--rw-sidebar-user-bg-hover:#f3f1ec;--rw-sidebar-user-menu-hover:rgba(0, 0, 0, 0.014);--rw-sidebar-user-border:#ebe7de;--rw-sidebar-popover-bg:#ffffff;--rw-sidebar-popover-border:#e8e8ec;--rw-sidebar-popover-shadow:0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);--rw-sidebar-popover-text:#44444d;--rw-sidebar-popover-text-muted:#9298a5;--rw-sidebar-popover-hover:#f7f7f9;--rw-sidebar-popover-divider:#eeeff2;--rw-sidebar-light-form-bg:#ffffff;--rw-sidebar-light-form-text:#1f2937;--rw-sidebar-light-form-border:rgba(15, 23, 42, 0.14);--rw-sidebar-light-form-border-focus:rgba(15, 23, 42, 0.22);--rw-sidebar-light-form-chevron:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiM5Y2EzYWYiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==);
}

html[data-rw-theme-state="light"] body.rw-has-sidebar .single-product-page form.variations_form,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .single-product-page form.variations_form {
    --wd-form-bg: var(--rw-sidebar-light-form-bg);
    --wd-form-color: var(--rw-sidebar-light-form-text);
    --wd-form-brd-color: var(--rw-sidebar-light-form-border);
    --wd-form-brd-color-focus: var(--rw-sidebar-light-form-border-focus);
    --wd-form-chevron: var(--rw-sidebar-light-form-chevron);
}

html[data-rw-theme-state="light"] body.rw-has-sidebar .single-product-page form.variations_form table.variations select,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .single-product-page form.variations_form table.variations select {
    background-color: var(--rw-sidebar-light-form-bg);
    color: var(--rw-sidebar-light-form-text);
    border-color: var(--rw-sidebar-light-form-border);
    background-image: var(--rw-sidebar-light-form-chevron);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-rw-theme-state="light"] body.rw-has-sidebar .single-product-page form.variations_form table.variations select:focus,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .single-product-page form.variations_form table.variations select:focus {
    border-color: var(--rw-sidebar-light-form-border-focus);
}

html[data-rw-theme-state="light"] body.rw-has-sidebar .single-product-page form.variations_form table.variations select option,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .single-product-page form.variations_form table.variations select option {
    background-color: var(--rw-sidebar-light-form-bg);
    color: var(--rw-sidebar-light-form-text);
}

/* ==========================================================================
   Custom Font — CameraPlain (sidebar only)
   ========================================================================== */

@font-face{ 
    font-family: 'CameraPlain';
    src: url(/wp-content/plugins/recursos-worship-core/assets/css/fonts/CameraPlainVariable.woff2) format('woff2');
    font-weight: 100 900;
    font-display: swap;
 }

/* ==========================================================================
   Sidebar Container
   ========================================================================== */

.rw-sidebar {
    font-family: 'CameraPlain', system-ui, -apple-system, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rw-sidebar-width);
    height: 100vh;
    background: var(--rw-sidebar-bg-surface);
    border-right: 1px solid var(--rw-sidebar-border);
    box-shadow: var(--rw-sidebar-shadow);
    display: flex;
    flex-direction: column;
    z-index: 99999;
    transition: width var(--rw-sidebar-transition);
    overflow: hidden;
}

/* Collapsed State */
.rw-sidebar[data-collapsed="true"] {
    width: var(--rw-sidebar-width-collapsed);
}

.rw-sidebar[data-collapsed="true"] .rw-sidebar__label,
.rw-sidebar[data-collapsed="true"] .rw-sidebar__site-name {
    opacity: 0;
    visibility: hidden;
    width: 0;
}

.rw-sidebar[data-collapsed="true"] .rw-sidebar__logo .custom-logo-link {
    justify-content: center;
}

/* Center logo when collapsed */
.rw-sidebar[data-collapsed="true"] .rw-sidebar__logo {
    justify-content: center;
}

/* Center header and toggle button when collapsed */
.rw-sidebar[data-collapsed="true"] .rw-sidebar__header {
    flex-direction: column;
    padding: 12px;
    gap: 12px;
}

/* ==========================================================================
   Header / Logo
   ========================================================================== */



.rw-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 16px;
    min-height: 56px;
    border-bottom: 1px solid var(--rw-sidebar-border);
    gap: 8px;
}

.rw-sidebar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* WordPress custom logo wrapper */
.rw-sidebar__logo .custom-logo-link {
    display: flex;
    align-items: center;
}

.rw-sidebar__logo img,
.rw-sidebar__logo .custom-logo {
    max-height: 32px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--rw-sidebar-transition);
}

/* Collapsed state - smaller logo */
.rw-sidebar[data-collapsed="true"] .rw-sidebar__logo img,
.rw-sidebar[data-collapsed="true"] .rw-sidebar__logo .custom-logo {
    max-width: 32px;
    max-height: 32px;
}

.rw-sidebar__site-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--rw-sidebar-site-name);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--rw-sidebar-transition);
}

/* Toggle Button - More visible */
.rw-sidebar__toggle {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rw-sidebar-toggle-icon) !important;
    fill: var(--rw-sidebar-toggle-icon) !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.rw-sidebar__toggle svg {
    color: inherit !important;
    fill: currentColor !important;
}

.rw-sidebar__toggle .icon {
    height: calc(var(--rw-sidebar-icon-spacing, 4px) * 5);
    width: calc(var(--rw-sidebar-icon-spacing, 4px) * 5);
    flex-grow: 0;
    flex-shrink: 0;
}

.rw-sidebar__toggle:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--rw-sidebar-icon-hover);
}

.rw-sidebar__toggle:focus,
.rw-sidebar__toggle:active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.rw-sidebar__toggle:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.22);
    outline-offset: 4px;
}

.rw-sidebar__toggle-icon {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: visible;
}

.rw-sidebar__toggle:hover .rw-sidebar__toggle-icon,
.rw-sidebar__toggle:focus-visible .rw-sidebar__toggle-icon {
    opacity: 1;
}

/* Toggle icon – line animations */
.rw-sidebar__toggle-line {
    transform-origin: center;
    transition:
        transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.rw-sidebar__toggle-dot {
    transform-origin: center;
    transition:
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover: lines slide right staggered, dot fades & scales */
.rw-sidebar__toggle:hover .rw-sidebar__toggle-line--1 {
    transform: translateX(2px);
    transition-delay: 0s;
}

.rw-sidebar__toggle:hover .rw-sidebar__toggle-line--2 {
    transform: translateX(3.5px);
    transition-delay: 0.04s;
}

.rw-sidebar__toggle:hover .rw-sidebar__toggle-line--3 {
    transform: translateX(5px);
    transition-delay: 0.08s;
}

.rw-sidebar__toggle:hover .rw-sidebar__toggle-dot {
    transform: scale(0) translateX(-2px);
    opacity: 0;
}

/* Reset delays on mouse-out for smooth return */
.rw-sidebar__toggle-line--1 { transition-delay: 0.06s; }
.rw-sidebar__toggle-line--2 { transition-delay: 0.03s; }
.rw-sidebar__toggle-line--3 { transition-delay: 0s; }

.rw-sidebar__toggle-pane {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: currentColor;
}

.rw-sidebar__toggle-pane--sidebar {
    width: 4px;
    flex: 0 0 4px;
    opacity: 0.95;
}

.rw-sidebar__toggle-pane--content {
    min-width: 0;
    flex: 1 1 auto;
    opacity: 0.32;
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */

.rw-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 8px;
}

.rw-sidebar__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Section Title */
.rw-sidebar__section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rw-sidebar-icon);
    padding: 16px 12px 8px;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--rw-sidebar-transition);
}

.rw-sidebar__section-title:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Hide section title when collapsed */
.rw-sidebar[data-collapsed="true"] .rw-sidebar__section-title {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
}

.rw-sidebar__item {
    margin-bottom: 4px;
}

.rw-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--rw-sidebar-link-radius);
    background: transparent;
    text-decoration: none;
    color: var(--rw-sidebar-text);
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    font: inherit;
    text-align: left;
}

button.rw-sidebar__submenu-toggle {
    cursor: pointer;
    box-sizing: border-box;
    margin: 0;
    border: 0;
    -webkit-appearance: none;
    appearance: none;
    padding: 10px 12px;
}

/* Remove Firefox inner padding on buttons */
button.rw-sidebar__submenu-toggle::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.rw-sidebar__link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.22);
    outline-offset: 2px;
}

.rw-sidebar__link-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.rw-sidebar__link:hover {
    background: var(--rw-sidebar-active-bg);
    color: var(--rw-sidebar-text-hover);
}

.rw-sidebar__item--active > .rw-sidebar__link {
    background: var(--rw-sidebar-active-bg);
    color: var(--rw-sidebar-text-hover);
    font-weight: 600;
}

/* Sub-items: no background, only text highlight */
.rw-sidebar__submenu > .rw-sidebar__item--active > .rw-sidebar__link,
.rw-sidebar__submenu > .rw-sidebar__item--current > .rw-sidebar__link {
    background: transparent;
    font-weight: 600;
}

.rw-sidebar__submenu > .rw-sidebar__item > .rw-sidebar__link:hover {
    background: transparent;
}

.rw-sidebar__caret {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--rw-sidebar-icon);
    transition: transform 0.2s ease, color 0.2s ease, opacity var(--rw-sidebar-transition);
}

.rw-sidebar__caret svg {
    width: 16px;
    height: 16px;
}

.rw-sidebar__item--expanded > .rw-sidebar__submenu-toggle .rw-sidebar__caret {
    transform: rotate(180deg);
    color: var(--rw-sidebar-icon-hover);
}

/* Icon */
.rw-sidebar__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--rw-sidebar-icon);
    transition: color 0.2s ease;
}

.rw-sidebar__icon svg {
    width: 20px;
    height: 20px;
}

/* Image Icons (from Woodmart menu settings) */
.rw-sidebar__icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

/* FontAwesome Icons (from Woodmart menu settings) */
.rw-sidebar__icon .wd-nav-icon,
.rw-sidebar__icon .fa {
    font-size: 18px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rw-sidebar__link:hover .rw-sidebar__icon,
.rw-sidebar__item--active > .rw-sidebar__link .rw-sidebar__icon,
.rw-sidebar__link:hover .rw-sidebar__caret {
    color: var(--rw-sidebar-icon-hover);
}

/* Label */
.rw-sidebar__label {
    font-size: 14px;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--rw-sidebar-transition), visibility var(--rw-sidebar-transition);
}

.rw-sidebar__submenu {
    position: relative;
    margin: 4px 0 8px;
    padding: 0 0 0 20px;
}

.rw-sidebar__submenu[hidden] {
    display: none;
}

.rw-sidebar__submenu::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 10px;
    left: 10px;
    width: 1px;
    background: var(--rw-sidebar-border);
}

.rw-sidebar__submenu>.rw-sidebar__item {
    position: relative;
}

.rw-sidebar__submenu>.rw-sidebar__item::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -10px;
    width: 10px;
    height: 1px;
    background: var(--rw-sidebar-border);
}

.rw-sidebar__submenu>.rw-sidebar__item>.rw-sidebar__link {
    padding: 8px 12px 8px 10px;
}

.rw-sidebar__submenu>.rw-sidebar__item>.rw-sidebar__link .rw-sidebar__icon {
    width: 16px;
    height: 16px;
}

.rw-sidebar__submenu>.rw-sidebar__item>.rw-sidebar__link .rw-sidebar__icon svg,
.rw-sidebar__submenu>.rw-sidebar__item>.rw-sidebar__link .rw-sidebar__icon-img {
    width: 16px;
    height: 16px;
}

.rw-sidebar__submenu>.rw-sidebar__item>.rw-sidebar__link .rw-sidebar__label {
    font-size: 13px;
}

.rw-sidebar__submenu .rw-sidebar__submenu {
    margin-top: 4px;
    padding-left: 18px;
}

.rw-sidebar__submenu .rw-sidebar__submenu::before {
    left: 9px;
}

.rw-sidebar__submenu .rw-sidebar__submenu>.rw-sidebar__item::before {
    left: -9px;
    width: 9px;
}

.rw-sidebar[data-collapsed="true"] .rw-sidebar__caret,
.rw-sidebar[data-collapsed="true"] .rw-sidebar__submenu {
    display: none;
}

/* ==========================================================================
   Content Layout Adjustment - WordPress Full Width Support
   ========================================================================== */

/*
 * Create a CSS variable for the current sidebar width that changes
 * based on collapsed state. This makes it easier to apply consistently.
 */
.rw-has-sidebar {
    --rw-current-sidebar-width: var(--rw-sidebar-width);
}

.rw-has-sidebar.rw-sidebar-collapsed {
    --rw-current-sidebar-width: var(--rw-sidebar-width-collapsed);
}

/*
 * WoodMart uses .main-page-wrapper as the main content container.
 * Header (non-sticky) uses margin-left like the content.
 * Header (sticky/fixed) uses left + width positioning.
 */

/* WoodMart Header - NO aplicar margin-left al padre 
 * WoodMart JS aplica position: absolute + left: 240px al hijo .whb-main-header
 * Si aplicamos margin-left al padre, causa doble offset */
.rw-has-sidebar .whb-header,
.rw-has-sidebar header.whb-header {
    margin-left: 0 !important;
}

/* .whb-main-header - Pre-aplicar left/width para prevenir CLS */
.rw-has-sidebar .whb-main-header {
    left: var(--rw-current-sidebar-width);
    width: calc(100% - var(--rw-current-sidebar-width));
}

/* WoodMart sticky clone - mantener left/width */
.rw-has-sidebar .whb-clone,
.rw-has-sidebar .whb-sticky-header.whb-clone {
    margin-left: 0 !important;
    left: var(--rw-current-sidebar-width) !important;
    right: auto !important;
    width: calc(100% - var(--rw-current-sidebar-width)) !important;
    transition: left var(--rw-sidebar-transition), width var(--rw-sidebar-transition);
}

/* WoodMart sticky real mode - cuando header es fijo */
.rw-has-sidebar .whb-header.whb-sticked .whb-main-header,
.rw-has-sidebar .whb-sticked .whb-main-header {
    margin-left: 0 !important;
    left: var(--rw-current-sidebar-width) !important;
    right: auto !important;
    width: calc(100% - var(--rw-current-sidebar-width)) !important;
}

/* Main content area - WoodMart specific */
.rw-has-sidebar .main-page-wrapper {
    margin-left: var(--rw-current-sidebar-width);
    transition: margin-left var(--rw-sidebar-transition), background-color var(--rw-sidebar-transition);
}

/* Footer - WoodMart specific */
.rw-has-sidebar .website-wrapper>.footer-container,
.rw-has-sidebar>.footer-container {
    margin-left: var(--rw-current-sidebar-width);
    transition: margin-left var(--rw-sidebar-transition);
}

html[data-rw-theme-state="light"] body.rw-has-sidebar,
html[data-rw-theme-state="light"] body.rw-has-sidebar .website-wrapper,
html[data-rw-theme-state="light"] body.rw-has-sidebar .main-page-wrapper,
html[data-rw-theme-state="light"] body.rw-has-sidebar .wd-page-wrapper,
html[data-rw-theme-state="light"] body.rw-has-sidebar .site-content,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light),
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .website-wrapper,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .main-page-wrapper,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .wd-page-wrapper,
html:not([data-rw-theme-state="dark"]) body.rw-has-sidebar:not(.global-color-scheme-light) .site-content {
    background-color: var(--rw-sidebar-page-bg);
}

/* WordPress Admin Bar adjustment when logged in */
.rw-has-sidebar.admin-bar .whb-header,
.rw-has-sidebar.admin-bar .whb-sticked {
    top: 32px;
}

@media screen and (max-width: 782px) {

    .rw-has-sidebar.admin-bar .whb-header,
    .rw-has-sidebar.admin-bar .whb-sticked {
        top: 46px;
    }
}

/* Fixed elements on the LEFT that need repositioning */
.rw-has-sidebar .wd-sticky-btn,
.rw-has-sidebar .wd-action-btn.wd-action-btn-left {
    left: calc(var(--rw-current-sidebar-width) + 20px);
    transition: left var(--rw-sidebar-transition);
}

/* Scroll to top button stays on the RIGHT - no repositioning needed */

/* ==========================================================================
   Responsive - Desktop Only
   ========================================================================== */

/* Show only on desktop (>= 1200px) */
@media (max-width: 1199px) {

    /* Hide sidebar on mobile/tablet */
    .rw-sidebar {
        display: none !important;
    }

    /* Reset sidebar width variable */
    .rw-has-sidebar {
        --rw-current-sidebar-width: 0px;
    }

    /* Reset all margin-left adjustments */
    .rw-has-sidebar .main-page-wrapper,
    .rw-has-sidebar .footer-container {
        margin-left: 0 !important;
    }

    /* Reset header positioning */
    .rw-has-sidebar .whb-header,
    .rw-has-sidebar .whb-main-header,
    .rw-has-sidebar header.whb-header {
        margin-left: 0 !important;
    }

    .rw-has-sidebar .whb-clone,
    .rw-has-sidebar .whb-sticked .whb-main-header {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    /* Reset fixed elements on left */
    .rw-has-sidebar .wd-sticky-btn,
    .rw-has-sidebar .wd-action-btn.wd-action-btn-left {
        left: 20px !important;
    }
}

/* ==========================================================================
   Scrollbar Styling
   ========================================================================== */

.rw-sidebar__nav::-webkit-scrollbar {
    width: 4px;
}

.rw-sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

.rw-sidebar__nav::-webkit-scrollbar-thumb {
    background: var(--rw-sidebar-border);
    border-radius: 2px;
}

.rw-sidebar__nav::-webkit-scrollbar-thumb:hover {
    background: #444;
}

html.rw-theme-switching .rw-sidebar,
html.rw-theme-switching .rw-sidebar *,
html.rw-theme-switching .rw-has-sidebar .main-page-wrapper,
html.rw-theme-switching .rw-has-sidebar .website-wrapper,
html.rw-theme-switching .rw-has-sidebar .site-content {
    transition: none !important;
    animation: none !important;
}

/* Preserve user panel open/close animation during theme switch */
html.rw-theme-switching .rw-sidebar .rw-sidebar__user-panel[data-state="open"] {
    animation: rw-menu-enter 0.15s ease-out forwards !important;
}

html.rw-theme-switching .rw-sidebar .rw-sidebar__user-panel[data-state="closed"] {
    animation: rw-menu-exit 0.15s ease-in forwards !important;
}

html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__link,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__link,
html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__submenu-toggle,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__submenu-toggle {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    color: var(--rw-sidebar-text) !important;
}

html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__link:hover,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__link:hover,
html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__item--active > .rw-sidebar__link,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__item--active > .rw-sidebar__link,
html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__item--current > .rw-sidebar__link,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__item--current > .rw-sidebar__link,
html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__item--expanded > .rw-sidebar__submenu-toggle,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__item--expanded > .rw-sidebar__submenu-toggle {
    background: var(--rw-sidebar-active-bg) !important;
    background-color: var(--rw-sidebar-active-bg) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--rw-sidebar-text-hover) !important;
}

/* Sub-items: no background in both themes */
html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__submenu > .rw-sidebar__item--active > .rw-sidebar__link,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__submenu > .rw-sidebar__item--active > .rw-sidebar__link,
html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__submenu > .rw-sidebar__item--current > .rw-sidebar__link,
body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__submenu > .rw-sidebar__item--current > .rw-sidebar__link,
html[data-rw-theme-state="dark"] body.rw-has-sidebar .rw-sidebar__submenu>.rw-sidebar__item>.rw-sidebar__link:hover,body.global-color-scheme-light.rw-has-sidebar .rw-sidebar__submenu>.rw-sidebar__item>.rw-sidebar__link:hover{background:transparent!important;background-color:transparent!important}