.wecrsvp-block {
    margin: 16px 0 24px;
}

/*
 * Minimal, sensible defaults for the RSVP button. We can't know what any
 * given theme's button styling looks like, so this is a clean baseline
 * that's easy for a theme's own CSS to override. Site owners can also
 * swap in their theme's own button classes via the wecrsvp_button_classes
 * filter (see class-wecrsvp-front.php).
 */
.wecrsvp-rsvp-button {
    display: inline-block;
    padding: 10px 22px;
    font-size: 1em;
    font-weight: 600;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.wecrsvp-rsvp-button:hover {
    opacity: 0.85;
}

.wecrsvp-rsvp-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.wecrsvp-modal[hidden] {
    display: none;
}

.wecrsvp-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wecrsvp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.wecrsvp-modal-dialog {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    border-radius: 6px;
    max-width: 420px;
    width: 90%;
    padding: 28px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.wecrsvp-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.wecrsvp-field {
    margin-bottom: 14px;
}

.wecrsvp-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.wecrsvp-field input[type="text"],
.wecrsvp-field input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
}

.wecrsvp-field-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

/* Visually hidden honeypot field - real visitors never see or fill it. */
.wecrsvp-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wecrsvp-message {
    min-height: 1.2em;
    font-size: 0.9em;
}

.wecrsvp-message-error {
    color: #b32d2e;
}

.wecrsvp-message-success {
    color: #1a7a1a;
}
