/* 
########################
Modal CSS
########################
*/
.ms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
}

.ms-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 640px;
    background: #fff;
    border-radius: 14px;
    padding: 32px 34px;
    z-index: 99999;
    font-family: Arial, sans-serif;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ms-modal p {
    margin: 0 0 18px 0;
    line-height: 1.55;
    font-size: 15px;
    color: #444;
}

.ms-modal label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.ms-modal input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ms-primary);
    cursor: pointer;
    /*so far only needed for chickslovefood*/
    position: relative !important;
    left: unset !important;
    right: unset !important;
}

.ms-modal-confirm {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: var(--ms-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box !important;
}

.ms-modal-confirm:hover {
    background: var(--ms-secondary);
}

.ms-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #888;
}

.ms-modal-close:hover {
    color: #333;
}

/* 
########################
Confirm message CSS
########################
*/

.ms-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -20px);
    background: #111;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ms-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ms-toast--hide {
    opacity: 0;
    transform: translate(-50%, -20px);
}