:root {
    --dlm-dark-bg: #111315;
    --dlm-dark-surface: #1a1d21;
    --dlm-dark-surface-2: #22262b;
    --dlm-dark-text: #f3f4f6;
    --dlm-dark-muted: #aeb4bd;
    --dlm-dark-border: #343941;
    --dlm-dark-primary: #4fb3a8;
    --dlm-toggle-bg: #f2f3f5;
    --dlm-toggle-text: #24272b;
    --dlm-toggle-border: rgba(20, 24, 28, .1);
}

html.dlm-is-switching body,
html.dlm-is-switching .website-wrapper,
html.dlm-is-switching .main-page-wrapper {
    transition: background-color .14s ease, color .14s ease !important;
}

.dlm-toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--dlm-toggle-text) !important;
    font-family: Estedad, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dlm-toggle:hover,
.dlm-toggle:focus,
.dlm-toggle:active {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: var(--dlm-toggle-text) !important;
    box-shadow: none !important;
    transform: none !important;
}

.dlm-toggle:focus-visible {
    outline: 1px dashed currentColor;
    outline-offset: 4px;
}

.dlm-toggle__text {
    display: inline-block;
    font-family: Estedad, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.dlm-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    line-height: 0;
}

.dlm-toggle__icon img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 30px !important;
    max-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dlm-toggle__icon--moon img {
    width: 27px !important;
    height: 27px !important;
}

.dlm-toggle__icon--sun img {
    width: 30px !important;
    height: 30px !important;
}

.dlm-toggle__icon--sun { display: none; }
html[data-dlm-theme="dark"] .dlm-toggle__icon--moon { display: none; }
html[data-dlm-theme="dark"] .dlm-toggle__icon--sun { display: inline-flex; }

html[data-dlm-theme="dark"] {
    --dlm-toggle-bg: var(--dlm-dark-surface-2);
    --dlm-toggle-text: var(--dlm-dark-text);
    --dlm-toggle-border: var(--dlm-dark-border);
}

html[data-dlm-theme="dark"] body {
    background-color: var(--dlm-dark-bg) !important;
    color: var(--dlm-dark-text);
}

html[data-dlm-theme="dark"] body,
html[data-dlm-theme="dark"] body p,
html[data-dlm-theme="dark"] body li,
html[data-dlm-theme="dark"] body dd,
html[data-dlm-theme="dark"] body dt,
html[data-dlm-theme="dark"] body label,
html[data-dlm-theme="dark"] body legend,
html[data-dlm-theme="dark"] body address,
html[data-dlm-theme="dark"] body blockquote {
    color: var(--dlm-dark-text);
}

html[data-dlm-theme="dark"] body h1,
html[data-dlm-theme="dark"] body h2,
html[data-dlm-theme="dark"] body h3,
html[data-dlm-theme="dark"] body h4,
html[data-dlm-theme="dark"] body h5,
html[data-dlm-theme="dark"] body h6,
html[data-dlm-theme="dark"] body .title,
html[data-dlm-theme="dark"] body .entry-title,
html[data-dlm-theme="dark"] body .page-title {
    color: var(--dlm-dark-text);
}

html[data-dlm-theme="dark"] body a:not(.button):not(.btn):not([class*="button"]):not(.dlm-ignore *) {
    color: inherit;
}

html[data-dlm-theme="dark"] body hr,
html[data-dlm-theme="dark"] body fieldset,
html[data-dlm-theme="dark"] body table,
html[data-dlm-theme="dark"] body th,
html[data-dlm-theme="dark"] body td {
    border-color: var(--dlm-dark-border);
}

html[data-dlm-theme="dark"] body input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
html[data-dlm-theme="dark"] body textarea,
html[data-dlm-theme="dark"] body select {
    background-color: var(--dlm-dark-surface-2) !important;
    color: var(--dlm-dark-text) !important;
    border-color: var(--dlm-dark-border) !important;
}

html[data-dlm-theme="dark"] body input::placeholder,
html[data-dlm-theme="dark"] body textarea::placeholder {
    color: var(--dlm-dark-muted) !important;
    opacity: 1;
}

html[data-dlm-theme="dark"] body code,
html[data-dlm-theme="dark"] body pre,
html[data-dlm-theme="dark"] body kbd {
    background-color: var(--dlm-dark-surface-2);
    color: var(--dlm-dark-text);
    border-color: var(--dlm-dark-border);
}

/* Hello Elementor and Elementor */
html[data-dlm-theme="dark"] body.theme-hello-elementor,
html[data-dlm-theme="dark"] body.theme-hello-elementor .site-main,
html[data-dlm-theme="dark"] body.theme-hello-elementor .site-header,
html[data-dlm-theme="dark"] body.theme-hello-elementor .site-footer,
html[data-dlm-theme="dark"] body.theme-hello-elementor .page-header,
html[data-dlm-theme="dark"] body.theme-hello-elementor .elementor-location-header,
html[data-dlm-theme="dark"] body.theme-hello-elementor .elementor-location-footer,
html[data-dlm-theme="dark"] body.theme-hello-elementor .elementor-location-single,
html[data-dlm-theme="dark"] body.theme-hello-elementor .elementor-location-archive,
html[data-dlm-theme="dark"] body.theme-hello-elementor .elementor-section-wrap,
html[data-dlm-theme="dark"] body.theme-hello-elementor .e-con.e-parent:not(.dlm-ignore):not([data-dlm-ignore]) {
    background-color: var(--dlm-dark-bg);
    color: var(--dlm-dark-text);
}

html[data-dlm-theme="dark"] body .elementor-widget-text-editor,
html[data-dlm-theme="dark"] body .elementor-widget-heading .elementor-heading-title,
html[data-dlm-theme="dark"] body .elementor-icon-list-text,
html[data-dlm-theme="dark"] body .elementor-tab-title,
html[data-dlm-theme="dark"] body .elementor-tab-content,
html[data-dlm-theme="dark"] body .elementor-accordion-title,
html[data-dlm-theme="dark"] body .elementor-toggle-title {
    color: var(--dlm-dark-text);
}

/* Woodmart */
html[data-dlm-theme="dark"] body.theme-woodmart,
html[data-dlm-theme="dark"] body.theme-woodmart .website-wrapper,
html[data-dlm-theme="dark"] body.theme-woodmart .main-page-wrapper,
html[data-dlm-theme="dark"] body.theme-woodmart .page-title,
html[data-dlm-theme="dark"] body.theme-woodmart .footer-container,
html[data-dlm-theme="dark"] body.theme-woodmart .copyrights-wrapper,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-page-content {
    background-color: var(--dlm-dark-bg) !important;
    color: var(--dlm-dark-text);
}

html[data-dlm-theme="dark"] body.theme-woodmart .whb-header,
html[data-dlm-theme="dark"] body.theme-woodmart .whb-general-header,
html[data-dlm-theme="dark"] body.theme-woodmart .whb-main-header,
html[data-dlm-theme="dark"] body.theme-woodmart .whb-header-bottom,
html[data-dlm-theme="dark"] body.theme-woodmart .whb-sticky-header,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-header-nav,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-dropdown,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-side-hidden,
html[data-dlm-theme="dark"] body.theme-woodmart .mobile-nav,
html[data-dlm-theme="dark"] body.theme-woodmart .cart-widget-side,
html[data-dlm-theme="dark"] body.theme-woodmart .login-form-side,
html[data-dlm-theme="dark"] body.theme-woodmart .searchform,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-search-full-screen {
    background-color: var(--dlm-dark-surface) !important;
    color: var(--dlm-dark-text) !important;
    border-color: var(--dlm-dark-border) !important;
}

html[data-dlm-theme="dark"] body.theme-woodmart .wd-nav > li > a,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-header-nav a,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-tools-text,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-tools-icon,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-dropdown a,
html[data-dlm-theme="dark"] body.theme-woodmart .mobile-nav a,
html[data-dlm-theme="dark"] body.theme-woodmart .menu-item a {
    color: var(--dlm-dark-text);
}

html[data-dlm-theme="dark"] body.theme-woodmart .product-grid-item,
html[data-dlm-theme="dark"] body.theme-woodmart .product-list-item,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-product,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-hover-with-fade .content-product-imagin,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-widget,
html[data-dlm-theme="dark"] body.theme-woodmart .widget,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-info-box,
html[data-dlm-theme="dark"] body.theme-woodmart .wd-post,
html[data-dlm-theme="dark"] body.theme-woodmart article.post {
    background-color: var(--dlm-dark-surface) !important;
    color: var(--dlm-dark-text);
    border-color: var(--dlm-dark-border) !important;
}

/* WooCommerce */
html[data-dlm-theme="dark"] body.woocommerce,
html[data-dlm-theme="dark"] body.woocommerce-page,
html[data-dlm-theme="dark"] body .woocommerce,
html[data-dlm-theme="dark"] body .woocommerce-page {
    color: var(--dlm-dark-text);
}

html[data-dlm-theme="dark"] body .woocommerce-message,
html[data-dlm-theme="dark"] body .woocommerce-info,
html[data-dlm-theme="dark"] body .woocommerce-error,
html[data-dlm-theme="dark"] body .cart_totals,
html[data-dlm-theme="dark"] body .woocommerce-checkout-review-order,
html[data-dlm-theme="dark"] body .woocommerce-MyAccount-navigation,
html[data-dlm-theme="dark"] body .woocommerce-MyAccount-content,
html[data-dlm-theme="dark"] body .woocommerce-order-details,
html[data-dlm-theme="dark"] body .woocommerce-customer-details,
html[data-dlm-theme="dark"] body .shop_table,
html[data-dlm-theme="dark"] body .mini_cart_item,
html[data-dlm-theme="dark"] body .widget_shopping_cart_content {
    background-color: var(--dlm-dark-surface) !important;
    color: var(--dlm-dark-text) !important;
    border-color: var(--dlm-dark-border) !important;
}

html[data-dlm-theme="dark"] body .woocommerce table.shop_table th,
html[data-dlm-theme="dark"] body .woocommerce table.shop_table td,
html[data-dlm-theme="dark"] body .woocommerce-checkout-review-order-table th,
html[data-dlm-theme="dark"] body .woocommerce-checkout-review-order-table td {
    border-color: var(--dlm-dark-border) !important;
    color: var(--dlm-dark-text) !important;
}

html[data-dlm-theme="dark"] body .woocommerce a.remove {
    color: var(--dlm-dark-text) !important;
}

html[data-dlm-theme="dark"] body .select2-container--default .select2-selection--single,
html[data-dlm-theme="dark"] body .select2-container--default .select2-selection--multiple,
html[data-dlm-theme="dark"] body .select2-dropdown,
html[data-dlm-theme="dark"] body .select2-search__field,
html[data-dlm-theme="dark"] body .select2-results__option {
    background-color: var(--dlm-dark-surface-2) !important;
    color: var(--dlm-dark-text) !important;
    border-color: var(--dlm-dark-border) !important;
}

html[data-dlm-theme="dark"] body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--dlm-dark-primary) !important;
    color: #fff !important;
}

/* Common overlays, cards and menus */
html[data-dlm-theme="dark"] body .modal,
html[data-dlm-theme="dark"] body .modal-content,
html[data-dlm-theme="dark"] body .dialog-widget-content,
html[data-dlm-theme="dark"] body .elementor-popup-modal .dialog-widget-content,
html[data-dlm-theme="dark"] body .offcanvas,
html[data-dlm-theme="dark"] body .dropdown-menu,
html[data-dlm-theme="dark"] body .sub-menu,
html[data-dlm-theme="dark"] body .widget-area,
html[data-dlm-theme="dark"] body .sidebar-container,
html[data-dlm-theme="dark"] body .comments-area,
html[data-dlm-theme="dark"] body .comment-body {
    background-color: var(--dlm-dark-surface) !important;
    color: var(--dlm-dark-text) !important;
    border-color: var(--dlm-dark-border) !important;
}

html[data-dlm-theme="dark"] body .dlm-ignore,
html[data-dlm-theme="dark"] body [data-dlm-ignore] {
    color-scheme: light;
}

html[data-dlm-theme="dark"] body img,
html[data-dlm-theme="dark"] body video,
html[data-dlm-theme="dark"] body iframe,
html[data-dlm-theme="dark"] body canvas,
html[data-dlm-theme="dark"] body svg {
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    html.dlm-is-switching body,
    html.dlm-is-switching .website-wrapper,
    html.dlm-is-switching .main-page-wrapper {
        transition: none !important;
    }
}

/* Version 1.1.0: stronger text and automatic container handling */
.dlm-toggle,
.dlm-toggle:hover,
.dlm-toggle:focus,
.dlm-toggle:active {
    min-height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--dlm-toggle-text) !important;
    font-family: Estedad, sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.dlm-toggle,
.dlm-toggle * {
    font-family: Estedad, sans-serif !important;
}

html[data-dlm-theme="dark"] body :where(
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    li,
    dd,
    dt,
    label,
    legend,
    address,
    blockquote,
    figcaption,
    caption
):not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body :where(
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    li,
    dd,
    dt,
    label,
    legend,
    address,
    blockquote,
    figcaption,
    caption
):not(.dlm-ignore):not([data-dlm-ignore]) * {
    color: var(--dlm-dark-text) !important;
}

html[data-dlm-theme="dark"] body .elementor-widget-text-editor,
html[data-dlm-theme="dark"] body .elementor-widget-text-editor *,
html[data-dlm-theme="dark"] body .elementor-widget-heading .elementor-heading-title,
html[data-dlm-theme="dark"] body .elementor-widget-heading .elementor-heading-title *,
html[data-dlm-theme="dark"] body .elementor-icon-list-text,
html[data-dlm-theme="dark"] body .elementor-tab-title,
html[data-dlm-theme="dark"] body .elementor-tab-content,
html[data-dlm-theme="dark"] body .elementor-accordion-title,
html[data-dlm-theme="dark"] body .elementor-toggle-title,
html[data-dlm-theme="dark"] body .wd-text-block,
html[data-dlm-theme="dark"] body .wd-text-block *,
html[data-dlm-theme="dark"] body .wd-title,
html[data-dlm-theme="dark"] body .wd-title *,
html[data-dlm-theme="dark"] body .entry-content,
html[data-dlm-theme="dark"] body .entry-content > :not(.dlm-ignore):not([data-dlm-ignore]) {
    color: var(--dlm-dark-text) !important;
}

/* Fast direct coverage for common Elementor and Woodmart containers. */
html[data-dlm-theme="dark"] body .website-wrapper,
html[data-dlm-theme="dark"] body .main-page-wrapper,
html[data-dlm-theme="dark"] body .wd-page-content,
html[data-dlm-theme="dark"] body main.site-main {
    background-color: var(--dlm-dark-bg) !important;
}

html[data-dlm-theme="dark"] body .e-con:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .e-con-inner:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .elementor-section:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .elementor-column > .elementor-widget-wrap:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .elementor-widget-container:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .wd-widget:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .widget:not(.dlm-ignore):not([data-dlm-ignore]) {
    border-color: var(--dlm-dark-border) !important;
}

html[data-dlm-theme="dark"] body [data-dlm-auto-bg="base"]:not(.dlm-ignore):not([data-dlm-ignore]) {
    background-color: var(--dlm-dark-bg) !important;
}

html[data-dlm-theme="dark"] body [data-dlm-auto-bg="surface"]:not(.dlm-ignore):not([data-dlm-ignore]) {
    background-color: var(--dlm-dark-surface) !important;
}

html[data-dlm-theme="dark"] body [data-dlm-auto-bg="surface-2"]:not(.dlm-ignore):not([data-dlm-ignore]) {
    background-color: var(--dlm-dark-surface-2) !important;
}

html[data-dlm-theme="dark"] body [data-dlm-auto-gradient="1"]:not(.dlm-ignore):not([data-dlm-ignore]) {
    background-image: none !important;
}

html[data-dlm-theme="dark"] body .elementor-section:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .elementor-column > .elementor-widget-wrap:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .e-con:not(.dlm-ignore):not([data-dlm-ignore]),
html[data-dlm-theme="dark"] body .e-con-inner:not(.dlm-ignore):not([data-dlm-ignore]) {
    border-color: var(--dlm-dark-border) !important;
}

@media (max-width: 767px) {
    .dlm-toggle,
    .dlm-toggle:hover,
    .dlm-toggle:focus,
    .dlm-toggle:active {
        min-height: auto !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 16px !important;
    }
}

/* Woodmart logo replacement in dark mode */
html[data-dlm-theme="dark"] body .wd-logo img {
    object-fit: contain !important;
    object-position: center !important;
}
