.field-row {
    display: flex;
    flex-direction: column;
}

.field-row:first-of-type {
    margin-top: 18px;
}

#signInPanel .btn {
    margin-top: 20px;
    line-height: var(--leading-control);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 0;
}

.label {
    margin-top: 5px !important;
}

.textarea {
    resize: vertical;
    min-height: 88px;
    max-height: 260px;
    overflow-y: auto;
}

.field-hint {
    margin-bottom: 4px;
}

.panel.is-unverified {
    visibility: hidden;
}

.panel.is-sent form,
.panel.is-sent .create-invitation-link {
    display: none;
}

.guest-list {
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
}

.guest-url {
    text-align: right;
}

@media (max-width: 900px) {
    .guest-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        list-style: none;
    }

    .guest-name {
        flex: 0 0 auto;
        font-weight: 500;
        color: var(--ink);
    }

    .guest-url {
        display: none;
    }

    .guest-actions {
        display: flex;
        gap: 8px;
        flex: 0 1 auto;
    }

    .rsvp-summary {
        gap: 8px !important;
    }
}

.cf-turnstile {
    width: 300px;
    max-width: 100%;
    height: 65px;
    min-height: 65px;
    line-height: 0;
    background: #f8f8f8;
}

.cf-turnstile iframe {
    display: block;
}

#copyAllRow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    justify-content: flex-end;
}

.btn-small {
    padding: 8px 12px !important;
    font-size: var(--text-xs) !important;
    min-width: auto !important;
}

.guest-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: 12px;
    align-items: center;
    justify-content: space-between;
}

.guest-filter-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    align-items: center;
}

.guest-filter-scroll::-webkit-scrollbar {
    display: none;
}

.guest-filter-btn {
    padding: 8px 12px;
    background: unset;
    border: 1px solid var(--field-border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.guest-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.guest-filter-btn.active {
    background: var(--field);
    border-color: var(--accent);
    color: var(--ink);
}

#guestFilters #addGuests {
    flex-shrink: 0;
    padding: 8px 14px !important;
    width: auto;
    border: 1px solid var(--accent);
}

.rsvp-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rsvp-filter-btn {
    cursor: pointer;
}

.rsvp-filter-btn.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.rsvp-yes.active {
    text-decoration-color: currentColor;
}

.rsvp-no.active {
    text-decoration-color: currentColor;
}

.rsvp-maybe.active {
    text-decoration-color: currentColor;
}

.rsvp-no-answer.active {
    text-decoration-color: currentColor;
}

.clear-filter {
    cursor: pointer;
    color: #98948e;
    margin-right: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--ink);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid var(--field-border);
    border-radius: var(--radius);
    background: var(--field);
    transition: all 0.15s ease;
}

.checkbox-check {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.checkbox-label:hover .checkbox-box {
    border-color: var(--accent);
}

.checkbox-label:has(input:checked) .checkbox-box {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label:has(input:checked) .checkbox-check {
    opacity: 1;
}

.guest-checkbox-label {
    margin: 0 !important;
    gap: 6px !important;
}

.create-invitation-link {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
    font-size: var(--text-sm);
}

.create-invitation-link a {
    color: var(--accent);
    text-decoration: none;
}

.create-invitation-link a:hover {
    text-decoration: underline;
}
