[data-group-friends][hidden], .group-recent[hidden], .group-dialog [hidden] { display: none !important; }
.group-start-button { flex-shrink: 0; }
.group-dialog { width: min(540px, calc(100vw - 24px)); padding: 30px; }
.group-dialog-heading { padding-right: 28px; margin-bottom: 22px; }
.group-dialog-heading h2 { margin: 0; font-size: clamp(1.65rem, 6vw, 2.15rem); line-height: 1.22; font-weight: 750; }
.group-dialog-heading p, .group-note { margin: 9px 0 0; color: #c6c6c6; font-size: .89rem; line-height: 1.6; }
.group-dialog .group-message { margin: 16px 0 0; padding: 10px 12px; color: #ffe999; border: 1px solid #776536; }
.group-dialog .group-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.group-stats > span { display: flex; justify-content: space-between; align-items: center; gap: 7px; color: #d1d1d1; border: 1px solid #444; background: #222; padding: 10px 14px; font-size: .9rem; }
.group-stats strong { color: #ffed00; font-size: 1.16rem; font-variant-numeric: tabular-nums; }
.group-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.group-options legend, .group-block h3 { margin: 0 0 12px; color: #f4f4f4; font-weight: 700; font-size: .98rem; }
.group-options.group-payment { margin-bottom: 18px; }
.group-payment .group-choice { min-height: 44px; }
.group-payment input[type="radio"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #ffed00; }
.group-dialog .group-ticket-note { padding: 10px 12px; border-left: 2px solid #ffed00; background: #222; color: #f4f4f4; }
.group-choice, .group-review-list li { display: flex; min-height: 54px; align-items: center; gap: 12px; padding: 9px 12px; }
.group-choice { background: #222; border: 1px solid #444; margin-bottom: 7px; cursor: pointer; }
.group-choice:has(input:checked) { border-color: #ffed00; background: #2b2810; }
.group-choice:has(:disabled) { color: #bdbdbd; cursor: default; }
.group-choice--self { cursor: default; }
.group-choice > span:first-of-type:not(.group-self-mark) { flex: 1; }
.group-self-mark { color: #ffed00; font-size: 1.1rem; min-width: 20px; text-align: center; }
.group-choice input[type="checkbox"], .group-consent input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #ffed00; }
.group-dialog small, .group-recent small { font-size: .75rem; color: #c9c9c9; }
.group-dialog span > small, .group-recent small, .group-friend-name small { display: block; }
.group-review-list { padding: 0; margin: 0 0 18px; list-style: none; background: #222; border: 1px solid #444; }
.group-review-list li { justify-content: space-between; }
.group-review-list li + li { border-top: 1px solid #444; }
.group-review-list strong { color: #fff; }
.group-row-actions { display: flex; align-items: center; gap: 12px; }
.group-text-button { border: 0; background: transparent; color: #ffed00; padding: 6px 0; font: inherit; font-size: .82rem; cursor: pointer; }
.group-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 22px; }
.group-actions > :only-child { grid-column: 1 / -1; }
.group-actions .button, .group-recent .button { white-space: normal; min-width: 0; min-height: 44px; text-align: center; }
.group-actions button:disabled { opacity: .58; cursor: default; }
.group-consent { display: flex; gap: 10px; align-items: start; margin: 15px 0 8px; padding: 12px; background: #222; line-height: 1.55; font-size: .8rem; }
.group-consent a { color: #ffed00; }
.group-consent-phrase { white-space: nowrap; }
.group-block { margin-top: 18px; border-top: 1px solid #484848; padding-top: 16px; }
.group-block p { margin: 0; color: #c6c6c6; }
.group-friend-row { padding: 11px; background: #222; margin: 0 0 8px; }
.group-friend-header, .group-recent-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.group-friend-name { font-weight: 650; }
.group-label-form, .group-code-form, .group-correction-form { margin-top: 10px; color: #e4e4e4; font-size: .85rem; }
.group-label-form { display: flex; align-items: end; gap: 8px; }
.group-label-form label { flex: 1; min-width: 0; }
.group-code-form .button, .group-label-form .button { min-height: 42px; }
.group-dialog input[type="text"], .group-dialog input[name="code"], .group-dialog select { width: 100%; margin-top: 4px; padding: 9px 10px; min-height: 44px; color: #fff; background: #191919; border: 1px solid #666; font: inherit; box-sizing: border-box; }
.group-correction-form > label { display: block; margin: 14px 0; }
.group-correction-summary { color: #ffed00; padding: 10px 12px; border: 1px solid #77702b; background: #2b2810; font-weight: 650; }
.group-code-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #494949;
  border-radius: 8px;
  background: #191919;
}
.group-code-display .button { width: auto; white-space: nowrap; }
.group-code-display h3 { margin: 0; font-size: .875rem; line-height: 1.4; }
.group-code-display strong {
  display: block;
  margin-top: 4px;
  color: #ffed00;
  font-family: monospace;
  font-size: clamp(.97rem, 4.5vw, 1.16rem);
  line-height: 1.4;
  white-space: nowrap;
}
.group-recent-row { margin: 0 0 12px; padding: 12px; border: 1px solid #494949; }
.group-dialog :focus-visible { outline: 2px solid #ffed00; outline-offset: 3px; }
.group-dialog h2:focus { outline: none; }
@media (max-width: 520px) {
  .group-dialog { padding: 22px 16px; }
  .group-dialog-heading { margin-bottom: 18px; }
  .group-stats > span { padding-inline: 9px; }
  .group-actions .button, .group-recent .button { padding-inline: 8px; font-size: .82rem; }
}

.booking-tabs:has(#history-tab[aria-selected="true"]) + .group-recent { display: none; }
.group-dialog-heading p > span { display: block; }
.group-label-settings summary { cursor: pointer; width: fit-content; color: #c9c9c9; font-size: .78rem; }
.group-label-settings[open] { padding-bottom: 4px; }

.group-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #e2e2e2;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.group-icon-button:is(:hover, :focus-visible) { color: #ffed00; border-color: #676136; background: #2b2810; }
.group-icon-button:active { background: #3a350e; }
.group-minus-mark { display: block; position: relative; width: 18px; height: 18px; }
.group-minus-mark::before {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.group-step-enter { animation: group-step-enter 175ms cubic-bezier(.33,1,.68,1) both; }
@keyframes group-step-enter {
  from { opacity: .52; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .group-step-enter { animation: none; }
  .group-icon-button { transition: none; }
}

.group-review-choice { transition: background-color 150ms ease, color 150ms ease; }
.group-review-choice:has(input:not(:checked)) { background: #1b1b1b; color: #bcbcbc; }
.group-review-list .group-review-choice { padding: 0; }
.group-review-choice > label { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; margin: 0; padding: 9px 12px; cursor: pointer; }
.group-review-choice input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #ffed00; }
.group-review-choice label > span { flex: 1; }
.group-friends-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 14px; }
.group-friends-nav button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  color: #d6d6d6;
  background: #222;
  border: 1px solid #555;
  border-radius: 6px;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}
.group-friends-nav button[aria-pressed="true"] { border-color: #fff000; color: #fff000; background: #2b2810; }
.group-friends-nav span { white-space: nowrap; }
.group-tab-count { font-size: .75rem; }

.group-dialog .group-registration-terms {
  min-width: 0;
  margin: 14px 0 12px;
  padding: 10px 12px 8px;
  border: 1px solid #454545;
  border-radius: 8px;
  background: #1d1d1d;
}
.group-registration-terms legend { padding: 0 5px; color: #f4f4f4; font-size: .84rem; font-weight: 700; }
.group-registration-terms ul { margin: 0; padding-inline-start: 1.2em; list-style: disc; color: #dedede; font-size: .8125rem; line-height: 1.55; }
.group-registration-terms li + li { margin-top: 4px; }
.group-registration-terms li > span { display: inline-block; white-space: nowrap; }
.group-registration-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 10px; margin-top: 5px; }
.group-dialog .group-registration-actions label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-weight: 650; cursor: pointer; }
.group-dialog .group-registration-actions input { width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: #ffed00; }
.group-registration-actions a { display: inline-flex; align-items: center; min-height: 44px; color: #ffed00; }
.group-dialog .group-recipient-code { display: grid; gap: 6px; margin: 0; font-weight: 700; }
.group-dialog .group-recipient-code > input { margin: 0; }
.group-dialog .group-code-form > button[type="submit"] { width: 100%; }

.group-friend-view .group-block:first-child { border-top: 0; padding-top: 4px; margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .group-review-choice { transition: none; }
}
