.modern-toggle-wrapper {
    display: none !important;
}

.logged-in .modern-toggle-wrapper {
    display: inline-flex !important;
}

.modern-toggle-wrapper {
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

.toggle-text {
    cursor: pointer;
    user-select: none;
}

.modern-toggle {
    position: relative;
    width: 42px;
    height: 22px;
    cursor: pointer;
}

.modern-toggle.small {
    width: 36px;
    height: 18px;
}

.modern-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.modern-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 50px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.modern-toggle-slider::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: calc(100% - 20px);
    height: calc(100% - 4px);
    max-width: 16px;
    max-height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.modern-toggle input:checked+.modern-toggle-slider {
    background: var(--primary-color, #4CAF50);
}

.modern-toggle input:checked+.modern-toggle-slider::before {
    transform: translateX(18px);
}

.modern-toggle.small .modern-toggle-slider::before {
    max-width: 14px;
    max-height: 14px;
}

.modern-toggle.small input:checked+.modern-toggle-slider::before {
    transform: translateX(16px);
}

body.hide-prices .price-wrapper,
body.hide-prices .price,
body.hide-prices .woocommerce-Price-amount,
body.hide-prices .woocommerce-variation-price {
    display: none !important;
}

.price-wrapper,
.price,
.woocommerce-Price-amount,
.woocommerce-variation-price {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s linear;
}

/* Fade out + lite uppåt + krymper */
.fading-out {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    visibility: hidden;
}