/* The Modal */

.maileroo--maileroo {
    position: relative;
}

.maileroo--maileroo-logo {
    height: 24px;
}

.maileroo--promo-p {
    display: flex;
    align-items: center;
    gap: 8px;
}

.maileroo--maileroo-modal .maileroo--modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.maileroo--maileroo-modal .maileroo--modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 450px;
}

.maileroo--modal-body {
    display: flex;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
}

/* Close Button */
.maileroo--close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.maileroo--close:hover,
.maileroo--close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.maileroo--test-result {
    max-width: 450px;
}

.maileroo--button {
    cursor: pointer;
}

.maileroo--button.maileroo--button-primary {
    display: inline-flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--project-orange-primary-normal, #f46a25);
    color: var(--project-orange-primary-light-6, #fef8f5);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px; /* 133.333% */
    border: 1px solid transparent;
}

.maileroo--button.maileroo--button-primary:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #f46a25;
}

.maileroo--button.maileroo--button-primary:hover,
.maileroo--button.maileroo--button-primary:active,
.maileroo--button.maileroo--button-primary:focus {
    background: var(--project-orange-primary-light-2, #f68b55);
    border: 1px solid transparent;
}

.maileroo--button.maileroo--button-outline {
    display: inline-flex;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid var(--Project-Natural-Light-3, #e9e4e2);
    color: var(--Project-Natural-Normal, #8c7b73);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 114.286% */
}

/* Your plugin-specific styles */
.maileroo--custom-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.maileroo--custom-switch input {
    display: none;
}

.maileroo--custom-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.maileroo--custom-switch input:checked + label {
    background-color: #f46a25; /* Change this color to your desired "ON" state color */
}

.maileroo--custom-switch label:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.maileroo--custom-switch input:checked + label:before {
    transform: translateX(16px);
}

.maileroo--maileroo input[type='radio']:checked::before {
    background-color: #f46a25; /* Change this color to your desired "ON" state color */
}

.maileroo--maileroo input[type='radio']:focus {
    border-color: #f46a25;
    box-shadow: 0 0 0 1px #f46a25;
}

.maileroo--success {
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 1px 12px;
    border: 1px solid #c3c4c7;
    border-left: 4px #23a719;
    margin: 5px 0 15px;
}

.maileroo--loading-container {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.maileroo--loading {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f46a25;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: maileroo--spin 1s linear infinite;
}

.maileroo--display-none {
    display: none;
}

@keyframes maileroo--spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.maileroo--toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: none;
}

.maileroo--toast {
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.maileroo--toast.maileroo--success {
    background-color: #4CAF50; /* Green */
    color: #fff;
}

.maileroo--toast .maileroo--icon {
    margin-right: 10px;
}
