/* Aguiden Vacation Mode - Frontend Styles */

/* Vacation message default styling (Elementor widget controls can override) */
.aguiden-vm-message {
    padding: 18px 22px;
    background: #fff8e6;
    border-left: 4px solid #e67e22;
    border-radius: 4px;
    color: #5a4a2a;
    font-size: 15px;
    line-height: 1.55;
}
.aguiden-vm-message p:last-child { margin-bottom: 0; }

/* Per-widget vacation behaviors */
body.vacation-mode-active .vacation-hide { display: none !important; }

body.vacation-mode-active .vacation-dim {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(40%);
    position: relative;
    user-select: none;
}
body.vacation-mode-active .vacation-dim::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: not-allowed;
    z-index: 10;
}

/* ---------- Popup ---------- */
.aguiden-vm-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}
.aguiden-vm-popup.is-open { display: block; }

.aguiden-vm-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    animation: avm-fade 0.2s ease;
}

.aguiden-vm-popup-dialog {
    position: relative;
    background: #fff;
    max-width: 520px;
    width: 92%;
    margin: 10vh auto;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 32px 28px 26px;
    animation: avm-pop 0.22s ease;
}

.aguiden-vm-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 10px;
}
.aguiden-vm-popup-close:hover { color: #222; }

.aguiden-vm-popup-content {
    font-size: 16px;
    line-height: 1.6;
    color: #2a2a2a;
}
.aguiden-vm-popup-content p:last-child { margin-bottom: 0; }

@keyframes avm-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes avm-pop {
    from { opacity: 0; transform: translateY(-12px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

/* When body is locked (popup open) */
body.aguiden-vm-popup-open { overflow: hidden; }
