/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.em_defaultlink a {
    color: #B50443;
    text-decoration: none;
}

.em_defaultlink_u a {
    color: #B50443;
    text-decoration: underline;
}

.primary_color .em_defaultlink a {
    color: #d88da0;
    text-decoration: none;
}

.primary_color .em_defaultlink_u a {
    color: #d88da0;
    text-decoration: underline;
}

.secondary_color .em_defaultlink a {
    color: #d88da0;
    text-decoration: none;
}

.secondary_color .em_defaultlink_u a {
    color: #d88da0;
    text-decoration: underline;
}

.dark_color .em_defaultlink a {
    color: #d88da0;
    text-decoration: none;
}

.dark_color .em_defaultlink_u a {
    color: #d88da0;
    text-decoration: underline;
}

/* The switch - the box around the slider */
#optra_newsletter_mailchimp_subscription .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
#optra_newsletter_mailchimp_subscription .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
#optra_newsletter_mailchimp_subscription .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

#optra_newsletter_mailchimp_subscription .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

#optra_newsletter_mailchimp_subscription .slider:after {
    position: absolute;
    content: "off";
    height: 26px;
    width: 26px;
    right: 0px;
    left: auto;
    bottom: 0px;
    font-size:14px;
    -webkit-transition: .4s;
    transition: .4s;
}

#optra_newsletter_mailchimp_subscription input:checked + .slider:after {
    content: "on";
    right:auto;
    left: 6px;
}

#optra_newsletter_mailchimp_subscription input:checked + .slider {
    background-color: #2196F3;
}

#optra_newsletter_mailchimp_subscription input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

#optra_newsletter_mailchimp_subscription input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
#optra_newsletter_mailchimp_subscription .slider.round {
    border-radius: 34px;
}

#optra_newsletter_mailchimp_subscription .slider.round:before {
    border-radius: 50%;
}

.text-success{
    color: green;
}
.text-warning{
    color: red;
}

.text-xl{
    font-size:30px;
}

.single-newsletter table tr td{
    padding:0;
}

.single-newsletter #primary{
    padding:2rem 0;
}

@media screen and (max-width: 767px) {
    table.em_main_table .em_wrapper,
    table.em_main_table {
        width: 100% !important;
        max-width: 100% !important;
        float:none!important;
    }
    table.em_main_table .em_wrapper .em_hide{
        display:none;
    }
}

/** switch styler */

.newsletter-mode-switch .checkbox {
    opacity: 0;
    position: absolute;
}

.newsletter-mode-switch .checkbox-label {
    background-color: #111;
    width: 60px;
    height: 30px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border:2px solid #000;
}

.dark-mode .newsletter-mode-switch .checkbox-label {
    border-color:#ffffff;
}

.newsletter-mode-switch .fa-moon {color: #f1c40f;}

.newsletter-mode-switch .fa-sun {color: #f39c12;}

.newsletter-mode-switch .checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.newsletter-mode-switch .checkbox:checked + .checkbox-label .ball {
    transform: translateX(30px);
}