/* RES-17 — isolated, mobile-first booking surface */
.tr-booking,
.tr-booking *,
.tr-booking *::before,
.tr-booking *::after {
    box-sizing: border-box;
}

.tr-booking {
    --tr-blue: #1a73e8;
    --tr-blue-dark: #1558b0;
    --tr-text: #202124;
    --tr-muted: #5f6368;
    --tr-subtle: #80868b;
    --tr-border: #dadce0;
    --tr-border-soft: #e8eaed;
    --tr-surface: #fff;
    --tr-surface-soft: #f8f9fa;
    --tr-success: #137333;
    --tr-success-bg: #e6f4ea;
    --tr-danger: #b3261e;
    --tr-danger-bg: #fff4f4;
    --tr-radius: 18px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 26px;
    border: 1px solid rgba(60, 64, 67, .16);
    border-radius: var(--tr-radius);
    background: var(--tr-surface);
    color: var(--tr-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .08), 0 4px 14px rgba(60, 64, 67, .08);
    text-align: left;
    -webkit-font-smoothing: antialiased;
    min-width: 0;
    max-inline-size: 580px;
    isolation: isolate;
    overflow-wrap: anywhere;
}

/* Builder/theme boundary: keep host typography, neutralize layout chrome. */
.tr-booking form,
.tr-booking fieldset {
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
}

.tr-booking button,
.tr-booking input,
.tr-booking textarea,
.tr-booking select,
.tr-booking a {
    max-width: 100%;
}

.tr-booking button::before,
.tr-booking button::after,
.tr-booking .tr-link-button::before,
.tr-booking .tr-link-button::after {
    content: none !important;
}

.tr-booking button,
.tr-booking .tr-link-button {
    text-decoration: none !important;
    text-shadow: none !important;
}

.tr-booking img,
.tr-booking svg {
    max-width: 100%;
}

.tr-booking[hidden],
.tr-booking [hidden] {
    display: none !important;
}

.tr-booking button,
.tr-booking input,
.tr-booking textarea,
.tr-booking select {
    margin: 0;
    font: inherit;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
}

.tr-booking button,
.tr-booking input[type="button"],
.tr-booking input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
}

.tr-booking button:focus-visible,
.tr-booking input:focus-visible,
.tr-booking textarea:focus-visible,
.tr-booking a:focus-visible {
    outline: 3px solid rgba(26, 115, 232, .28);
    outline-offset: 2px;
}

.tr-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tr-booking__header {
    margin: 0 0 20px;
}

.tr-booking__eyebrow {
    margin: 0 0 5px;
    color: var(--tr-blue);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.tr-booking__title,
.tr-booking h2.tr-booking__title {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--tr-text);
    font-size: clamp(1.45rem, 4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.22;
}

.tr-booking__subtitle {
    margin: 8px 0 0;
    color: var(--tr-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.tr-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 24px !important;
    padding: 0 !important;
    list-style: none !important;
}

.tr-steps__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin: 0 !important;
    color: var(--tr-subtle);
    font-size: .72rem;
    font-weight: 650;
    text-align: center;
}

.tr-steps__item::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 50%;
    left: -50%;
    height: 2px;
    background: var(--tr-border-soft);
    z-index: 0;
}

.tr-steps__item:first-child::before {
    display: none;
}

.tr-steps__number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--tr-border);
    border-radius: 999px;
    background: var(--tr-surface);
    color: var(--tr-muted);
    font-size: .75rem;
    font-weight: 750;
}

.tr-steps__item.is-current,
.tr-steps__item.is-complete {
    color: var(--tr-text);
}

.tr-steps__item.is-current .tr-steps__number {
    border-color: var(--tr-blue);
    background: var(--tr-blue);
    color: #fff;
}

.tr-steps__item.is-complete .tr-steps__number {
    border-color: var(--tr-success);
    background: var(--tr-success-bg);
    color: var(--tr-success);
}

.tr-steps__item.is-complete::before,
.tr-steps__item.is-current::before {
    background: rgba(26, 115, 232, .35);
}

.tr-booking__section {
    margin: 0;
}

.tr-booking__section + .tr-booking__section {
    margin-top: 22px;
}

.tr-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 9px;
}

.tr-booking__label {
    display: block;
    margin: 0;
    color: #3c4043;
    font-size: .84rem;
    font-weight: 700;
}

.tr-booking__helper {
    color: var(--tr-subtle);
    font-size: .75rem;
    line-height: 1.3;
    text-align: right;
}

.tr-guests {
    display: inline-grid;
    grid-template-columns: 48px minmax(76px, auto) 48px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--tr-border);
    border-radius: 13px;
    background: var(--tr-surface);
}

.tr-guests__button {
    display: grid;
    min-width: 48px;
    min-height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--tr-blue);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.tr-guests__button:hover:not(:disabled) {
    background: #f1f3f4;
}

.tr-guests__button:disabled {
    color: #bdc1c6;
    cursor: not-allowed;
}

.tr-guests__value {
    min-width: 76px;
    padding: 0 8px;
    color: var(--tr-text);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.tr-date-shortcuts {
    display: grid;
    grid-auto-columns: minmax(76px, 1fr);
    grid-auto-flow: column;
    gap: 8px;
    margin: 0 0 10px;
    padding: 1px 1px 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
}

.tr-date-chip {
    min-width: 76px;
    min-height: 58px;
    padding: 7px 9px;
    border: 1px solid var(--tr-border);
    border-radius: 12px;
    background: var(--tr-surface);
    color: var(--tr-text);
    cursor: pointer;
    scroll-snap-align: start;
    text-align: center;
}

.tr-date-chip:hover {
    border-color: #a8c7fa;
    background: #f8fbff;
}

.tr-date-chip[aria-pressed="true"] {
    border-color: var(--tr-blue);
    background: #e8f0fe;
    color: #174ea6;
}

.tr-date-chip__day,
.tr-date-chip__date {
    display: block;
}

.tr-date-chip__day {
    font-size: .72rem;
    font-weight: 650;
}

.tr-date-chip__date {
    margin-top: 2px;
    font-size: .9rem;
    font-weight: 750;
}

.tr-date-field {
    position: relative;
}

.tr-date-field__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--tr-muted);
    font-size: .85rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.tr-date {
    width: 100%;
    min-height: 50px;
    padding: 0 14px 0 40px !important;
    border: 1px solid var(--tr-border) !important;
    border-radius: 12px !important;
    background: var(--tr-surface) !important;
    color: var(--tr-text) !important;
    font: inherit !important;
    line-height: normal;
}

.tr-date:hover {
    border-color: #a8c7fa !important;
}

.tr-date:focus-visible {
    border-color: var(--tr-blue) !important;
}

.tr-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    min-height: 46px;
}

.tr-slot,
.tr-slot-skeleton {
    min-height: 46px;
    border-radius: 999px;
}

.tr-slot {
    padding: 8px 12px;
    border: 1px solid var(--tr-border);
    background: var(--tr-surface);
    color: var(--tr-blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}

.tr-slot:hover:not(:disabled) {
    border-color: var(--tr-blue);
    background: #f4f8ff;
}

.tr-slot:active:not(:disabled) {
    transform: scale(.98);
}

.tr-slot[aria-pressed="true"] {
    border-color: var(--tr-blue);
    background: var(--tr-blue);
    color: #fff;
}

.tr-slot:disabled {
    opacity: .55;
    cursor: wait;
}

.tr-slot-skeleton {
    position: relative;
    overflow: hidden;
    background: #eef0f2;
}

.tr-slot-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
    animation: tr-shimmer 1.15s infinite;
}

@keyframes tr-shimmer {
    100% { transform: translateX(100%); }
}

.tr-booking__hint {
    grid-column: 1 / -1;
    margin: 0;
    padding: 14px;
    border-radius: 12px;
    background: var(--tr-surface-soft);
    color: var(--tr-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.tr-booking__hint--error {
    background: var(--tr-danger-bg);
    color: #8c1d18;
}

.tr-booking__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.tr-primary,
.tr-secondary,
.tr-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.tr-primary {
    border: 1px solid var(--tr-blue) !important;
    background: var(--tr-blue) !important;
    color: #fff !important;
}

.tr-primary:hover:not(:disabled) {
    border-color: var(--tr-blue-dark) !important;
    background: var(--tr-blue-dark) !important;
}

.tr-primary:active:not(:disabled),
.tr-secondary:active:not(:disabled) {
    transform: translateY(1px);
}

.tr-primary:disabled,
.tr-secondary:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.tr-primary:disabled {
    border-color: #dadce0 !important;
    background: #dadce0 !important;
    color: #6f7478 !important;
}

.tr-secondary {
    border: 1px solid var(--tr-border) !important;
    background: var(--tr-surface) !important;
    color: var(--tr-blue) !important;
}

.tr-secondary:hover:not(:disabled) {
    border-color: var(--tr-blue) !important;
    background: var(--tr-surface-soft) !important;
}

.tr-booking__status {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--tr-surface-soft);
    color: #3c4043;
    font-size: .9rem;
    line-height: 1.45;
}

.tr-booking__status[data-type="error"] {
    background: var(--tr-danger-bg);
    color: #8c1d18;
}

.tr-booking__status[data-type="success"] {
    background: var(--tr-success-bg);
    color: var(--tr-success);
}

.tr-booking__paused {
display: flex;
    gap: 12px;
    padding: 18px;
    border: 1px solid #f1c7c7;
    border-radius: 14px;
    background: #fff8f8;
    flex-direction: column;
    align-items: center;
    border-radius: 0 !important;
}

.tr-booking__state-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #fce8e6;
    color: var(--tr-danger);
    font-weight: 800;
}

.tr-booking__paused strong {
    display: block;
    margin-bottom: 7px;
    color: #8c1d18;
    font-size: 1rem;
}

.tr-booking__paused p {
    margin: 0;
    color: #3c4043;
    line-height: 1.5;
}

.tr-booking__paused .tr-booking__paused-until {
    margin-top: 10px;
    color: var(--tr-muted);
    font-size: .9rem;
}

.tr-book-notices {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid #f2d29b;
    border-radius: 12px;
    background: #fff8e8;
    color: #5f4b18;
    font-size: .9rem;
}

.tr-book-notices__item {
    margin: 0;
}

.tr-book-notices__item + .tr-book-notices__item {
    margin-top: 8px;
}

.tr-hold-summary {
    padding: 6px 0 2px;
    text-align: center;
}

.tr-hold-summary__icon,
.tr-success__icon {
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tr-success-bg);
    color: var(--tr-success);
    font-weight: 800;
}

.tr-hold-summary__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.tr-hold-summary h3,
.tr-success h3 {
    margin: 0;
    padding: 0;
    color: var(--tr-text);
    font-weight: 700;
    line-height: 1.3;
}

.tr-hold-summary h3 {
    font-size: 1.25rem;
}

.tr-hold-summary__meta {
    margin: 10px 0 0;
    color: #3c4043;
    font-weight: 650;
}

.tr-hold-summary__expiry {
    margin: 7px 0 0;
    color: var(--tr-muted);
    font-size: .9rem;
}

.tr-details {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--tr-border-soft);
    text-align: left;
}

.tr-details__heading {
    margin-bottom: 16px;
}

.tr-details__heading h4 {
    margin: 0;
    padding: 0;
    color: var(--tr-text);
    font-size: 1rem;
    font-weight: 700;
}

.tr-details__heading p {
    margin: 4px 0 0;
    color: var(--tr-muted);
    font-size: .82rem;
}

.tr-details__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tr-field {
    display: block;
    margin-top: 14px;
}

.tr-details__grid .tr-field {
    margin-top: 0;
}

.tr-field > span {
    display: block;
    margin-bottom: 7px;
    color: #3c4043;
    font-size: .82rem;
    font-weight: 700;
}

.tr-field small {
    color: var(--tr-subtle);
    font-weight: 400;
}

.tr-field input,
.tr-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px !important;
    border: 1px solid var(--tr-border) !important;
    border-radius: 11px !important;
    background: var(--tr-surface) !important;
    color: var(--tr-text) !important;
    font: inherit !important;
}

.tr-field textarea {
    min-height: 96px;
    resize: vertical;
}

.tr-field input:hover,
.tr-field textarea:hover {
    border-color: #a8c7fa !important;
}

.tr-field input:focus-visible,
.tr-field textarea:focus-visible {
    border-color: var(--tr-blue) !important;
}

.tr-field input[aria-invalid="true"],
.tr-field textarea[aria-invalid="true"] {
    border-color: var(--tr-danger) !important;
}

.tr-details__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.tr-success {
    padding: 8px 0 4px;
    text-align: center;
}

.tr-success__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    font-size: 1.55rem;
}

.tr-success h3 {
    font-size: 1.35rem;
}

.tr-success__meta {
    margin: 10px 0 20px;
    color: #3c4043;
    font-weight: 650;
}

.tr-success__reference {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: min(100%, 250px);
    padding: 14px 20px;
    border-radius: 13px;
    background: var(--tr-surface-soft);
}

.tr-success__reference span {
    color: var(--tr-muted);
    font-size: .78rem;
}

.tr-success__reference strong {
    color: var(--tr-text);
    font-size: 1.05rem;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
}

.tr-success__note {
    margin: 14px 0 0;
    color: var(--tr-muted);
    font-size: .88rem;
}

.tr-success__manage {
    margin-top: 14px;
}

@media (max-width: 600px) {
    .tr-booking {
        max-width: none;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .tr-booking__header {
        margin-bottom: 18px;
    }

    .tr-steps {
        margin-bottom: 20px !important;
    }

    .tr-section-heading {
        align-items: flex-start;
    }

    .tr-booking__helper {
        max-width: 48%;
    }

    .tr-date-shortcuts {
        margin-right: -16px;
        padding-right: 16px;
    }

    .tr-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-booking__footer,
    .tr-details__actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-right: -16px;
        margin-left: -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(218, 220, 224, .8);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(10px);
    }

    .tr-booking__footer .tr-primary {
        width: 100%;
    }

    .tr-details__grid {
        grid-template-columns: 1fr;
    }

    .tr-details__actions {
        flex-direction: column-reverse;
    }

    .tr-details__actions .tr-primary,
    .tr-details__actions .tr-secondary {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .tr-booking {
        padding-right: 12px;
        padding-left: 12px;
    }

    .tr-slots {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .tr-date-chip {
        min-width: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tr-booking *,
    .tr-booking *::before,
    .tr-booking *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .tr-slot[aria-pressed="true"],
    .tr-date-chip[aria-pressed="true"],
    .tr-primary {
        border: 2px solid ButtonText !important;
    }
}

/* RES-15 — secure reservation management */
.tr-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tr-success__manage {
    margin-top: 14px;
}

.tr-manage-page {
    margin: 0;
    min-height: 100vh;
    background: #f6f7f8;
    color: #1f1f1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tr-manage-shell {
    width: min(100% - 32px, 620px);
    margin: 0 auto;
    padding: 40px 0 64px;
}

.tr-manage-home {
    display: inline-flex;
    margin-bottom: 18px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.tr-manage-card {
    width: 100%;
    box-sizing: border-box;
}

.tr-manage-loading {
    padding: 24px 0 4px;
    color: #5f6368;
}

.tr-manage-reference {
    display: grid;
    gap: 4px;
    margin: 8px 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f6f7f8;
}

.tr-manage-reference span,
.tr-manage-summary dt {
    color: #5f6368;
    font-size: 13px;
}

.tr-manage-reference strong {
    font-size: 18px;
    letter-spacing: .02em;
}

.tr-manage-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.tr-manage-summary > div {
    padding: 14px 16px;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
}

.tr-manage-summary dt,
.tr-manage-summary dd {
    margin: 0;
}

.tr-manage-summary dd {
    margin-top: 5px;
    font-weight: 650;
}

.tr-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tr-danger {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    background: #b3261e;
    color: #fff;
    font: inherit;
    font-weight: 650;
}

.tr-danger:disabled {
    cursor: wait;
    opacity: .6;
}

@media (max-width: 560px) {
    .tr-manage-shell {
        width: min(100% - 20px, 620px);
        padding-top: 20px;
    }

    .tr-manage-summary {
        grid-template-columns: 1fr;
    }

    .tr-manage-actions > * {
        width: 100%;
        box-sizing: border-box;
    }
}


/* Narrow page-builder columns should collapse cleanly without horizontal overflow. */
@container (max-width: 420px) {
    .tr-booking .tr-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tr-booking .tr-details__grid {
        grid-template-columns: 1fr;
    }
}

/* Container queries are progressive enhancement; viewport fallback remains below. */
.tr-booking {
    container-type: inline-size;
}

/* RES-18A — premium visual refinement */
.tr-booking {
    --tr-blue: #2563eb;
    --tr-blue-dark: #1d4ed8;
    --tr-text: #111827;
    --tr-muted: #667085;
    --tr-subtle: #98a2b3;
    --tr-border: #dfe3e8;
    --tr-border-soft: #edf0f3;
    --tr-surface-soft: #f8fafc;
    --tr-radius: 14px;
    max-width: 620px;
    max-inline-size: 620px;
    padding: 28px 30px 30px;
    border-color: rgba(17, 24, 39, .10);
    border-radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .08), 0 2px 8px rgba(15, 23, 42, .04);
}

.tr-booking__header {
    margin-bottom: 22px;
}

.tr-booking__eyebrow {
    display: none;
}

.tr-booking__title,
.tr-booking h2.tr-booking__title {
    font-size: clamp(1.55rem, 4vw, 1.9rem);
    font-weight: 720;
    letter-spacing: -.025em;
}

.tr-booking__subtitle {
    max-width: 500px;
    margin-top: 7px;
    font-size: .92rem;
    line-height: 1.5;
}

.tr-steps {
    margin-bottom: 26px !important;
}

.tr-steps__item {
    gap: 6px;
    font-size: .71rem;
    font-weight: 600;
}

.tr-steps__number {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: .72rem;
}

.tr-steps__item::before {
    top: 12px;
    height: 1px;
}

.tr-booking__section + .tr-booking__section {
    margin-top: 20px;
}

.tr-section-heading {
    margin-bottom: 8px;
}

.tr-booking__label {
    color: #344054;
    font-size: .82rem;
    font-weight: 650;
}

.tr-booking__helper {
    font-size: .73rem;
}

.tr-guests {
    grid-template-columns: 44px minmax(72px, auto) 44px;
    border-radius: 10px;
}

.tr-guests__button {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.2rem;
}

.tr-date-chip {
    min-height: 56px;
    border-radius: 10px;
}

.tr-date-chip[aria-pressed="true"] {
    border-color: #93b4ff;
    background: #eef4ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .08);
}

.tr-date {
    min-height: 46px;
    border-radius: 10px !important;
}

.tr-slots {
    gap: 8px;
}

.tr-slot,
.tr-slot-skeleton {
    min-height: 44px;
    border-radius: 10px;
}

.tr-slot {
    padding: 8px 12px;
    color: #1d4ed8;
    font-weight: 650;
}

.tr-slot:hover:not(:disabled) {
    border-color: #8fb0f8;
    background: #f7f9ff;
}

.tr-slot[aria-pressed="true"] {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 5px 14px rgba(29, 78, 216, .18);
}

.tr-primary,
.tr-secondary,
.tr-link-button {
    min-height: 46px;
    padding-inline: 20px;
    border-radius: 10px;
    font-weight: 650;
}

.tr-primary {
    box-shadow: 0 5px 14px rgba(37, 99, 235, .18);
}

.tr-primary:disabled {
    box-shadow: none;
}

.tr-booking__status,
.tr-booking__hint,
.tr-book-notices,
.tr-booking__paused {
    border-radius: 10px;
}

.tr-hold-summary {
    width: min(100%, 500px);
    margin-inline: auto;
    padding-top: 2px;
}

.tr-hold-summary__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tr-hold-summary h3 {
    font-size: 1.16rem;
    letter-spacing: -.01em;
}

.tr-hold-summary__meta {
    margin-top: 7px;
    font-size: .92rem;
}

.tr-hold-summary__expiry {
    margin-top: 4px;
    font-size: .82rem;
}

.tr-details {
    margin-top: 16px;
    padding-top: 16px;
}

.tr-details__heading {
    margin-bottom: 11px;
}

.tr-details__heading h4 {
    font-size: .96rem;
}

.tr-details__heading p {
    margin-top: 2px;
    font-size: .77rem;
}

.tr-details__grid {
    gap: 10px;
}

.tr-field {
    margin-top: 10px;
}

.tr-field > span {
    margin-bottom: 5px;
    font-size: .78rem;
    font-weight: 650;
}

.tr-field input,
.tr-field textarea {
    min-height: 44px;
    padding: 9px 11px !important;
    border-radius: 9px !important;
    font-size: .92rem !important;
}

.tr-field textarea {
    min-height: 78px;
}

.tr-details__actions {
    margin-top: 16px;
}

.tr-success {
    padding-top: 3px;
}

.tr-success__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
}

@media (max-width: 560px) {
    .tr-booking {
        padding: 20px 16px 18px;
        border-radius: 12px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    }

    .tr-booking__header {
        margin-bottom: 18px;
    }

    .tr-booking__footer,
    .tr-details__actions {
        border-top-color: rgba(223, 227, 232, .9);
    }
}

/* RES-18B — quantity control + compact premium details */
.tr-booking {
    --tr-ink: #101828;
    --tr-line: #e4e7ec;
    --tr-soft: #f9fafb;
    --tr-focus-ring: rgba(37, 99, 235, .16);
    max-width: 620px;
    max-inline-size: 620px;
    padding: 30px 32px 32px;
    border: 1px solid rgba(16, 24, 40, .09);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .08), 0 2px 8px rgba(16, 24, 40, .035);
}

.tr-booking__title,
.tr-booking h2.tr-booking__title {
    color: var(--tr-ink);
    font-size: clamp(1.5rem, 4vw, 1.82rem);
    font-weight: 700;
    letter-spacing: -.03em;
}

.tr-booking__subtitle {
    color: #667085;
    font-size: .9rem;
}

/* Guests must always be exactly 3 visible cells: minus | value | plus. */
.tr-booking .tr-guests {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    grid-template-rows: 48px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    align-items: stretch !important;
    overflow: hidden !important;
    border: 1px solid var(--tr-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
}

.tr-booking .tr-guests > [data-tr-guests-decrease],
.tr-booking .tr-guests > [data-tr-guests-increase] {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #344054 !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.tr-booking .tr-guests > [data-tr-guests-decrease] {
    grid-column: 1 !important;
    border-right: 1px solid var(--tr-line) !important;
}

.tr-booking .tr-guests > .tr-guests__value {
    grid-column: 2 !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    place-items: center !important;
    background: var(--tr-soft) !important;
    color: var(--tr-ink) !important;
    font-size: .98rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.tr-booking .tr-guests > [data-tr-guests-increase] {
    grid-column: 3 !important;
    border-left: 1px solid var(--tr-line) !important;
}

.tr-booking .tr-guests > input[type="hidden"],
.tr-booking .tr-guests > [data-tr-guests-input] {
    display: none !important;
    grid-column: auto !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.tr-booking .tr-guests > [data-tr-guests-decrease]:hover:not(:disabled),
.tr-booking .tr-guests > [data-tr-guests-increase]:hover:not(:disabled) {
    background: #f8fafc !important;
    color: #1d4ed8 !important;
}

.tr-booking .tr-guests > [data-tr-guests-decrease]:focus-visible,
.tr-booking .tr-guests > [data-tr-guests-increase]:focus-visible {
    position: relative;
    z-index: 1;
    outline: 0 !important;
    box-shadow: inset 0 0 0 2px #2563eb !important;
}

/* Keep step 2 deliberately narrower and denser than the selection step. */
.tr-hold-summary {
    width: min(100%, 470px);
    margin-inline: auto;
    padding-top: 0;
}

.tr-hold-summary__icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    background: #ecfdf3;
    color: #067647;
    font-size: 1rem;
}

.tr-hold-summary h3 {
    color: var(--tr-ink);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -.018em;
}

.tr-hold-summary__meta {
    width: min(100%, 430px);
    margin: 8px auto 0;
    padding: 9px 12px;
    border: 1px solid #eaecf0;
    border-radius: 9px;
    background: #f9fafb;
    color: #344054;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
}

.tr-hold-summary__expiry {
    margin-top: 5px;
    color: #667085;
    font-size: .76rem;
}

.tr-details {
    width: min(100%, 440px);
    max-width: 440px;
    margin: 13px auto 0;
    padding-top: 13px;
    border-top-color: #eaecf0;
}

.tr-details__heading {
    margin-bottom: 9px;
}

.tr-details__heading h4 {
    color: var(--tr-ink);
    font-size: .94rem;
    font-weight: 700;
    letter-spacing: -.012em;
}

.tr-details__heading p {
    margin-top: 2px;
    color: #667085;
    font-size: .74rem;
    line-height: 1.35;
}

.tr-details__grid {
    gap: 8px;
}

.tr-field {
    margin-top: 8px;
}

.tr-field > span {
    margin-bottom: 4px;
    color: #344054;
    font-size: .76rem;
    font-weight: 650;
}

.tr-field small {
    color: #98a2b3;
    font-size: .72rem;
}

.tr-field input,
.tr-field textarea {
    min-height: 42px;
    padding: 8px 10px !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--tr-ink) !important;
    font-size: .88rem !important;
    line-height: 1.35 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03) !important;
}

.tr-field input:hover,
.tr-field textarea:hover {
    border-color: #98a2b3 !important;
}

.tr-field input:focus-visible,
.tr-field textarea:focus-visible {
    border-color: #84adff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px var(--tr-focus-ring) !important;
}

.tr-field textarea {
    min-height: 70px;
    max-height: 150px;
}

.tr-details__actions {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.35fr);
    gap: 8px;
    margin-top: 13px;
}

.tr-details__actions .tr-primary,
.tr-details__actions .tr-secondary {
    width: 100%;
    min-height: 43px;
    border-radius: 8px;
    font-size: .86rem;
}

.tr-primary {
    box-shadow: 0 4px 12px rgba(37, 99, 235, .16);
}

.tr-date,
.tr-date-chip,
.tr-slot {
    box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
}

.tr-slot[aria-pressed="true"] {
    box-shadow: 0 4px 12px rgba(29, 78, 216, .16);
}

@media (max-width: 560px) {
    .tr-booking {
        padding: 20px 16px 18px;
        border-radius: 12px;
    }

    .tr-booking .tr-guests {
        grid-template-columns: 50px minmax(0, 1fr) 50px !important;
    }

    .tr-details {
        width: 100%;
        max-width: none;
    }

    .tr-details__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tr-details__grid .tr-field + .tr-field {
        margin-top: 8px;
    }

    .tr-details__actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 8px;
    }
}


/* RES-18C — UI-only premium booking refinement. Booking logic is unchanged. */
.tr-booking {
    --tr-blue: #1a73e8;
    --tr-blue-dark: #1557b0;
    --tr-text: #202124;
    --tr-muted: #5f6368;
    --tr-subtle: #80868b;
    --tr-border: #dadce0;
    --tr-border-soft: #eceff1;
    --tr-surface: #ffffff;
    --tr-surface-soft: #f8f9fa;
    --tr-success: #188038;
    --tr-focus-ring: rgba(26, 115, 232, .18);
    width: 100%;
    max-width: 560px;
    max-inline-size: 560px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e3e6ea;
    border-radius: 14px;
    background: #fff;
    color: var(--tr-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 10px 32px rgba(60, 64, 67, .10), 0 2px 8px rgba(60, 64, 67, .05);
}

.tr-booking__header {
    margin: 0;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #edf0f2;
}

.tr-booking__eyebrow {
    display: none;
}

.tr-booking__title,
.tr-booking h2.tr-booking__title {
    margin: 0;
    color: #202124;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.25;
}

.tr-booking__subtitle {
    margin: 5px 0 0;
    color: #70757a;
    font-size: .84rem;
    line-height: 1.45;
}

.tr-steps {
    margin: 0 !important;
    padding: 13px 24px !important;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
}

.tr-steps__item {
    gap: 4px;
    color: #9aa0a6;
    font-size: .68rem;
    font-weight: 500;
}

.tr-steps__item::before {
    top: 11px;
    height: 1px;
    background: #e8eaed;
}

.tr-steps__number {
    width: 23px;
    height: 23px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background: #fff;
    color: #70757a;
    font-size: .68rem;
    font-weight: 600;
}

.tr-steps__item.is-current .tr-steps__number {
    border-color: #1a73e8;
    background: #1a73e8;
    color: #fff;
}

.tr-steps__item.is-complete .tr-steps__number {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
}

.tr-steps__item.is-current,
.tr-steps__item.is-complete {
    color: #3c4043;
}

.tr-steps__item.is-current::before,
.tr-steps__item.is-complete::before {
    background: #a8c7fa;
}

.tr-booking [data-tr-flow],
.tr-booking [data-tr-pause-panel] {
    display: block;
}

.tr-booking [data-tr-flow][hidden],
.tr-booking [data-tr-pause-panel][hidden] {
    display: none !important;
}

.tr-booking [data-tr-selection-step] {
    padding: 20px 24px 22px;
}

.tr-booking__section {
    margin: 0;
}

.tr-booking__section + .tr-booking__section {
    margin-top: 18px;
}

.tr-section-heading {
    margin-bottom: 7px;
    gap: 10px;
}

.tr-booking__label {
    color: #3c4043;
    font-size: .78rem;
    font-weight: 600;
}

.tr-booking__helper {
    color: #9aa0a6;
    font-size: .69rem;
    font-weight: 400;
}

/* Party selector: exactly three visible full-width cells. */
.tr-booking .tr-guests {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 50px !important;
    grid-template-rows: 44px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    border: 1px solid #dadce0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.tr-booking .tr-guests > [data-tr-guests-decrease],
.tr-booking .tr-guests > [data-tr-guests-increase] {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #1a73e8 !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.tr-booking .tr-guests > [data-tr-guests-decrease] {
    grid-column: 1 !important;
    border-right: 1px solid #e3e6ea !important;
}

.tr-booking .tr-guests > .tr-guests__value {
    grid-column: 2 !important;
    display: grid !important;
    width: 100% !important;
    height: 44px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 10px !important;
    place-items: center !important;
    background: #fff !important;
    color: #202124 !important;
    font-size: .92rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.tr-booking .tr-guests > [data-tr-guests-increase] {
    grid-column: 3 !important;
    border-left: 1px solid #e3e6ea !important;
}

.tr-booking .tr-guests > input[type="hidden"],
.tr-booking .tr-guests > [data-tr-guests-input] {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.tr-booking .tr-guests > [data-tr-guests-decrease]:hover:not(:disabled),
.tr-booking .tr-guests > [data-tr-guests-increase]:hover:not(:disabled) {
    background: #f8f9fa !important;
}

.tr-booking .tr-guests > [data-tr-guests-decrease]:focus-visible,
.tr-booking .tr-guests > [data-tr-guests-increase]:focus-visible {
    outline: 0 !important;
    box-shadow: inset 0 0 0 2px #1a73e8 !important;
}

.tr-date-shortcuts {
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 4px;
}

.tr-date-chip {
    min-width: 70px;
    min-height: 50px;
    padding: 6px 8px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: #fff;
    color: #3c4043;
    box-shadow: none;
}

.tr-date-chip:hover {
    border-color: #aecbfa;
    background: #f8fbff;
}

.tr-date-chip[aria-pressed="true"] {
    border-color: #8ab4f8;
    background: #e8f0fe;
    color: #174ea6;
    box-shadow: none;
}

.tr-date-chip__day {
    font-size: .65rem;
    font-weight: 500;
}

.tr-date-chip__date {
    margin-top: 1px;
    font-size: .82rem;
    font-weight: 600;
}

.tr-date-field__icon {
    left: 12px;
    color: #70757a;
}

.tr-date {
    min-height: 44px;
    padding: 0 12px 0 36px !important;
    border: 1px solid #dadce0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #202124 !important;
    font-size: .86rem !important;
    box-shadow: none !important;
}

.tr-date:hover {
    border-color: #bdc1c6 !important;
}

.tr-date:focus-visible {
    border-color: #1a73e8 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 2px var(--tr-focus-ring) !important;
}

.tr-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    min-height: 40px;
}

.tr-slot,
.tr-slot-skeleton {
    min-height: 40px;
    border-radius: 5px;
}

.tr-slot {
    padding: 7px 10px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #1a73e8;
    font-size: .8rem;
    font-weight: 600;
    box-shadow: none;
    transform: none;
}

.tr-slot:hover:not(:disabled) {
    border-color: #aecbfa;
    background: #f8fbff;
}

.tr-slot:active:not(:disabled) {
    transform: none;
}

.tr-slot[aria-pressed="true"] {
    border-color: #8ab4f8;
    background: #e8f0fe;
    color: #174ea6;
    box-shadow: none;
}

.tr-booking__footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf0f2;
}

.tr-primary,
.tr-secondary,
.tr-link-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 5px;
    font-size: .82rem;
    font-weight: 600;
    box-shadow: none;
}

.tr-primary {
    border-color: #1a73e8 !important;
    background: #1a73e8 !important;
    box-shadow: none;
}

.tr-primary:hover:not(:disabled) {
    border-color: #1557b0 !important;
    background: #1557b0 !important;
}

.tr-secondary {
    border-color: #dadce0 !important;
    background: #fff !important;
    color: #1a73e8 !important;
}

.tr-secondary:hover:not(:disabled) {
    border-color: #aecbfa !important;
    background: #f8fbff !important;
}

/* Step 2: same flow, visually much tighter and more premium. */
.tr-hold-summary {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 24px 22px;
    text-align: left;
}

.tr-hold-summary__icon {
    display: none;
}

.tr-hold-summary h3 {
    margin: 0;
    color: #202124;
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: 0;
}

.tr-hold-summary__meta {
    width: 100%;
    max-width: none;
    margin: 9px 0 0;
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #f8f9fa;
    color: #3c4043;
    font-size: .79rem;
    font-weight: 500;
    line-height: 1.4;
}

.tr-hold-summary__expiry {
    margin: 5px 0 0;
    color: #70757a;
    font-size: .7rem;
}

.tr-details {
    width: 100%;
    max-width: 460px;
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #edf0f2;
}

.tr-details__heading {
    margin-bottom: 10px;
}

.tr-details__heading h4 {
    margin: 0;
    color: #202124;
    font-size: .9rem;
    font-weight: 600;
}

.tr-details__heading p {
    margin: 2px 0 0;
    color: #80868b;
    font-size: .7rem;
}

.tr-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tr-field {
    margin-top: 8px;
}

.tr-details__grid .tr-field {
    margin-top: 0;
}

.tr-field > span {
    margin-bottom: 4px;
    color: #3c4043;
    font-size: .72rem;
    font-weight: 600;
}

.tr-field small {
    color: #9aa0a6;
    font-size: .68rem;
    font-weight: 400;
}

.tr-field input,
.tr-field textarea {
    min-height: 40px;
    padding: 8px 10px !important;
    border: 1px solid #dadce0 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #202124 !important;
    font-size: .82rem !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

.tr-field input:hover,
.tr-field textarea:hover {
    border-color: #bdc1c6 !important;
}

.tr-field input:focus-visible,
.tr-field textarea:focus-visible {
    border-color: #1a73e8 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 2px var(--tr-focus-ring) !important;
}

.tr-field textarea {
    min-height: 64px;
    max-height: 130px;
}

.tr-details__actions {
    display: grid;
    grid-template-columns: minmax(105px, .75fr) minmax(0, 1.35fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.tr-details__actions .tr-primary,
.tr-details__actions .tr-secondary {
    width: 100%;
    min-height: 42px;
}

/* Step 3: restrained confirmation screen. */
.tr-success {
    padding: 28px 24px 30px;
    text-align: center;
}

.tr-success__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e6f4ea;
    color: #137333;
    font-size: 1.05rem;
}

.tr-success h3 {
    color: #202124;
    font-size: 1.05rem;
    font-weight: 600;
}

.tr-success__meta {
    margin: 7px 0 16px;
    color: #5f6368;
    font-size: .8rem;
    font-weight: 500;
}

.tr-success__reference {
    min-width: min(100%, 230px);
    padding: 11px 14px;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    background: #f8f9fa;
}

.tr-success__reference span {
    color: #80868b;
    font-size: .68rem;
}

.tr-success__reference strong {
    color: #202124;
    font-size: .9rem;
    letter-spacing: .03em;
}

.tr-success__note {
    margin-top: 10px;
    color: #80868b;
    font-size: .72rem;
}

.tr-success__manage {
    margin-top: 14px;
}

.tr-booking__status,
.tr-booking__hint,
.tr-book-notices,
.tr-booking__paused {
    border-radius: 6px;
    box-shadow: none;
}

@media (max-width: 560px) {
    .tr-booking {
        max-width: none;
        border-radius: 10px;
        box-shadow: 0 5px 18px rgba(60, 64, 67, .08);
    }

    .tr-booking__header {
        padding: 18px 16px 13px;
    }

    .tr-steps {
        padding: 11px 16px !important;
    }

    .tr-booking [data-tr-selection-step] {
        padding: 16px 16px 18px;
    }

    .tr-hold-summary {
        padding: 16px 16px 18px;
    }

    .tr-booking .tr-guests {
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    }

    .tr-details {
        max-width: none;
    }

    .tr-details__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tr-details__grid .tr-field + .tr-field {
        margin-top: 8px;
    }

    .tr-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .tr-booking__footer,
    .tr-details__actions {
        position: static;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .tr-booking__footer .tr-primary {
        width: 100%;
    }

    .tr-details__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tr-details__actions .tr-primary {
        order: 1;
    }

    .tr-details__actions .tr-secondary {
        order: 2;
    }

    .tr-success {
        padding: 24px 16px 26px;
    }
}

@media (max-width: 390px) {
    .tr-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* RES-18D — deterministic 3-cell party selector + compact placeholder detail form. */
.tr-booking .tr-guests {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 46px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid #d9dde3 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tr-booking .tr-guests > .tr-guests__cell {
    display: grid !important;
    place-items: stretch !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
}

.tr-booking .tr-guests > .tr-guests__cell + .tr-guests__cell {
    border-left: 1px solid #e3e6ea !important;
}

.tr-booking .tr-guests .tr-guests__button,
.tr-booking .tr-guests .tr-guests__value {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.tr-booking .tr-guests .tr-guests__button {
    color: #1a73e8 !important;
    font-size: 1.22rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.tr-booking .tr-guests .tr-guests__value {
    color: #202124 !important;
    font-size: .96rem !important;
    font-weight: 650 !important;
    text-align: center !important;
}

.tr-booking .tr-guests [data-tr-guests-input] {
    display: none !important;
}

.tr-booking .tr-guests .tr-guests__button:hover:not(:disabled) {
    background: #f6f8fb !important;
}

.tr-booking .tr-guests .tr-guests__button:focus-visible {
    outline: 0 !important;
    box-shadow: inset 0 0 0 2px #1a73e8 !important;
}

/* Step 2: compact two-by-two contact grid, with labels carried by accessible placeholders. */
.tr-booking .tr-hold-summary {
    width: min(100%, 460px) !important;
}

.tr-booking .tr-details {
    width: 100% !important;
    max-width: 460px !important;
    margin: 12px auto 0 !important;
    padding-top: 12px !important;
}

.tr-booking .tr-details__heading {
    margin-bottom: 9px !important;
}

.tr-booking .tr-details__heading h4 {
    font-size: .94rem !important;
}

.tr-booking .tr-details__heading p {
    margin-top: 2px !important;
    font-size: .72rem !important;
}

.tr-booking .tr-details__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.tr-booking .tr-details__grid .tr-field,
.tr-booking .tr-field--comment {
    margin: 0 !important;
}

.tr-booking .tr-field--comment {
    margin-top: 8px !important;
}

.tr-booking .tr-field input,
.tr-booking .tr-field textarea {
    width: 100% !important;
    min-height: 42px !important;
    padding: 9px 11px !important;
    border: 1px solid #d9dde3 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #202124 !important;
    font-size: .84rem !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}

.tr-booking .tr-field textarea {
    min-height: 72px !important;
    resize: vertical !important;
}

.tr-booking .tr-field input::placeholder,
.tr-booking .tr-field textarea::placeholder {
    color: #7b8189 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

.tr-booking .tr-details__actions {
    margin-top: 12px !important;
    padding-top: 12px !important;
}

@media (max-width: 560px) {
    .tr-booking .tr-details__grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}
