.option-description-text {
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.9;
}

.qtip {
    font-size: 12.5px;
    line-height: 14px;
}

.mageworx-hidden {
    display: none !important;
}

.mageworx-product-final-price{
    min-height: 78px;
    font-weight: 600;
}

.mageworx-shareable-link-container {
    width: fit-content;
    padding: 10px;
}

.mageworx-shareable-link-icon {
    display: inline-block;
}

.mageworx-shareable-hint-icon {
    display: inline-block;
    margin-left: 5px;
}

.mageworx-shareable-link-text {
    display: inline-block;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    margin-left: 5px;
}

.mageworx-shareable-link-text a:hover {
    cursor: pointer;
}

.mageworx-shareable-link-success-container {
    width: fit-content;
    padding: 10px;
    background: #F7F7F7;
    border-radius: 3px;
}

.mageworx-option-slider {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    margin: 1.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

.mageworx-option-slider__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px; /* Space for tooltip */
}

.mageworx-option-slider__title {
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
}

.mageworx-option-slider__current-value {
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    padding: 4px 12px;
    color: #2563eb;
    background: #eff6ff;
    border: 1.5px solid #dbeafe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    top: var(--mw-slider-track-top, 35px);
    transform: translate(-50%, -100%) translateY(-10px);
    position: absolute;
    left: 0;
    white-space: nowrap;
    z-index: 5;
    font-weight: 500;
    border-radius: 10px;
    pointer-events: none;
    transition: left 0.15s ease-out, opacity 0.18s ease, transform 0.18s ease;
}

.mageworx-option-slider__range-container {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding: 35px 0 15px;
    min-height: 30px;
}

.mageworx-option-slider--allow-none {
    --mw-slider-none-width: 140px;
    --mw-slider-track-top: 35px;
    --mw-slider-track-height: var(--mw-slider-thumb-size, 32px);
    --mw-slider-track-bg: #e2e8f0;
    --mw-slider-none-bg: #6b7484;
    --mw-slider-none-bg-hover: #60697a;
    --mw-slider-none-bg-active: #566579;
    --mw-slider-none-glow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 18px rgba(59, 130, 246, 0.18);
    --mw-slider-fill-bg: #3b82f6;
    --mw-slider-thumb-border: #3b82f6;
    --mw-slider-thumb-size: 32px;
    --mw-slider-safe-gap: calc(var(--mw-slider-thumb-size, 32px) / 2);
    --mw-slider-anim-hide: 0.58s;
    --mw-slider-anim-reveal: 0.32s;
    --mw-slider-anim-move: 0.48s;
    --mw-slider-anim-ease: cubic-bezier(.22, .61, .36, 1);
}

.mageworx-option-slider--allow-none .mageworx-option-slider__range-container {
    min-height: 0;
    padding-bottom: calc(var(--mw-slider-track-height, 32px) + 15px);
}

.mageworx-option-slider--allow-none .mageworx-option-slider__range-track {
    top: var(--mw-slider-track-top, 35px);
    height: var(--mw-slider-track-height, 32px);
    background: transparent;
    border-radius: 0 999px 999px 0;
    overflow: visible;
    touch-action: none;
    user-select: none;
}

.mageworx-option-slider__range-zone {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--mw-slider-none-width, 190px);
    background: var(--mw-slider-track-bg, #e9eef6);
    border-radius: 0 999px 999px 0;
    overflow: hidden;
    transform-origin: left center;
    transition: transform var(--mw-slider-anim-hide, 0.58s) var(--mw-slider-anim-ease, ease),
        opacity var(--mw-slider-anim-hide, 0.58s) var(--mw-slider-anim-ease, ease);
    z-index: 1;
}

.mageworx-option-slider--allow-none .mageworx-option-slider__range-fill {
    left: 0;
    right: auto;
    width: 0;
    background: var(--mw-slider-fill-bg, #3b82f6);
    border-radius: 16px;
    z-index: 2;
    transition: opacity var(--mw-slider-anim-reveal, 0.32s) var(--mw-slider-anim-ease, ease);
}

.mageworx-option-slider--allow-none.mageworx-option-slider--range .mageworx-option-slider__range-fill {
    width: auto;
}

.mageworx-option-slider--allow-none:not(.mageworx-option-slider--range) .mageworx-option-slider__range-fill {
    border-radius: 0;
}

.mageworx-option-slider--allow-none:not(.mageworx-option-slider--range) .mageworx-option-slider__range-fill.is-right-round {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.mageworx-option-slider__range-fill.is-left-edge {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.mageworx-option-slider__range-fill.is-right-edge {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.mageworx-option-slider__none-zone {
    position: absolute;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: var(--mw-slider-none-width, 190px);
    height: 100%;
    background: var(--mw-slider-none-bg, #707a8a);
    border-radius: 999px 0 0 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.2px;
    z-index: 3;
    cursor: pointer;
    transition: background-color var(--mw-slider-anim-reveal, 0.32s) var(--mw-slider-anim-ease, ease),
        box-shadow var(--mw-slider-anim-reveal, 0.32s) var(--mw-slider-anim-ease, ease),
        border-radius var(--mw-slider-anim-reveal, 0.32s) var(--mw-slider-anim-ease, ease);
}

.mageworx-option-slider__none-zone:hover {
    background: var(--mw-slider-none-bg-hover, #636c7b);
}

.mageworx-option-slider__none-zone.is-hover {
    background: var(--mw-slider-none-bg-hover, #636c7b);
}

.mageworx-option-slider__none-boundary {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--mw-slider-none-width, 190px) - 1px);
    width: 2px;
    background: rgba(17, 24, 39, 0.35);
    opacity: 0.45;
    transition: opacity var(--mw-slider-anim-hide, 0.58s) var(--mw-slider-anim-ease, ease);
    z-index: 3;
    pointer-events: none;
}

.mageworx-option-slider__thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--mw-slider-thumb-size, 28px);
    height: var(--mw-slider-thumb-size, 28px);
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 999px;
    border: 3px solid var(--mw-slider-thumb-border, rgba(59, 130, 246, 0.75));
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.15);
    cursor: grab;
    z-index: 4;
}

.mageworx-option-slider__thumb:active {
    cursor: grabbing;
}

.mageworx-option-slider--none .mageworx-option-slider__range-zone {
    transform: scaleX(0);
    opacity: 0;
}

.mageworx-option-slider--none .mageworx-option-slider__range-track {
    background: transparent;
}

.mageworx-option-slider--none .mageworx-option-slider__none-boundary {
    opacity: 0;
}

.mageworx-option-slider--none .mageworx-option-slider__none-zone {
    background: var(--mw-slider-none-bg-active, #566579);
    box-shadow: var(--mw-slider-none-glow, none);
    border-radius: 999px;
}

.mageworx-option-slider--none .mageworx-option-slider__thumb {
    border-color: rgba(107, 116, 132, 0.9);
}

.mageworx-option-slider--none .mageworx-option-slider__current-value {
    opacity: 0;
    transform: translate(-50%, -6px);
    pointer-events: none;
}

.mageworx-option-slider--none .mageworx-option-slider__ticks {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.mageworx-option-slider--animating .mageworx-option-slider__thumb {
    transition: left var(--mw-slider-anim-move, 0.48s) var(--mw-slider-anim-ease, ease),
        border-color var(--mw-slider-anim-reveal, 0.32s) var(--mw-slider-anim-ease, ease),
        transform 0.05s linear;
}

.mageworx-option-slider--animating .mageworx-option-slider__range-fill {
    transition: opacity var(--mw-slider-anim-reveal, 0.32s) var(--mw-slider-anim-ease, ease),
        width var(--mw-slider-anim-move, 0.48s) var(--mw-slider-anim-ease, ease);
}

.mageworx-option-slider--allow-none:not(.mageworx-option-slider--range) .mageworx-option-slider__range {
    display: none !important;
}

.mageworx-option-slider--allow-none.mageworx-option-slider--range .mageworx-option-slider__range {
    left: var(--mw-slider-none-width, 190px);
    right: 0;
    width: calc(100% - var(--mw-slider-none-width, 190px)) !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.mageworx-option-slider--allow-none.mageworx-option-slider--range.mageworx-option-slider--none .mageworx-option-slider__range {
    left: 0;
    right: auto;
    width: var(--mw-slider-none-width, 190px) !important;
    opacity: 1;
    pointer-events: none;
}


@media (max-width: 520px) {
    .mageworx-option-slider--allow-none {
        --mw-slider-none-width: 110px;
    }
}

.mageworx-option-slider__range-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 35px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 16px;
    z-index: 1;
}

.mageworx-option-slider__range-fill {
    position: absolute;
    left: 0;
    right: 100%;
    top: 0;
    bottom: 0;
    background: #3b82f6;
    border-radius: 16px;
    transition: left 0.15s ease-out, right 0.15s ease-out;
}

.mageworx-option-slider__range {
    width: 100% !important;
    margin: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-color: #e2e8f0;
    background-image: linear-gradient(to right, #3b82f6, #3b82f6);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    height: 32px !important;
    min-height: 32px !important;
    border: none !important;
    border-radius: 16px;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
    transition: background-size 0.15s ease-out;
    display: block !important;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.mageworx-option-slider--range .mageworx-option-slider__range {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    background-color: transparent;
    background-image: none;
    background-size: 0 0;
    pointer-events: none;
}

.mageworx-option-slider--range .mageworx-option-slider__range::-webkit-slider-runnable-track {
    background: transparent;
}

.mageworx-option-slider--range .mageworx-option-slider__range::-moz-range-track {
    background: transparent;
}

.mageworx-option-slider--range .mageworx-option-slider__range::-moz-range-progress {
    background: transparent;
}

.mageworx-option-slider__range:focus {
    outline: none;
}

/* Track */
.mageworx-option-slider__range::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    width: 100%;
    height: 32px;
    background: transparent;
    border: none;
}

.mageworx-option-slider__range::-moz-range-track {
    width: 100%;
    height: 32px;
    background: #f1f5f9;
    border-radius: 16px;
    border: none;
}

.mageworx-option-slider__range::-moz-range-progress {
    background-color: #3b82f6;
    height: 32px;
    border-radius: 16px 0 0 16px;
}

/* Thumb */
.mageworx-option-slider__range::-webkit-slider-thumb {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #3b82f6;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: 0;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-sizing: border-box;
}

.mageworx-option-slider--range .mageworx-option-slider__range::-webkit-slider-thumb {
    pointer-events: auto;
}

.mageworx-option-slider__range:hover::-webkit-slider-thumb {
    transform: scale(1.05);
}

.mageworx-option-slider__range:active::-webkit-slider-thumb {
    transform: scale(0.95);
}

.mageworx-option-slider__range::-moz-range-thumb {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #3b82f6;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-sizing: border-box;
}

.mageworx-option-slider--range .mageworx-option-slider__range::-moz-range-thumb {
    pointer-events: auto;
}

.mageworx-option-slider__range:hover::-moz-range-thumb {
    transform: scale(1.05);
}

/* Ticks */
.mageworx-option-slider__ticks {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    height: 10px;
    pointer-events: none;
    z-index: 1;
    transition: opacity var(--mw-slider-anim-hide, 0.58s) var(--mw-slider-anim-ease, ease),
        transform var(--mw-slider-anim-hide, 0.58s) var(--mw-slider-anim-ease, ease);
}

.mageworx-option-slider--allow-none .mageworx-option-slider__ticks {
    left: var(--mw-slider-none-width, 190px);
    width: calc(100% - var(--mw-slider-none-width, 190px));
    top: calc(var(--mw-slider-track-top, 35px) + var(--mw-slider-track-height, 32px) + 5px);
}

.mageworx-option-slider__tick {
    width: 2px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 1px;
}

.mageworx-option-slider__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mageworx-option-slider__limits {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    width: 100%;
    color: #64748b;
    font-size: 13px;
    padding-top: 10px;
    line-height: 1.2;
    transition: opacity var(--mw-slider-anim-hide, 0.58s) var(--mw-slider-anim-ease, ease),
        transform var(--mw-slider-anim-hide, 0.58s) var(--mw-slider-anim-ease, ease);
}

.mageworx-option-slider__none-caption {
    font-size: 13px;
}

.mageworx-option-slider__none-caption,
.mageworx-option-slider__min-value,
.mageworx-option-slider__max-value {
    font-weight: 500;
    color: inherit;
}

.mageworx-option-slider__divider {
    height: 1px;
    background-color: #f1f5f9;
    width: 100%;
    margin-top: 4px;
}

.mageworx-option-slider__price-container {
    display: flex;
    justify-content: flex-end;
}

.mageworx-option-slider__price-value {
    color: #059669;
    font-weight: 700;
    font-size: 18px;
    background: #ecfdf5;
    padding: 6px 20px;
    border-radius: 9999px;
}

.mageworx-option-slider--pending {
    opacity: 0.5;
    pointer-events: none;
}

.mageworx-option-slider__input {
    display: none !important;
}

/* Disable global focus glow for MageWorx sliders only */
._keyfocus .mageworx-option-slider *:focus,
.mageworx-option-slider input[type="range"]:focus,
.mageworx-option-slider input[type="range"]:focus-visible,
.mageworx-option-slider input[type="range"]::-webkit-slider-thumb:focus,
.mageworx-option-slider input[type="range"]::-moz-range-thumb:focus,
.mageworx-option-slider__range:focus,
.mageworx-option-slider__range {
    box-shadow: none !important;
    outline: none !important;
}
.mageworx-option-slider:focus-within {
    box-shadow: none !important;
}

.mageworx-option-colorpicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.mageworx-option-colorpicker__control {
    width: 44px;
    height: 32px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
}

.mageworx-option-colorpicker__control::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.mageworx-option-colorpicker__control::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}

.mageworx-option-colorpicker__value {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    font-family: monospace;
}

.mageworx-option-colorpicker__none {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.mageworx-option-colorpicker__none:hover,
.mageworx-option-colorpicker__none:focus-visible {
    background: #e2e8f0;
}

.mageworx-option-colorpicker--none .mageworx-option-colorpicker__control {
    opacity: 0.45;
}

.mageworx-option-colorpicker--none .mageworx-option-colorpicker__value {
    color: #94a3b8;
}

.mageworx-option-colorpicker--pending {
    opacity: 0.5;
    pointer-events: none;
}

.mageworx-option-colorpicker__input {
    display: none !important;
}
