/* Keep translated labels inside the drawn outline, including enlarged text. */
.rsvp-button { width: max-content; min-width: min(100%, 210px); max-width: 100%; min-height: 54px; padding: .5rem 32px; font-size: calc(var(--control-font-size) * .875); white-space: normal; }
.rsvp-button .button-label { min-width: 0; text-wrap: balance; overflow-wrap: anywhere; }
.rsvp-button .text-phrase { display: inline-block; max-width: 100%; white-space: normal; }
:lang(fr) .rsvp-button .button-label { hyphens: auto; }
:lang(ko) .rsvp-button .button-label { word-break: keep-all; }
#rsvp.inside-section { padding-inline: 20px; }
#rsvp > .rsvp-button { margin-top: .75rem; }
.rsvp-button::before { background-image: url("/_immutable/c6b521ee4faea980/assets/rsvp-scribble.svg"); }
.rsvp-frame { position: fixed; inset: 0; z-index: 110; width: 100%; height: 100vh; height: 100dvh; border: 0; background: var(--paper); }
.rsvp-frame[hidden] { display: none; }
.rsvp-required-flower { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: #ffffffc9; backdrop-filter: blur(5px); }
.rsvp-required-flower[data-loading] { visibility: hidden; pointer-events: none; }
.rsvp-required-flower-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.rsvp-required-flower-loading { position: relative; z-index: 1; color: var(--flower-stem); }
.rsvp-required-flower-loading .flower-spinner { width: 42px; height: 42px; animation: rsvp-flower-turn 2.2s cubic-bezier(.45,0,.55,1) infinite; }
.rsvp-required-flower > button { z-index: 2; }
.rsvp-preparation-close { position: absolute; z-index: 3; top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.rsvp-preparation-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rsvp-preparation-close:focus-visible { outline: 2px solid var(--flower-stem); outline-offset: 3px; }
@media(prefers-reduced-motion:reduce) { .rsvp-required-flower-loading .flower-spinner { animation: none; } }
body.rsvp-host { overflow: hidden; }
.rsvp-host > .page-header { z-index: 120; }
.rsvp-host.rsvp-flower-required > .page-header { z-index: 100; }
.rsvp-host :is(.section-nav, .header-thumbnail) { visibility: hidden; pointer-events: none; }
html[data-rsvp-embedded] .page-header { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rsvp-button:hover { --button-fill: #f5f8ef; }
}

/* The page header and section spacing come directly from styles.css. */
/* Let inline fields open below the answer without the browser moving the page
   to keep a later form field in view. */
.rsvp-page { overflow-anchor: none; }
.rsvp-main { width: 100%; }
.rsvp-main:has(.rsvp-section[data-confirmed="true"]) { display: flex; flex-direction: column; min-height: 100dvh; }
.rsvp-section { display: block; text-align: left; }
.rsvp-intro { max-width: 600px; margin: 0 auto 2rem; text-align: center; }
.rsvp-section[data-confirmed="true"] {
  display: flex;
  flex: 1 0 auto;
  min-height: 0;
  padding-block: max(4.5rem, env(safe-area-inset-top), env(safe-area-inset-bottom));
}
.rsvp-section[data-confirmed="true"] :is(.rsvp-intro, .rsvp-confirmation) { width: 100%; flex-shrink: 0; }
:lang(ja) .rsvp-section[data-confirmed="true"] #rsvp-title { font-size: clamp(1.25rem, 6.5vw, 3rem); white-space: nowrap; }
.rsvp-date-punctuation { font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }

/* Match the labels, controls and feedback in the existing flower form. */
.rsvp-form { max-width: 600px; margin-inline: auto; font: 14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.rsvp-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.rsvp-field { margin-bottom: 1.5rem; }
.rsvp-field label, .rsvp-attendance legend { display: block; margin-bottom: .5rem; font: 14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-wrap: pretty; }
.rsvp-hint { margin: -.15rem 0 .5rem; color: var(--quiet-ink); font: 13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-wrap: pretty; }
.rsvp-field-error { margin: .4rem 0 0; color: #a44836; font: 13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-wrap: pretty; }
.rsvp-field :is(input, textarea) { display: block; width: 100%; padding: .65rem .75rem; color: var(--ink); background: #fff; border: 1px solid #9e9f92; border-radius: 7px 9px 6px 8px; font: 16px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.rsvp-field textarea { resize: vertical; min-height: calc(2.8em + 1.3rem + 2px); }
.rsvp-form .rsvp-attendance { margin-bottom: 1.5rem; }
.rsvp-option { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .4rem 0; cursor: pointer; font: 14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.rsvp-option input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--flower-stem); }
.rsvp-dietary-panel { margin: .2rem 0 .75rem 28px; padding: 1rem; border: 1px solid #e3e5d7; border-radius: 9px 11px 8px 10px; background: #f8f9f3; }
.rsvp-dietary-panel .rsvp-dietary-field { margin-bottom: 0; }
.rsvp-dietary-panel .rsvp-attendance-needs { margin-top: 1.5rem; margin-bottom: 0; }
.rsvp-dietary-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 .75rem; }
.rsvp-dietary-panel:has(.rsvp-dietary-details[hidden]) .rsvp-dietary-choices { margin-bottom: 0; }
.rsvp-dietary-panel .rsvp-dietary-choice { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; padding: .6rem .85rem; border: 1px solid #c9cdbc; border-radius: 7px 8px 6px 9px; color: var(--ink); background: #fff; font: 14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; cursor: pointer; }
.rsvp-dietary-choice .rsvp-dietary-choice-input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rsvp-dietary-choice:has(input:checked) { border-color: var(--flower-stem); background: #eef3df; }
.rsvp-dietary-choice:has(input:focus-visible), .rsvp-dietary-choices[data-keyboard-focus] .rsvp-dietary-choice:focus-within { outline: 2px solid var(--flower-stem); outline-offset: 4px; }
.rsvp-dietary-choice:has(input:disabled) { cursor: default; }
.rsvp-dietary-details textarea { font-size: 16px; }
.rsvp-form fieldset:disabled { opacity: .72; }
.rsvp-form fieldset:disabled .rsvp-option { cursor: default; }
.rsvp-form fieldset:disabled :is(input,textarea) { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.rsvp-status, .rsvp-error { margin: .75rem 0 1.25rem; color: var(--ink); font: 14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-wrap: pretty; }
.rsvp-status:empty { display: none; }
.rsvp-form-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; padding-top: 1.75rem; }
.rsvp-primary { position: relative; min-height: 46px; padding: .7rem 1rem; color: var(--ink); background: #f2f3e9; border: 1.5px solid var(--ink); border-radius: 10px 8px 12px 9px; font: 16px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* Reserve room for the retry label, keeping the saving button stable. */
.rsvp-primary { min-width: 12rem; }
.rsvp-primary:disabled { cursor: wait; }
.rsvp-primary[aria-busy="true"] .button-label { opacity: 0; }
.rsvp-primary .button-loader { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--flower-stem); }
.rsvp-primary[aria-busy="true"] .button-loader { display: flex; }
.rsvp-primary .flower-spinner { width: 34px; height: 34px; animation: rsvp-flower-turn 2.2s cubic-bezier(.45,0,.55,1) infinite; }
.rsvp-primary, .rsvp-field :is(input,textarea) { transition: background-color 160ms ease,border-color 160ms ease,transform 160ms ease,box-shadow 160ms ease; }

.rsvp-confirmation { max-width: 600px; margin-inline: auto; text-align: center; font: 14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.rsvp-confirmation-actions { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin: 0; }
.rsvp-back.rsvp-action-button { flex: 0 0 auto; width: max-content; min-width: min(100%, 200px); max-width: 100%; padding-inline: 1.5rem; white-space: normal; text-wrap: balance; }
.rsvp-form :is(input,textarea,button,a):focus-visible, .rsvp-confirmation :is(button,a):focus-visible, .rsvp-confirmation-gift .rsvp-gift-link:focus-visible { outline: 2px solid var(--flower-stem); outline-offset: 4px; }
#rsvp-title:focus { outline: none; }
.rsvp-page [hidden] { display: none !important; }
.rsvp-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:lang(ko) :is(.rsvp-form,.rsvp-intro,.rsvp-confirmation,.rsvp-gift-note) { word-break: keep-all; }
:lang(ja) :is(.rsvp-form,.rsvp-intro,.rsvp-confirmation), :lang(zh-Hans) :is(.rsvp-form,.rsvp-intro,.rsvp-confirmation) { line-break: strict; }
@keyframes rsvp-flower-turn { from { transform: rotate(-9deg); } to { transform: rotate(351deg); } }
@media (hover:hover) and (pointer:fine) {
  .rsvp-primary:not(:disabled):hover { --button-fill: #e5e9d2; transform: translateY(-2px); }
  .rsvp-back:hover { color: var(--ink); text-decoration-thickness: 2px; }
  .rsvp-field :is(input,textarea):hover { border-color: var(--flower-stem); }
  .rsvp-dietary-choice:hover { border-color: var(--flower-stem); }
}
.rsvp-primary:not(:disabled):active { --button-fill: #e5e9d2; }
.rsvp-back:active { color: var(--ink); }
@media(max-width:600px) { .rsvp-primary { flex: 1 1 100%; } }
@media(prefers-reduced-motion:reduce) { .rsvp-primary .flower-spinner { animation: none; } .rsvp-action-button,.rsvp-field :is(input,textarea) { transition: none; transform: none !important; } }

/* Reserve the same space for Send, the flower loader, and longer retry labels. */
.rsvp-action-button,
.flower-flow-page .flower-editor .editor-actions .rsvp-action-button {
  flex: 0 1 200px;
  width: min(100%, 200px);
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: .4375rem .625rem;
  border: 0;
  border-radius: 10px 8px 12px 9px;
  background: transparent;
  font: max(1rem, calc(var(--control-font-size) * .8125))/1.2 var(--heading-font);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease,border-color 160ms ease,transform 160ms ease,box-shadow 160ms ease;
}
#rsvp-another { flex: 0 0 auto; width: min(100%, 320px); white-space: normal; text-wrap: balance; }
/* Keep the longer French label stable through sending and retry. */
:lang(fr) #rsvp-submit { flex-basis: 250px; width: min(100%, 250px); }
:lang(ko) #rsvp-form[data-pending="true"] #rsvp-submit { font-size: 1.25rem; }
.rsvp-action-button::before { background-image: url("/_immutable/ae6e7ea6fc13cfdf/assets/rsvp-send-scribble.svg"); }
.rsvp-action-button .button-label { position: relative; z-index: 2; }
#rsvp-submit .button-loader { z-index: 3; }
.rsvp-action-button:disabled { --button-fill: var(--paper); transform: rotate(-.8deg); cursor: default; }
#rsvp-submit:disabled:not([aria-busy="true"]) { color: #8b8d80; --button-fill: #f7f7f2; cursor: default; }
#rsvp-submit[aria-busy="true"] { cursor: wait; }
.rsvp-action-button:disabled::before { opacity: 0; }
#rsvp-submit[aria-busy="true"]::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .rsvp-action-button:not(:disabled):hover { --button-fill: #fff5f8; transform: translateY(-2px) rotate(.6deg); }
}
.rsvp-action-button:not(:disabled):active { --button-fill: #fff5f8; transform: translateY(1px) rotate(-.4deg); }
@media(prefers-reduced-motion:reduce) { .rsvp-action-button { transition: none; transform: none !important; } }
.rsvp-form :is(input,textarea)[aria-invalid="true"] { border-color: #a44836; }

/* A quiet note in the form's typography, with the garden's palette and dialog. */
.rsvp-gift-note { margin-top: .25rem; color: inherit; font: inherit; text-wrap: pretty; }
.rsvp-gift-note p { margin: 0 0 .35rem; }
.rsvp-gift-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer; }
.rsvp-confirmation-gift { width: min(600px, calc(100% - 2.5rem)); margin: 0 auto; padding-block: 1rem max(1.5rem, env(safe-area-inset-bottom)); color: #8a8a84; font: 13px/1.7 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-align: center; }
.rsvp-confirmation-gift .rsvp-gift-link { display: inline; min-height: 0; margin-block: -.65rem; padding-block: .65rem; font-weight: 600; white-space: nowrap; }
.rsvp-gift-dialog { width: min(480px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.5rem; overflow: auto; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 22px 27px 20px 25px; box-shadow: 0 12px 50px #302e201a; }
.rsvp-gift-dialog::backdrop { background: #ffffffc9; backdrop-filter: blur(5px); }
body:has(.rsvp-gift-dialog[open]) { overflow: hidden; }
.rsvp-gift-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.rsvp-gift-heading h2 { margin: .25rem 0 0; font: 32px/1.2 var(--heading-font); text-wrap: balance; }
.rsvp-gift-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.rsvp-gift-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#rsvp-gift-title:focus { outline: none; }
.rsvp-gift-accounts { margin: 0; font: 16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.rsvp-gift-accounts > div { display: grid; grid-template-columns: minmax(0,1fr) 44px; column-gap: .75rem; padding-block: 1rem; border-top: 1px solid #e3e5d7; }
.rsvp-gift-accounts dt { grid-column: 1; margin-bottom: .3rem; font-weight: 600; }
.rsvp-gift-accounts dd { grid-column: 1; margin: 0; }
.rsvp-gift-copy { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #c9cdbc; border-radius: 7px 9px 6px 8px; color: var(--ink); background: transparent; cursor: pointer; }
.rsvp-gift-copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rsvp-gift-copy .gift-check-icon, .rsvp-gift-copy[data-copied="true"] .gift-copy-icon { display: none; }
.rsvp-gift-copy[data-copied="true"] .gift-check-icon { display: block; color: var(--flower-stem); }
.rsvp-gift-copy:disabled { color: #a5a79d; border-color: #e3e5d7; cursor: default; }
.rsvp-gift-copy[aria-busy="true"] { opacity: .65; cursor: wait; }
.rsvp-gift-copy-status { margin: .5rem 0 0; font: 13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; text-wrap: pretty; }
.rsvp-gift-account { white-space: nowrap; user-select: all; -webkit-user-select: all; }
.rsvp-gift-account[href] { white-space: normal; overflow-wrap: anywhere; color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.rsvp-gift-account[href]:focus-visible { outline: 2px solid var(--flower-stem); outline-offset: 4px; }
.rsvp-gift-pending { color: var(--quiet-ink); font-size: 14px; }
.rsvp-gift-dialog button:focus-visible { outline: 2px solid var(--flower-stem); outline-offset: 4px; }
:lang(ko) .rsvp-gift-dialog { word-break: keep-all; }
:lang(ja) :is(.rsvp-gift-note,.rsvp-gift-dialog), :lang(zh-Hans) :is(.rsvp-gift-note,.rsvp-gift-dialog) { line-break: strict; }
:lang(ja) .rsvp-gift-heading h2, :lang(zh-Hans) .rsvp-gift-heading h2 { font-size: 25px; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .rsvp-gift-link:hover { color: var(--ink); text-decoration-thickness: 2px; }
  .rsvp-gift-close:hover { background: #f1f3e9; }
  .rsvp-gift-copy:not(:disabled):not([aria-disabled="true"]):hover { background: #f1f3e9; }
}
.rsvp-gift-link:active { color: var(--ink); text-decoration-thickness: 2px; }
.rsvp-gift-close:active,
.rsvp-gift-copy:not(:disabled):not([aria-disabled="true"]):active { background: #f1f3e9; }
