/*
 * eat24.css - site-specific styles. Loaded after cache-style-2.css on every page.
 * Brand orange: #f26c29
 */

/* ---------- Contact form: Send button with CSS loader ---------- */

form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px; /* matches the margin the old <input> got from .contact-form-wrapper input */
    cursor: pointer;
}

form .wpcf7-submit:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Spinner is hidden until the button gets .is-loading */
.wpcf7-submit .btn-spinner {
    display: none;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #f26c29;
    border-radius: 50%;
    animation: eat24-spin 0.75s linear infinite;
}

form .wpcf7-submit.is-loading,
form .wpcf7-submit.is-loading:hover {
    background: #000;
    cursor: wait;
    opacity: 0.9;
}

.wpcf7-submit.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes eat24-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Message popup (SweetAlert2 v7) ---------- */

.swal2-container.swal2-shown {
    background-color: rgba(20, 12, 8, 0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.swal2-popup.eat24-popup {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 26em;
    max-width: calc(100% - 32px);
    padding: 2.6em 2em 2em;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    font-family: 'Open Sans', sans-serif;
}

/* Orange strip along the top of the popup */
.swal2-popup.eat24-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #f26c29, #ff9a5a);
}

.swal2-popup.eat24-popup .swal2-title {
    margin: 0.2em 0 0.3em;
    font-family: 'Raleway', sans-serif;
    font-size: 1.9em;
    font-weight: 800;
    color: #222;
}

.swal2-popup.eat24-popup .swal2-content {
    font-size: 1.05em;
    line-height: 1.6;
    color: #666;
}

.swal2-popup.eat24-popup .swal2-actions {
    margin-top: 1.6em;
}

/* Confirm button: same pill shape as the site's buttons */
.swal2-popup.eat24-popup .eat24-popup-btn {
    min-width: 150px;
    padding: 12px 36px;
    border: none;
    border-radius: 50px;
    background: #f26c29;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(242, 108, 41, 0.35);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.swal2-popup.eat24-popup .eat24-popup-btn:hover {
    background: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.swal2-popup.eat24-popup .eat24-popup-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(242, 108, 41, 0.35);
}

.swal2-popup.eat24-popup .swal2-close {
    top: 10px;
    right: 12px;
    color: #bbb;
    transition: color 0.2s;
}

.swal2-popup.eat24-popup .swal2-close:hover {
    color: #f26c29;
}

/* Success icon in brand orange instead of the default green */
.swal2-popup.eat24-popup .swal2-icon.swal2-success {
    border-color: #f26c29;
}

.swal2-popup.eat24-popup .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(242, 108, 41, 0.3);
}

.swal2-popup.eat24-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #f26c29;
}

@media (max-width: 480px) {
    .swal2-popup.eat24-popup {
        padding: 2.2em 1.25em 1.5em;
    }

    .swal2-popup.eat24-popup .swal2-title {
        font-size: 1.6em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpcf7-submit .btn-spinner {
        animation-duration: 1.5s;
    }

    .swal2-popup.eat24-popup .eat24-popup-btn {
        transition: none;
    }
}
