/* WooCommerce Email Notifications – Customer Preferences UI */

/* Toggle switch */
.orf-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin: 0;
}
.orf-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.orf-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.orf-slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.4s;
    border-radius: 50%;
}
.orf-switch input:not(:checked) + .orf-slider {
    background: linear-gradient(90deg, #FF0075 0%, #0075F2 100%); /* green when enabled */
}
.orf-switch input:not(:checked) + .orf-slider:before {
    transform: translateX(24px);
}

/* Email description beneath each notification name */
.email-desc {
    display: block;
    font-size: 15px;
    color: #888;
    margin-top: 2px;
}

/* Popup overlay */
.wc-email-modal-overlay {
    display: none; /* shown via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.754);
    z-index: 9999;
}

/* Popup content container */
.wc-email-modal-box {
    background: rgb(24, 24, 24);
    padding: 20px;
    max-width: 480px;
    margin: 12% auto;
    border-radius: 20px;
    border: 1px solid white;
    position: relative;
}

/* Helper text under inputs */
.input-help {
    color: #ffffff;
    font-size: 12px;
}

/* Email text inputs */
.wc-email-modal-box input[type="text"],
.email-input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button{
    margin-top: 0px!important;
}

.button#wc-email-modal-close
 {
    margin-top: 10px !important;
}