/**
 * Gymarket Foundation day/night appearance.
 * The brand palette is centralized here so Vira and future public modules can
 * consume the same variables without owning duplicate color values.
 */

:root {
    --gm-brand-navy: #052441;
    --gm-brand-navy-deep: #061426;
    --gm-brand-navy-soft: #0b3153;
    --gm-brand-blue: #4482ad;
    --gm-brand-blue-hover: #39769f;
    --gm-brand-green: #18c83e;
    --gm-brand-green-hover: #12b737;

    --gmf-page-bg: #ffffff;
    --gmf-surface: #ffffff;
    --gmf-surface-soft: #f5f8fb;
    --gmf-surface-raised: #ffffff;
    --gmf-text-primary: #172b3d;
    --gmf-text-secondary: #617386;
    --gmf-border: #e2e8ee;
    --gmf-shadow: rgba(7, 31, 59, .10);
    --gmf-field-bg: #ffffff;
    --gmf-link: #17689f;

    /* Semantic contract consumed by content-facing plugins. Foundation owns
     * theme meaning; feature plugins own their component selectors. */
    --gmf-content-heading: #172b3d;
    --gmf-content-text: #43576a;
    --gmf-content-muted: #6b7d8f;
    --gmf-content-link: #17689f;
    --gmf-content-surface: #ffffff;
    --gmf-content-surface-soft: #f5f8fb;
    --gmf-content-border: #e2e8ee;
    --gmf-content-accent: #0e9f6e;
    --gmf-content-accent-soft: #dff8ed;
    --gmf-content-on-accent: #ffffff;
}

html[data-gmf-theme="light"] {
    color-scheme: light;
}

html[data-gmf-theme="dark"] {
    color-scheme: dark;
    --gmf-page-bg: #061426;
    --gmf-surface: #0a1e35;
    --gmf-surface-soft: #0e2742;
    --gmf-surface-raised: #102c49;
    --gmf-text-primary: #f3f7fb;
    --gmf-text-secondary: #d0d9e2;
    --gmf-border: rgba(226, 237, 247, .13);
    --gmf-shadow: rgba(0, 0, 0, .32);
    --gmf-field-bg: #0d2742;
    --gmf-link: #7dc9fb;

    --gmf-content-heading: #f6f9fc;
    --gmf-content-text: #d3dde7;
    --gmf-content-muted: #aebdca;
    --gmf-content-link: #86d0ff;
    --gmf-content-surface: #0a1e35;
    --gmf-content-surface-soft: #102943;
    --gmf-content-border: rgba(226, 237, 247, .16);
    --gmf-content-accent: #45d6a3;
    --gmf-content-accent-soft: rgba(69, 214, 163, .14);
    --gmf-content-on-accent: #041b2f;

    /* WoodMart consumes these variables throughout products, widgets and forms. */
    --wd-text-color: var(--gmf-text-secondary);
    --wd-title-color: var(--gmf-text-primary);
    --wd-link-color: var(--gmf-text-primary);
    --wd-link-color-hover: #8ed4ff;
    --wd-form-color: var(--gmf-text-primary);
    --wd-form-placeholder-color: #8296a9;
    --wd-form-brd-color: rgba(226, 237, 247, .20);
    --wd-form-brd-color-focus: #63b7ed;
    --bgcolor-white: var(--gmf-surface);
    --bgcolor-gray-100: #0d233b;
    --bgcolor-gray-200: #102943;
    --bgcolor-gray-300: #18344f;
    --bgcolor-gray-400: #24415d;
    --color-gray-300: #7e93a6;
    --color-gray-400: #91a4b5;
    --color-gray-500: #a7b7c5;
    --color-gray-600: #becbd5;
    --color-gray-700: #d4dee6;
    --color-gray-800: #e7edf2;
    --color-gray-900: #f5f8fb;
}

html[data-gmf-theme] body:not(.wp-admin) {
    background-color: var(--gmf-page-bg);
    color: var(--gmf-text-secondary);
}

html[data-gmf-theme="light"] body:not(.wp-admin),
html[data-gmf-theme="light"] body:not(.wp-admin) :where(.website-wrapper, .main-page-wrapper, .site-content) {
    background-color: #ffffff;
}

/* Keep large structural wrappers visually flat so dark mode does not create a
 * second navy card/frame around the page content, especially for logged-in
 * users with the admin bar visible. Only smaller functional surfaces should
 * receive dark cards. */
html[data-gmf-theme] body:not(.wp-admin) :where(
    .website-wrapper,
    .main-page-wrapper,
    .site-content,
    .wd-content-layout,
    .content-layout-wrapper,
    .page-wrapper,
    .wd-page-content,
    .content-area,
    .site-main,
    .wd-sidebar,
    .wd-fill,
    .page-type-default
) {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.entry-content, .page-content, .term-description, .woocommerce, .woocommerce-MyAccount-content, .woocommerce-product-details__short-description) {
    color: var(--gmf-text-secondary);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.entry-content, .page-content, .term-description, .woocommerce, .woocommerce-MyAccount-content) :where(h1, h2, h3, h4, h5, h6, strong) {
    color: var(--gmf-text-primary);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.entry-content, .page-content, .term-description, .woocommerce, .woocommerce-MyAccount-content) a:not(.button):not(.btn) {
    color: var(--gmf-link);
}

/* Generic WoodMart/WooCommerce surfaces. Intentionally excludes the independent
 * header, announcement bar and Vira's bespoke amazing-offers canvas. */
html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .wd-dropdown,
    .wd-side-hidden,
    .widget,
    .widget-area,
    .woocommerce-form,
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content,
    .woocommerce-cart-form,
    .cart-totals-inner,
    .woocommerce-checkout-review-order,
    .checkout-order-review,
    .payment_methods,
    .woocommerce-tabs,
    .product-tabs-wrapper,
    .comments-area,
    .comment-body,
    .wd-dashboard,
    .wd-my-account-sidebar,
    .wd-empty-page,
    .wd-hover-with-fade .content-product-imagin
):not(.gmh):not(.gmf-announcement-bar):not(.vira-amazing-page) {
    background-color: var(--gmf-surface);
    border-color: var(--gmf-border);
    color: var(--gmf-text-secondary);
    box-shadow: none;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    textarea,
    select,
    .select2-selection,
    .select2-dropdown,
    .select2-search__field
):not(.gmh-search input):not(.gmh-mobile-search input) {
    color: var(--gmf-text-primary) !important;
    background-color: var(--gmf-field-bg) !important;
    border-color: var(--gmf-border) !important;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(input, textarea)::placeholder {
    color: #8296a9 !important;
    opacity: 1;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(table, th, td, tr, .shop_table, .woocommerce table.shop_table) {
    border-color: var(--gmf-border);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.shop_table, .woocommerce table.shop_table) {
    color: var(--gmf-text-secondary);
    background-color: var(--gmf-surface);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.shop_table th, .shop_table strong, .woocommerce table.shop_table th) {
    color: var(--gmf-text-primary);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-warning) {
    color: var(--gmf-text-primary);
    background-color: var(--gmf-surface-raised);
    border-color: var(--gmf-border);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.breadcrumbs, .woocommerce-breadcrumb, .wd-breadcrumbs, .wd-product-brands, .product_meta, .posted_in, .tagged_as, .woocommerce-result-count) {
    color: var(--gmf-text-secondary);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .entry-content,
    .page-content,
    .term-description,
    .woocommerce,
    .woocommerce-page,
    .single-product,
    .single-product-page,
    .single-product-content,
    .summary-inner,
    .product_title,
    .woocommerce-tabs,
    .woocommerce-tabs .wd-nav,
    .woocommerce-tabs .tabs-layout-tabs,
    .woocommerce-tabs .tabs-layout-accordion,
    .woocommerce-Tabs-panel,
    .shop-loop-head,
    .wd-products,
    .wd-entities-title,
    .wd-entities-title a,
    .price,
    .amount,
    .stock,
    .sku_wrapper,
    .posted_in,
    .tagged_as,
    .wd-accordion-title,
    .wd-accordion-content,
    .page-title,
    .page-title h1,
    .cart_totals,
    .woocommerce-checkout,
    .woocommerce-account,
    .woocommerce-Addresses,
    .woocommerce-orders-table,
    .woocommerce-table,
    .woocommerce-order-details,
    .woocommerce-customer-details,
    .woocommerce-product-attributes,
    .woocommerce-product-attributes th,
    .woocommerce-product-attributes td,
    .wc-tabs-wrapper
) {
    color: var(--gmf-text-secondary);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .product_title,
    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6,
    .page-content h1,
    .page-content h2,
    .page-content h3,
    .page-content h4,
    .page-content h5,
    .page-content h6,
    .term-description h1,
    .term-description h2,
    .term-description h3,
    .term-description h4,
    .term-description h5,
    .term-description h6,
    .woocommerce-tabs .wd-nav-tabs > li > a,
    .woocommerce-tabs .wd-accordion-title,
    .woocommerce-product-attributes th,
    .shop_attributes th,
    .wd-entities-title a,
    .page-title h1,
    .amount,
    .price,
    .stock.in-stock,
    .stock.available-on-backorder,
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table strong
) {
    color: var(--gmf-text-primary) !important;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .woocommerce-tabs .wd-nav-tabs > li:not(.active) > a,
    .woocommerce-tabs .wd-nav > li:not(.wd-active) > a,
    .breadcrumbs,
    .woocommerce-breadcrumb,
    .wd-breadcrumbs,
    .product_meta,
    .product_meta a,
    .posted_in a,
    .tagged_as a,
    .sku_wrapper,
    .wd-product-cats,
    .wd-product-cats a,
    .wd-product-brands,
    .wd-product-brands a,
    .woocommerce-review-link,
    .woocommerce-result-count,
    .wd-nav-product-cat a,
    .wd-nav-product-cat span
) {
    color: var(--gmf-text-secondary) !important;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .woocommerce-tabs .wd-nav-tabs > li.active > a,
    .woocommerce-tabs .wd-nav > li.wd-active > a,
    .woocommerce-tabs .wd-nav-tabs > li:hover > a,
    .woocommerce-tabs .wd-nav > li:hover > a,
    .wd-entities-title a:hover,
    .product_meta a:hover,
    .posted_in a:hover,
    .tagged_as a:hover,
    .wd-product-cats a:hover,
    .wd-product-brands a:hover
) {
    color: #8ed4ff !important;
}

/* Foundation deliberately limits generic typography to plain content nodes.
 * Component internals are styled by their owning plugin through the semantic
 * variables above. This prevents one global !important rule from flattening
 * headings, badges and cards into a single color. */
html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .entry-content,
    .page-content,
    .term-description,
    .woocommerce-product-details__short-description,
    .woocommerce-Tabs-panel
) > :where(p, ul, ol, dl) {
    color: var(--gmf-content-text);
    opacity: 1;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .entry-content,
    .page-content,
    .term-description,
    .woocommerce-product-details__short-description,
    .woocommerce-Tabs-panel
) > :where(h1, h2, h3, h4, h5, h6) {
    color: var(--gmf-content-heading);
    opacity: 1;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(.footer-container, .copyrights-wrapper) {
    border-color: var(--gmf-border);
}

/* A theme change can otherwise start hundreds of existing component
 * background/border transitions at once. Keep the switch itself responsive but
 * apply the page palette in a single paint. This class exists for two frames. */
html.gmf-theme-switching body,
html.gmf-theme-switching body *,
html.gmf-theme-switching body *::before,
html.gmf-theme-switching body *::after {
    transition-property: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* The page palette switches in one paint, but the tiny switch itself keeps its
 * local movement so the control still feels physical and responsive. */
html.gmf-theme-switching .gmf-theme-switch__control {
    transition-property: transform, box-shadow, border-color, background-color !important;
    transition-duration: .16s, .18s, .18s, .18s !important;
    transition-timing-function: ease !important;
}

html.gmf-theme-switching .gmf-theme-switch__knob {
    transition-property: left, background, border-color, box-shadow !important;
    transition-duration: .22s, .18s, .18s, .18s !important;
    transition-timing-function: cubic-bezier(.2, .78, .24, 1), ease, ease, ease !important;
}

html.gmf-theme-switching .gmf-theme-switch__label,
html.gmf-theme-switching .gmf-theme-switch__icon {
    transition-property: opacity, transform !important;
    transition-duration: .14s, .22s !important;
    transition-timing-function: ease !important;
}

/* Single premium switch: the text, sky and knob all change together.
 * It uses only CSS gradients and the inline SVGs already shipped by Foundation,
 * so no image request or heavy animation is added to the header. */
.gmf-theme-switch {
    --gmf-theme-switch-width: 108px;
    --gmf-theme-switch-height: 40px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    direction: ltr;
    width: var(--gmf-theme-switch-width);
    height: var(--gmf-theme-switch-height);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.gmf-theme-switch__control {
    position: relative;
    isolation: isolate;
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    appearance: none;
    border: 1px solid rgba(62, 154, 198, .24) !important;
    border-radius: 999px !important;
    color: #1678aa !important;
    cursor: pointer;
    line-height: 1;
    background:
        radial-gradient(circle at 15% 95%, rgba(255, 255, 255, .72) 0 16%, transparent 17%),
        radial-gradient(circle at 35% 108%, rgba(255, 255, 255, .62) 0 22%, transparent 23%),
        radial-gradient(circle at 55% 104%, rgba(255, 255, 255, .38) 0 17%, transparent 18%),
        linear-gradient(135deg, #c8f4fb 0%, #a9e7f6 54%, #dff9fd 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .90),
        inset 0 -1px 0 rgba(46, 141, 184, .14),
        0 5px 13px rgba(5, 36, 65, .16) !important;
    transform: translateZ(0);
    transition: transform .16s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.gmf-theme-switch__control::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 1px 5px auto 12px;
    height: 42%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .44), transparent);
    pointer-events: none;
}

.gmf-theme-switch__label {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    direction: rtl;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -.25px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .38);
    pointer-events: none;
    transition: opacity .14s ease, transform .18s ease;
}

.gmf-theme-switch__label--light {
    left: 7px;
    right: 39px;
    color: #197da9;
    opacity: 1;
    transform: translateX(0);
}

.gmf-theme-switch__label--dark {
    left: 39px;
    right: 7px;
    color: #f5f8ff;
    opacity: 0;
    transform: translateX(5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .32);
}

.gmf-theme-switch__knob {
    position: absolute;
    z-index: 2;
    top: 3px;
    left: calc(100% - 37px);
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff 0%, #edfaff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        0 3px 8px rgba(15, 105, 148, .24),
        0 0 0 1px rgba(43, 147, 194, .12);
    pointer-events: none;
    transition: left .22s cubic-bezier(.2, .78, .24, 1), background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gmf-theme-switch__icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity .14s ease, transform .22s ease;
}

.gmf-theme-switch__icon svg {
    display: block;
    width: 21px;
    height: 21px;
    pointer-events: none;
}

.gmf-theme-switch__icon--sun {
    color: #f6a800;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.gmf-theme-switch__icon--sun svg {
    fill: #ffc928;
    stroke: #f2a000;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(231, 145, 0, .22));
}

.gmf-theme-switch__icon--moon {
    color: #ffe178;
    opacity: 0;
    transform: rotate(-22deg) scale(.72);
}

.gmf-theme-switch__icon--moon svg {
    fill: #ffe178;
    stroke: #ffd34e;
    stroke-width: 1.15;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(255, 220, 103, .30));
}

html[data-gmf-theme="dark"] .gmf-theme-switch__control {
    color: #eef3ff !important;
    border-color: rgba(150, 166, 255, .32) !important;
    background:
        radial-gradient(circle at 17% 28%, #ffe45b 0 1px, transparent 1.5px),
        radial-gradient(circle at 35% 68%, rgba(255, 255, 255, .90) 0 1px, transparent 1.5px),
        radial-gradient(circle at 51% 24%, rgba(255, 255, 255, .78) 0 1px, transparent 1.5px),
        radial-gradient(circle at 73% 67%, #ffe45b 0 1px, transparent 1.5px),
        radial-gradient(circle at 89% 31%, rgba(255, 255, 255, .86) 0 1px, transparent 1.5px),
        radial-gradient(ellipse at 72% 111%, rgba(78, 78, 166, .78) 0 30%, transparent 31%),
        radial-gradient(ellipse at 50% 117%, rgba(58, 61, 139, .88) 0 34%, transparent 35%),
        linear-gradient(135deg, #141b46 0%, #25265e 52%, #34347a 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        inset 0 -1px 0 rgba(4, 8, 31, .42),
        0 5px 14px rgba(0, 0, 0, .30) !important;
}

html[data-gmf-theme="dark"] .gmf-theme-switch__label--light {
    opacity: 0;
    transform: translateX(-5px);
}

html[data-gmf-theme="dark"] .gmf-theme-switch__label--dark {
    opacity: 1;
    transform: translateX(0);
}

html[data-gmf-theme="dark"] .gmf-theme-switch__knob {
    left: 3px;
    border-color: rgba(154, 164, 255, .42);
    background: linear-gradient(145deg, #42469a 0%, #252962 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 3px 9px rgba(0, 0, 0, .34),
        0 0 0 1px rgba(133, 143, 255, .14);
}

html[data-gmf-theme="dark"] .gmf-theme-switch__icon--sun {
    opacity: 0;
    transform: rotate(30deg) scale(.72);
}

html[data-gmf-theme="dark"] .gmf-theme-switch__icon--moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.gmf-theme-switch__control:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .88),
        0 7px 16px rgba(5, 36, 65, .20) !important;
}

html[data-gmf-theme="dark"] .gmf-theme-switch__control:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .15),
        0 7px 17px rgba(0, 0, 0, .36) !important;
}

.gmf-theme-switch__control:active {
    transform: translateY(0) scale(.985);
}

.gmf-theme-switch__control:focus-visible {
    outline: 3px solid #77d1ff !important;
    outline-offset: 3px;
}

.gmh-actions .gmf-theme-switch {
    margin-inline: 2px 4px;
}

.gmh-mobile-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 10px 11px;
    color: #233d53;
    background: #f2f7fb;
    border: 1px solid #dbe7ef;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 850;
}

.gmh-mobile-theme-row .gmf-theme-switch {
    --gmf-theme-switch-width: 116px;
}

/* Backward-compatible fallback for HTML that may still be served from a page
 * cache created by 0.3.78. It disappears automatically once that cache clears. */
.gmf-theme-switch__button {
    display: grid !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border: 1px solid rgba(5, 36, 65, .14) !important;
    border-radius: 10px !important;
    color: var(--gm-brand-navy) !important;
    background: #fff !important;
    cursor: pointer;
}

.gmf-theme-switch__button + .gmf-theme-switch__button {
    margin-left: 4px !important;
    color: #fff !important;
    background: var(--gm-brand-navy) !important;
}

.gmf-theme-switch__button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gmf-theme-switch__button[aria-pressed="true"] {
    box-shadow: 0 0 0 2px var(--gm-brand-green) !important;
}

.gmf-theme-switch__button:focus-visible {
    outline: 3px solid #83d2ff !important;
    outline-offset: 2px;
}

html[data-gmf-theme="dark"] body:not(.wp-admin) :where(
    .wd-products .product-grid-item,
    .wd-products .product-wrapper,
    .wd-products .product-element-top,
    .wd-products .wrap-price,
    .wd-products .wd-entities-title,
    .wd-products .wd-entities-title a
) {
    color: var(--gmf-text-primary);
}

html[data-gmf-theme="dark"] body:not(.wp-admin) .wd-products .product-wrapper,
html[data-gmf-theme="dark"] body:not(.wp-admin) .wd-products .product-grid-item {
    background-color: var(--gmf-surface);
    border-color: var(--gmf-border);
}

@media (max-width: 1100px) {
    .gmh-actions > .gmf-theme-switch {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-gmf-theme] body,
    html[data-gmf-theme] body *,
    .gmf-theme-switch__control,
    .gmf-theme-switch__knob,
    .gmf-theme-switch__label,
    .gmf-theme-switch__icon,
    .gmf-theme-switch__button {
        transition-duration: .01ms !important;
    }
}

/* 0.4.43 — keep the appearance switch complete at every reflow/zoom stage. */
@media (max-width: 620px) {
    .gmh-mobile-theme-row {
        gap: 10px;
        margin-bottom: 9px;
        padding: 8px 9px;
        font-size: 12.5px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch {
        --gmf-theme-switch-width: 102px;
        --gmf-theme-switch-height: 36px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__label {
        font-size: 10px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__label--light {
        left: 6px;
        right: 35px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__label--dark {
        left: 35px;
        right: 6px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__knob {
        top: 2px;
        left: calc(100% - 34px);
        width: 30px;
        height: 30px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__icon svg {
        width: 18px;
        height: 18px;
    }

    html[data-gmf-theme="dark"] .gmh-mobile-theme-row .gmf-theme-switch__knob {
        left: 2px;
    }
}

@media (max-width: 340px) {
    .gmh-mobile-theme-row {
        gap: 7px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch {
        --gmf-theme-switch-width: 58px;
        --gmf-theme-switch-height: 32px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__label {
        display: none;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__control::after {
        inset: 1px 6px auto 6px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__knob {
        top: 2px;
        left: calc(100% - 30px);
        width: 27px;
        height: 27px;
    }

    .gmh-mobile-theme-row .gmf-theme-switch__icon svg {
        width: 16px;
        height: 16px;
    }

    html[data-gmf-theme="dark"] .gmh-mobile-theme-row .gmf-theme-switch__knob {
        left: 2px;
    }
}
