/* Besked Waitlist ("Avvisami") front-end popup.
   Colours / typography / borders of the button, popup and footer buttons are
   overridden by the Elementor widget's style controls; this file provides the
   structural layout and sensible standalone defaults. */

.besked-waitlist-hidden { display: none !important; }

/* Trigger button */
.besked-waitlist-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    background: #25d366;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}
.besked-waitlist-trigger:hover { opacity: .9; }

/* Overlay */
.besked-waitlist-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .55);
}

/* Popup card */
.besked-waitlist-popup {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px 24px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    box-sizing: border-box;
}

.besked-waitlist-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.besked-waitlist-close:hover { color: #222; }

.besked-waitlist-popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e1e1e;
}
.besked-waitlist-popup-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Fields */
.besked-waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.besked-waitlist-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.besked-waitlist-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.besked-waitlist-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}
.besked-waitlist-field input:focus {
    outline: none;
    border-color: #25d366;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, .2);
}

.besked-waitlist-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}
.besked-waitlist-consent input { margin-top: 2px; }

.besked-waitlist-notice {
    padding: 10px 12px;
    border-radius: 6px;
    background: #eef6ff;
    border: 1px solid #cfe4ff;
    font-size: 13px;
    color: #29527a;
}

.besked-waitlist-login-hint {
    font-size: 13px;
    color: #444;
}
.besked-waitlist-login-hint a {
    font-weight: 600;
    text-decoration: underline;
}

.besked-waitlist-messages { display: none; font-size: 14px; }
.besked-waitlist-messages.is-error {
    padding: 10px 12px;
    border-radius: 6px;
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #a12626;
}
.besked-waitlist-messages.is-success {
    padding: 10px 12px;
    border-radius: 6px;
    background: #eafaf0;
    border: 1px solid #b7e6c9;
    color: #1c7a41;
}

/* Footer buttons */
.besked-waitlist-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.besked-waitlist-submit,
.besked-waitlist-cancel {
    flex: 1 1 auto;
    padding: 11px 16px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}
.besked-waitlist-submit { background: #25d366; color: #fff; }
.besked-waitlist-submit:hover { opacity: .9; }
.besked-waitlist-cancel { background: #eceff1; color: #37474f; }
.besked-waitlist-cancel:hover { background: #dde3e6; }
