.saic-wrapper form[data-wds-rsvp-pair][hidden],
.saic-wrapper .wds-pair-summary[hidden],
.saic-wrapper .wds-pair-events[hidden],
.saic-wrapper .wds-pair-cancel[hidden] { display: none !important; }
.saic-wrapper .wds-pair-summary { padding: 1em; border: 1px solid currentColor; border-radius: .5em; }
.saic-wrapper .wds-pair-summary dl { display: grid; grid-template-columns: minmax(5em, 30%) minmax(0, 1fr); gap: .5em 1em; margin: 0 0 1em; }
.saic-wrapper .wds-pair-summary dt { font-weight: 600; }
.saic-wrapper .wds-pair-summary dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.saic-wrapper .wds-pair-edit, .saic-wrapper .wds-pair-cancel {
    font: inherit;
    font-family: var(--wds-rsvp-button-font-family, inherit);
    font-size: var(--wds-rsvp-button-font-size, inherit);
    font-weight: var(--wds-rsvp-button-font-weight, inherit);
    color: var(--wds-rsvp-button-color, inherit);
    background: transparent;
    background-color: var(--wds-rsvp-button-background-color, transparent);
    border: 1px solid currentColor;
    border-color: var(--wds-rsvp-button-border-color, currentColor);
    border-width: var(--wds-rsvp-button-border-width, 1px);
    border-style: var(--wds-rsvp-button-border-style, solid);
    border-radius: var(--wds-rsvp-button-border-radius, .4em);
    padding: var(--wds-rsvp-button-padding, .6em 1em);
    cursor: pointer;
}
.saic-wrapper .wds-pair-status { clear: both; padding-top: .5em; }
.saic-wrapper .wds-pair-status.is-error { color: #b42318; }
.saic-wrapper .wds-pair-events { margin: 0 0 1em; padding: .6em; border: 1px solid currentColor; }
.saic-wrapper .wds-pair-events label { display: block; margin: .4em 0; }
.saic-wrapper .wds-pair-events input { width: auto; display: inline-block; }
.elementor-widget-wds_rsvp.wds-rsvp-avatar-yes .saic-comment-avatar { display: none !important; }
.elementor-widget-wds_rsvp.wds-rsvp-avatar-yes .saic-comment-content { margin-left: 0 !important; }
.wds-rsvp-independent-buttons .wds-pair-edit,
.wds-rsvp-independent-buttons .wds-pair-cancel {
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: #3d7dbc;
    border: 0;
    border-radius: 3px;
    padding: 8px 20px;
    box-sizing: border-box;
}

/* The existing remaining-character counter occupies a reserved textarea footer. */
.wds-rsvp-independent-buttons .saic-wrap-form .saic-container-form .respond form[data-wds-rsvp-pair] .saic-wrap-textarea.wds-rsvp-counter-inset > textarea.saic-textarea {
    padding-bottom: calc(var(--wds-rsvp-textarea-padding-bottom, 8px) + var(--wds-rsvp-counter-height, 21px) + 1px) !important;
    min-height: max(var(--wds-rsvp-textarea-min-height, 75px), calc(var(--wds-rsvp-textarea-padding-top, 8px) + var(--wds-rsvp-textarea-padding-bottom, 8px) + var(--wds-rsvp-counter-height, 21px) + 2em + var(--wds-rsvp-textarea-border-top, 1px) + var(--wds-rsvp-textarea-border-bottom, 1px) + 1px)) !important;
    min-height: max(var(--wds-rsvp-textarea-min-height, 75px), calc(var(--wds-rsvp-textarea-padding-top, 8px) + var(--wds-rsvp-textarea-padding-bottom, 8px) + var(--wds-rsvp-counter-height, 21px) + 1lh + var(--wds-rsvp-textarea-border-top, 1px) + var(--wds-rsvp-textarea-border-bottom, 1px) + 1px)) !important;
}
.wds-rsvp-independent-buttons .saic-wrap-form .saic-container-form .respond form[data-wds-rsvp-pair] .saic-wrap-textarea.wds-rsvp-counter-inset > .charleft.saic-counter-info {
    position: absolute;
    top: auto;
    bottom: var(--wds-rsvp-textarea-border-bottom, 1px);
    right: calc(var(--wds-rsvp-counter-gap, 6px) + var(--wds-rsvp-textarea-border-right, 1px) + 18px);
    width: auto;
    max-width: calc(100% - 32px);
    min-height: 1em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: content-box;
    padding-bottom: var(--wds-rsvp-counter-gap, 6px);
    margin: 0 !important;
    white-space: nowrap;
    pointer-events: none;
}

/* Draw one focus line inside the select without changing its border dimensions. */
.saic-wrapper.wds-rsvp-independent-buttons .saic-wrap-form .saic-container-form .respond form[data-wds-rsvp-pair] select.saic-select:is([name="attendance"], [name="guest"]):focus-visible {
    box-shadow: none;
    border-color: transparent !important;
    outline: 2px solid var(--wds-rsvp-select-focus-color, Highlight);
    outline-offset: -2px;
}
