/* Публичната страница на поканата (invite.php): цветовете следват стила на събитието (--ev-* върху body).
   Спринт 3 (VIS-10/11/12/18/19): фонът е --ev-page (при тъмна палитра по-тъмен от картата), картата за отговор
   говори езика на поканата (радиус и рамка по оформлението), полетата са в тона на палитрата (--ev-field),
   второстепенният текст е --ev-muted вместо прозрачност. */
.invite-page {
  --ev-radius-card: 2px;
  --ev-radius-field: min(var(--ev-radius-card), 8px);
  margin: 0;
  min-height: 100vh;
  background: var(--ev-page, #efe6d2);
  color: var(--ev-text, #2e2a25);
  font-family: var(--ev-body, 'Montserrat', 'Segoe UI', Arial, sans-serif);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
  box-sizing: border-box;
}
#invite-main {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#invite-main {
  container: invpage / inline-size;
}
#inv {
  box-shadow: var(--ev-shadow, 0 1px 2px rgba(41, 39, 37, 0.06), 0 12px 32px rgba(41, 39, 37, 0.1));
}
/* Ботаническата: сянката е на арката (.inv-card в invite.css), не на правоъгълника около нея. */
#inv.inv-botanical {
  box-shadow: none;
}
.invite-page:has(#inv.inv-modern) {
  --ev-radius-card: 0px;
}
.invite-page:has(#inv.inv-botanical) {
  --ev-radius-card: 20px;
}
.invite-loading {
  text-align: center;
}
/* „Виж като гост“: бележката над поканата в прегледа на домакините. */
.invite-preview-note {
  max-width: 560px;
  margin: 0 auto 16px;
  padding: 10px 16px;
  border: 1px dashed var(--ev-accent, #8f6d23);
  border-radius: var(--ev-radius-field);
  background: var(--ev-bg, #fbf7ef);
  color: var(--ev-text, #2e2a25);
  font-size: 0.875rem;
  text-align: center;
}
/* Без рамка, като картата на поканата (визуално ревю P2-4): сянката и фонът я отделят от страницата. */
.invite-rsvp {
  background: var(--ev-bg, #fbf7ef);
  color: var(--ev-text, #2e2a25);
  border: 0;
  border-radius: var(--ev-radius-card);
  box-shadow: var(--ev-shadow, 0 1px 2px rgba(41, 39, 37, 0.06), 0 12px 32px rgba(41, 39, 37, 0.1));
  padding: 40px clamp(20px, 5vw, 40px);
  text-align: center;
}
.invite-rsvp h2 {
  font-family: var(--ev-heading, 'Lora', Georgia, serif);
  color: var(--ev-primary, #8f6d23);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 8px;
  text-wrap: balance;
}
.invite-rsvp form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-top: 24px;
}
.invite-rsvp label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.invite-rsvp input,
.invite-rsvp select,
.invite-rsvp textarea {
  font: inherit;
  font-weight: 400;
  padding: 11px;
  border: 1px solid var(--ev-line-strong, #8a8680);
  border-radius: var(--ev-radius-field);
  background: var(--ev-field, #fefdfb);
  color: var(--ev-text, #2e2a25);
  min-height: 44px;
}
.invite-rsvp ::placeholder {
  color: var(--ev-muted, #5b5751);
  opacity: 1;
}
.invite-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.invite-choice label {
  position: relative;
}
.invite-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  min-height: 0;
}
.invite-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--ev-primary, #8f6d23);
  border-radius: 999px;
  color: var(--ev-text, #2e2a25);
  text-align: center;
  cursor: pointer;
}
.invite-choice input:checked + span {
  background: var(--ev-primary, #8f6d23);
  color: var(--ev-on-primary, #fff);
}
.invite-choice input:focus-visible + span,
.invite-button:focus-visible,
.invite-rsvp input:focus-visible,
.invite-rsvp select:focus-visible,
.invite-rsvp textarea:focus-visible {
  outline: 2px solid var(--ev-text, #292725);
  outline-offset: 2px;
}
.invite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.invite-button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--ev-primary, #8f6d23);
  background: var(--ev-primary, #8f6d23);
  color: var(--ev-on-primary, #fff);
  font: inherit;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
}
/* Контурен бутон (VIS-23): надписът е в основния цвят, изгладен до ≥ 4,5:1 (--ev-primary-ink). */
.invite-secondary {
  background: transparent;
  color: var(--ev-primary-ink, #856623);
}
.invite-muted {
  color: var(--ev-muted, #5b5751);
  margin: 0;
  text-wrap: balance;
}
.invite-thanks {
  font-weight: 600;
  font-size: 18px;
}
.invite-footer {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ev-muted, #5b5751);
}
.invite-footer a {
  color: inherit;
}
#portal-status {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: var(--ev-text, #2e2a25);
  color: var(--ev-bg, #fbf7ef);
  border-radius: 8px;
  padding: 0 16px;
  z-index: 10;
}
#portal-status:not(:empty) {
  padding: 10px 16px;
}
.invite-site {
  text-align: center;
}

/* ---------- Изчистване по дизайн системата (28.09.2026) ---------- */
.invite-page {
  padding: clamp(16px, 4vw, 48px) 16px 40px;
  -webkit-font-smoothing: antialiased;
}
#invite-main {
  gap: 24px;
}
#inv,
.invite-rsvp,
.invite-site {
  animation: invite-rise 450ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.invite-rsvp {
  animation-delay: 80ms;
}
.invite-site {
  animation-delay: 160ms;
}
@keyframes invite-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
/* Орнаментът на поканата, 96px, над въпроса „Ще присъствате ли?“: двойна линия с ромб (маска, оцветена в основния
   цвят при 70 %). Ако картата вече има свой SVG орнамент (.inv-ornament), този не се рисува. */
.invite-rsvp h2::before {
  content: '';
  display: block;
  width: 96px;
  height: 12px;
  margin: 0 auto 16px;
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 70%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 12'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M0 6h38M58 6h38'/%3E%3Cpath d='M48 .5 53.5 6 48 11.5 42.5 6Z'/%3E%3C/g%3E%3Cpath d='M48 3.5 50.5 6 48 8.5 45.5 6Z'/%3E%3C/svg%3E") center / 96px 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 12'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M0 6h38M58 6h38'/%3E%3Cpath d='M48 .5 53.5 6 48 11.5 42.5 6Z'/%3E%3C/g%3E%3Cpath d='M48 3.5 50.5 6 48 8.5 45.5 6Z'/%3E%3C/svg%3E") center / 96px 12px no-repeat;
}
.invite-rsvp .inv-ornament {
  width: 96px;
  margin: 0 auto 16px;
}
.invite-rsvp .inv-ornament ~ h2::before {
  display: none;
}
.invite-rsvp h2 {
  font-size: 30px;
  line-height: 1.2;
}
.invite-rsvp label {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.invite-rsvp input:not([type='radio']):not([type='checkbox']),
.invite-rsvp select {
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  font-size: 16px;
}
.invite-rsvp textarea {
  min-height: 96px;
  padding: 12px 14px;
  font-size: 16px;
  resize: vertical;
}
.invite-rsvp input:focus,
.invite-rsvp select:focus,
.invite-rsvp textarea:focus {
  border-color: var(--ev-primary, #8f6d23);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev-primary, #8f6d23) 24%, transparent);
}
.invite-choice span {
  font-weight: 600;
  transition:
    background-color 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    color 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.invite-choice label:hover input:not(:checked) + span {
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 8%, transparent);
}
.invite-button {
  transition:
    filter 0.2s,
    transform 0.2s;
}
.invite-button:hover {
  filter: brightness(1.08);
}
.invite-button:active {
  transform: translateY(1px);
}
.invite-button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.invite-thanks {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 10%, transparent);
  color: var(--ev-text, #292725);
  font-family: var(--ev-heading, 'Lora', Georgia, serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
}
.invite-table {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 8px 18px;
  border: 1px solid var(--ev-primary, #8f6d23);
  border-radius: 35px;
  font-weight: 600;
}
.invite-footer {
  margin-top: 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ev-muted, #5b5751);
}
.invite-footer a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
/* Линкът към политиката — на отделен ред в колонтитула: зона за докосване ≥ 24px, 8px до горния ред
   (4px отстъп + 6px padding), подчертан с text-decoration, за да не се отдалечи чертата от текста. */
.invite-footer .invite-footer-privacy {
  display: block;
  box-sizing: border-box;
  width: fit-content;
  min-height: 24px;
  margin: 4px auto 0;
  padding: 6px 8px;
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
/* Кратко известие за личните данни под бутона „Изпрати“ (GDPR-02). */
.invite-privacy {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ev-muted, #5b5751);
}
.invite-privacy a {
  color: inherit;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #inv,
  .invite-rsvp,
  .invite-site {
    animation: none;
  }
  .invite-choice span,
  .invite-button {
    transition: none;
  }
}
/* Тясна страница (VIS-10): поканата почти до ръба, картата за отговор с 20px отстъп. */
@media (max-width: 576px) {
  .invite-page {
    padding: 24px 8px 32px;
  }
}
@container invpage (max-width: 560px) {
  .invite-rsvp {
    padding: 32px 20px;
  }
  .invite-rsvp h2 {
    font-size: 26px;
  }
}
a.invite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ---------- GDPR-09: „Вашите данни“ (панелът на госта в личната покана) ---------- */
#invite-main > [hidden] {
  display: none !important;
}
/* Текстов бутон-линк: „Вашите данни“ в колофона и „← Назад към поканата“ в панела. */
.invite-link-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.invite-footer .invite-link-button {
  display: block;
  margin: 4px auto 0;
  min-height: 24px;
  padding: 6px 8px;
  letter-spacing: inherit;
  text-transform: inherit;
}
.invite-data-back {
  margin: 0 0 8px;
  text-align: left;
}
.invite-data-back .invite-link-button {
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}
.invite-link-button:focus-visible,
.invite-data:focus-visible,
.invite-data-pending:focus-visible {
  outline: 2px solid var(--ev-text, #292725);
  outline-offset: 2px;
}
.invite-data {
  text-align: left;
  line-height: 1.55;
}
.invite-data h2 {
  text-align: center;
}
.invite-data-intro {
  text-align: center;
  margin: 0 0 20px;
  color: var(--ev-muted, #5b5751);
}
.invite-data-list {
  margin: 0 0 16px;
  border-top: 1px solid var(--ev-line, #dbceb2);
}
.invite-data-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ev-line, #dbceb2);
}
.invite-data-list dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ev-muted, #5b5751);
}
.invite-data-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
@media (max-width: 480px) {
  .invite-data-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.invite-data-note {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ev-muted, #5b5751);
}
.invite-data-note a,
.invite-data-confirm a,
.invite-data .invite-muted a {
  color: inherit;
  text-underline-offset: 3px;
}
.invite-data-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  cursor: pointer;
}
.invite-rsvp .invite-data-check {
  flex-direction: row;
}
.invite-rsvp .invite-data-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: var(--ev-primary, #8f6d23);
  flex: none;
}
.invite-data-check span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}
.invite-data-check small {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ev-muted, #5b5751);
}
.invite-data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.invite-data-confirm,
.invite-data-pending {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 10%, transparent);
}
.invite-data-status {
  margin: 12px 0 0;
  text-align: center;
  font-weight: 600;
}
.invite-data-status:empty {
  margin: 0;
}
.invite-data .invite-privacy {
  text-align: center;
}
/* „Поверителност · Вашите данни“ на един ред (визуално ревю N-1), като в сайта и албума. */
.invite-footer {
  text-align: center;
}
.invite-footer-legal {
  display: block;
  margin-top: 4px;
  text-align: center;
}
.invite-footer .invite-footer-legal .invite-footer-privacy,
.invite-footer .invite-footer-legal .invite-link-button {
  display: inline-block;
  margin: 0;
}
.invite-footer-sep {
  margin: 0 4px;
  opacity: 0.5;
}
/* Докато панелът „Вашите данни“ е отворен, колофонът не сочи към него (N-3). */
.invite-data-shown .invite-footer-sep,
.invite-data-shown #inv-data-open {
  display: none;
}

/* ---------- Спринт 3 A – RSVP: две стъпки, „Какво следва“, календар, хапче (docs/design/sprint3-ux.md) ----------
   По docs/design/prototypes/sprint3-invite.css, само с токените на събитието (--ev-*); резервните стойности са на
   „Шампанско“. Цели ≥ 44px, главните бутони ≥ 52px. Движението спира при prefers-reduced-motion. */
/* S1: контур на картата вместо „Зареждане…“. */
.invite-skeleton {
  height: min(70vh, 560px);
  border: 1px solid var(--ev-line, #dbceb2);
  border-radius: var(--ev-radius-card);
  background: var(--ev-surface, #fdfbf6);
  animation: invite-pulse 1.6s ease-in-out infinite;
}
@keyframes invite-pulse {
  50% {
    opacity: 0.55;
  }
}
.invite-loading {
  margin: 0;
  color: var(--ev-muted, #5b5751);
}
/* S2–S6: съобщение на мястото на поканата. */
.invite-state-text {
  margin: 0 0 12px;
  font-family: var(--ev-heading, 'Lora', Georgia, serif);
  font-size: 22px;
  line-height: 1.35;
  text-wrap: balance;
}
.invite-state .invite-button {
  margin-top: 20px;
}
/* Стъпка 1: двата избора – на цял ред един под друг в тясна колона. */
@container invpage (max-width: 560px) {
  .invite-choice {
    grid-template-columns: 1fr;
  }
}
.invite-choice span {
  box-sizing: border-box;
  min-height: 56px;
  padding: 8px 20px;
  font-size: 16px;
  letter-spacing: 0;
}
/* Стъпка 2: детайлите се разгръщат след избора. */
.invite-step,
.invite-yes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.invite-step[hidden],
.invite-yes[hidden],
.invite-msg[hidden],
.invite-cal-menu[hidden],
.invite-hint[hidden] {
  display: none;
}
.invite-step.is-open {
  animation: invite-open 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes invite-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.invite-stepper-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
}
.invite-stepper-row .invite-hint {
  grid-column: 1 / -1;
}
.invite-stepper-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.invite-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.invite-stepper-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ev-line-strong, #8a8680);
  border-radius: 999px;
  background: var(--ev-field, #fefdfb);
  color: var(--ev-text, #2e2a25);
  font: 400 22px/1 var(--ev-body, 'Montserrat', sans-serif);
  cursor: pointer;
  touch-action: manipulation;
}
.invite-stepper-btn[aria-disabled='true'] {
  border-color: var(--ev-line, #dbceb2);
  color: var(--ev-muted, #5b5751);
  cursor: default;
}
.invite-stepper-value {
  min-width: 2ch;
  text-align: center;
  font-family: var(--ev-heading, 'Lora', Georgia, serif);
  font-size: 22px;
  font-variant-numeric: lining-nums tabular-nums;
}
.invite-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ev-muted, #5b5751);
}
/* Менюто: до 4 опции – чипове-радио; 5–8 – падащо меню (стилът на полетата отгоре). */
.invite-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.invite-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invite-rsvp .invite-chip {
  position: relative;
  flex-direction: row;
  gap: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}
.invite-rsvp .invite-chip input {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  opacity: 0;
}
.invite-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  box-sizing: border-box;
  border: 1px solid var(--ev-line-strong, #8a8680);
  border-radius: 999px;
  background: var(--ev-field, #fefdfb);
  cursor: pointer;
}
.invite-chip input:checked + span {
  border-color: var(--ev-primary, #8f6d23);
  background: var(--ev-primary, #8f6d23);
  color: var(--ev-on-primary, #fff);
}
.invite-chip input:focus-visible + span,
.invite-stepper-btn:focus-visible,
.invite-cal-option:focus-visible,
.invite-pill:focus-visible,
.invite-rsvp h2:focus-visible,
.invite-note:focus-visible {
  outline: 2px solid var(--ev-text, #292725);
  outline-offset: 2px;
}
.invite-rsvp h2:focus:not(:focus-visible),
.invite-note:focus:not(:focus-visible) {
  outline: none;
}
/* „+ Добавете пожелание“: текстов бутон с икона. */
.invite-rsvp .invite-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 44px;
  padding: 0;
  color: var(--ev-primary-ink, #856623);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.invite-add span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.invite-add[hidden] {
  display: none;
}
.invite-submit {
  width: 100%;
  min-height: 52px;
  /* scrollIntoView({ block: 'nearest' }) след избора оставя въздух под бутона (и покрива отместването от
     анимацията на разгъването). */
  scroll-margin-bottom: 24px;
}
.invite-rsvp .invite-cancel {
  align-self: center;
  min-height: 44px;
  font-weight: 600;
}
/* S15: грешката е под бутона и остава до следващия опит. */
.invite-error {
  margin: 0;
  padding: 12px 16px;
  /* scrollIntoView({ block: 'nearest' }) след грешка оставя малко въздух под нея (UX R3.2). */
  scroll-margin-bottom: 16px;
  border: 1px solid var(--ev-line-strong, #8a8680);
  border-radius: var(--ev-radius-field);
  background: var(--ev-surface, #fdfbf6);
  color: var(--ev-text, #2e2a25);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.invite-error[hidden] {
  display: none;
}
/* „Какво следва“: благодарност, резюме и действия един под друг (едно главно). */
.invite-next {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.invite-next h2 {
  margin: 0;
}
.invite-thanks-orn {
  display: block;
  width: 96px;
  height: 12px;
  margin: 0 auto;
  fill: none;
  stroke: color-mix(in srgb, var(--ev-primary, #8f6d23) 70%, transparent);
}
.invite-thanks-orn .inv-orn-dot {
  fill: color-mix(in srgb, var(--ev-primary, #8f6d23) 70%, transparent);
  stroke: none;
}
.invite-thanks-celebrate .invite-thanks-orn {
  animation: invite-orn 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.invite-thanks-celebrate .invite-next h2 {
  animation: invite-rise 450ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes invite-orn {
  from {
    opacity: 0;
    transform: scaleX(0.3);
  }
}
/* Срокът под въпроса и подзаглавието на благодарността – без висяща година на отделен ред (визуално ревю P2-3). */
.invite-rsvp > .invite-muted,
.invite-next > .invite-muted {
  text-wrap: balance;
}
.invite-next > .invite-muted {
  font-size: 16px;
  line-height: 1.55;
}
.invite-note {
  margin: 0;
  font-family: var(--ev-heading, 'Lora', Georgia, serif);
  font-size: 20px;
  line-height: 1.45;
  text-wrap: balance;
}
.invite-muted.invite-note {
  font-family: inherit;
  font-size: 15px;
  color: var(--ev-muted, #5b5751);
}
.invite-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  /* Отдолу – зоната за докосване на „Промени отговора“ дава въздуха (визуално ревю P2-5). */
  padding: 16px 20px 4px;
  border: 1px solid var(--ev-line, #dbceb2);
  border-radius: var(--ev-radius-card);
  background: var(--ev-surface, #fdfbf6);
  text-align: left;
}
.invite-summary p {
  margin: 0;
}
.invite-summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ev-muted, #5b5751);
}
.invite-summary-main {
  font-size: 17px;
  font-weight: 600;
  text-wrap: balance;
}
.invite-summary .invite-table {
  margin: 6px 0 0;
  padding: 4px 14px;
  border-color: var(--ev-line-strong, #8a8680);
}
.invite-summary .invite-link-button {
  min-height: 44px;
  margin-top: 4px;
  padding: 0;
  color: var(--ev-primary-ink, #856623);
  font-weight: 600;
}
.invite-change-hint {
  font-size: 14px;
  line-height: 1.55;
}
.invite-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invite-actions .invite-button,
.invite-site .invite-button,
.invite-cal-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  text-decoration: none;
}
.invite-site .invite-button {
  width: auto;
  padding-inline: 28px;
}
.invite-icon {
  flex: none;
}
/* „Добави в календара“: разгъва се на място (не диалог); всяка опция ≥ 48px. */
.invite-cal {
  display: flex;
  flex-direction: column;
}
.invite-cal-menu {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--ev-line, #dbceb2);
  border-radius: var(--ev-radius-field);
  background: var(--ev-surface, #fdfbf6);
  box-shadow: var(--ev-shadow, 0 1px 2px rgba(41, 39, 37, 0.06), 0 12px 32px rgba(41, 39, 37, 0.1));
  text-align: left;
  overflow: hidden;
}
.invite-cal-menu li + li {
  border-top: 1px solid var(--ev-line, #dbceb2);
}
.invite-cal-option {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ev-text, #2e2a25);
  font-weight: 600;
  text-decoration: none;
}
.invite-cal-option:hover {
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 10%, var(--ev-surface, #fdfbf6));
}
.invite-cal-inapp {
  margin-top: 8px;
  text-align: left;
}
.invite-cal-status {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ev-muted, #5b5751);
}
.invite-cal-status:empty {
  display: none;
}
/* Плаващото хапче (UX-01): долу, в зоната на палеца; скрито – и недостъпно (inert). */
.invite-pill {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: min(360px, calc(100% - 32px));
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ev-primary, #8f6d23);
  color: var(--ev-on-primary, #fff);
  box-shadow: var(--ev-shadow, 0 1px 2px rgba(41, 39, 37, 0.06), 0 12px 32px rgba(41, 39, 37, 0.1));
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition:
    opacity 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 200ms;
}
.invite-pill.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
/* RD-07: на таблет без хапче – там закриваше мястото на поканата, а RSVP е веднага под картата. */
@media (min-width: 700px) and (max-width: 1099px) {
  .invite-pill {
    display: none;
  }
}
/* VIS-W1-02: на компютър – тънка връзка „Потвърдете присъствие ↓“ в долния десен ъгъл, извън картата: знак, че
   отдолу е RSVP, без да закрива нищо. */
@media (min-width: 1100px) {
  .invite-pill {
    left: auto;
    right: 24px;
    width: auto;
    min-height: 44px;
    padding: 8px 18px;
    border: 1px solid var(--ev-line, #dbceb2);
    background: var(--ev-surface, #fdfbf6);
    color: var(--ev-primary-ink, #6f5419);
    box-shadow: none;
    font-size: 14px;
    transform: translateY(12px);
  }
  .invite-pill.is-visible {
    transform: none;
  }
  .invite-pill::after {
    content: '↓';
    font-weight: 400;
  }
}
/* Два нарочни реда: призивът и под него срокът („до 1 декември“) – хапчето остава 52px (визуално ревю P1-3). */
.invite-pill > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}
.invite-pill small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (prefers-reduced-motion: reduce) {
  .invite-skeleton,
  .invite-step.is-open,
  .invite-thanks-celebrate .invite-thanks-orn,
  .invite-thanks-celebrate .invite-next h2 {
    animation: none;
  }
  .invite-pill {
    transition: none;
  }
}

/* ---------- Полиране покана (UT-14, UT-15) ---------- */
.invite-answered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 10px;
  margin: 0 auto 12px;
  padding: 2px 16px;
  max-width: 560px;
  border: 1px solid var(--ev-line, #dbceb2);
  border-radius: var(--ev-radius-card, 16px);
  background: var(--ev-surface, #fdfbf6);
  color: var(--ev-text, #292725);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.invite-answered .invite-link-button {
  min-height: 44px;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 600;
}
.invite-summary .invite-summary-note {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ev-muted, #5b5751);
  overflow-wrap: anywhere;
}
.invite-summary-note span {
  font-weight: 600;
  color: var(--ev-text, #292725);
}
.invite-wish-hint {
  margin: 6px 0 0;
}
.invite-wish-clear {
  min-height: 44px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}
.invite-wish-clear[hidden] {
  display: none;
}

/* Раздел „Меню“ (047): специалните менюта — под свой надслов; бележките за промяна на менютата; Ниво 1 — изискванията
   към храната директно към домакините, без здравна информация в посланието. */
/* Надсловът „Специални менюта“ — по-тих от „Меню“ над него, с нормални букви (UX P2-14), за да не прилича на нов човек. */
.invite-menu-sub {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ev-muted, #5b5751);
}
.invite-menu .invite-menu-note {
  text-align: left;
}
.invite-menu-note:focus {
  outline: 2px solid var(--ev-primary, #8f6d23);
  outline-offset: 2px;
}
.invite-diet {
  padding-top: 4px;
}
.invite-msg-note {
  margin-top: 6px;
}
/* „Какво включва“ избраното меню. */
.invite-menu-info {
  padding: 12px 16px;
  border: 1px solid var(--ev-line, #d9d2c3);
  border-left: 3px solid var(--ev-primary, #8f6d23);
  border-radius: var(--ev-radius-field, 2px);
  background: var(--ev-field, #fefdfb);
  color: var(--ev-text, #292725);
  font-size: 14px;
  line-height: 1.55;
}
.invite-menu-info[hidden] {
  display: none;
}
.invite-menu-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-muted, #5b5751);
}
.invite-menu-info p {
  margin: 0;
  overflow-wrap: anywhere;
}
/* Меню по секции (066): секциите с малки главни в основния цвят, ястията с шрифта на заглавията, бележката под ястието. */
.invite-menu-secs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.invite-menu-sec-t {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ev-primary, #8f6d23);
}
.invite-menu-sec ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.invite-menu-sec li {
  font-family: var(--ev-heading, Georgia, serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.invite-menu-sec li small {
  display: block;
  font-family: var(--ev-body, inherit);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
  color: var(--ev-muted, #5b5751);
}

/* ---------- Хората в отговора (миграция 044): гостът и всеки придружител и дете с име и меню ---------- */
.invite-party {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invite-party[hidden] {
  display: none;
}
.invite-person {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--ev-line, #d9d2c3);
  border-radius: var(--ev-radius-field);
  background: var(--ev-surface, #fdfbf6);
}
/* Гостът: само ред с името над менюто си, без рамка. */
.invite-rsvp .invite-person-self {
  padding: 0;
  border: 0;
  background: transparent;
}
.invite-person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  /* Място за „×“ горе вдясно. */
  padding-right: 40px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.invite-person-self .invite-person-head {
  padding-right: 0;
}
.invite-person-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-muted, #5b5751);
}
.invite-person-head strong {
  font-family: var(--ev-heading, 'Lora', Georgia, serif);
  font-weight: 500;
  font-size: 18px;
}
.invite-person-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ev-muted, #5b5751);
  cursor: pointer;
  touch-action: manipulation;
}
.invite-person-remove:hover {
  color: var(--ev-text, #292725);
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 8%, transparent);
}
.invite-person-remove:focus-visible,
.invite-party-btn:focus-visible {
  outline: 2px solid var(--ev-text, #292725);
  outline-offset: 2px;
}
.invite-rsvp .invite-person input[aria-invalid='true'] {
  border-color: var(--ev-text, #292725);
  box-shadow: inset 3px 0 0 var(--ev-primary, #8f6d23);
}
.invite-party-add {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.invite-party-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.invite-party-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border: 1px solid var(--ev-primary, #8f6d23);
  border-radius: 999px;
  background: transparent;
  color: var(--ev-primary-ink, #856623);
  font: 600 15px/1.2 var(--ev-body, 'Montserrat', sans-serif);
  cursor: pointer;
  touch-action: manipulation;
}
.invite-party-btn:hover {
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 8%, transparent);
}
.invite-party-btn[hidden] {
  display: none;
}
/* „Вашият отговор“: всеки човек и менюто му. */
.invite-summary-party {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.invite-summary-who {
  font-weight: 600;
}
