/**
 * Styles for the "Pause Online Ordering" admin UI.
 *
 * Covers the floating action button rendered by PauseOrdering on the
 * Olena Food Ordering admin screens. The Admin Bar status item reuses
 * native admin-bar styling and needs no custom CSS here.
 */

.vajofo-pause-ordering {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
}

.vajofo-pause-ordering__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #d63638;
    /* WordPress "error" red — signals an important operational action. */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.vajofo-pause-ordering__button:hover,
.vajofo-pause-ordering__button:focus {
    background: #b32d2e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.vajofo-pause-ordering__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.vajofo-pause-ordering__icon {
    font-size: 15px;
    line-height: 1;
}

/**
 * When ordering is already paused (wired up in a later stage), the
 * floating button becomes a "resume" affordance. The green style is
 * defined now so the markup only needs its modifier class flipped.
 */
.vajofo-pause-ordering--paused .vajofo-pause-ordering__button {
    background: #1e7e34;
}

.vajofo-pause-ordering--paused .vajofo-pause-ordering__button:hover,
.vajofo-pause-ordering--paused .vajofo-pause-ordering__button:focus {
    background: #196b2c;
}
