.trbp-booking {
    --trbp-accent: #2563eb;
    --trbp-success: #147a42;
    --trbp-danger: #b42318;
    --trbp-border: #d7dde7;
    --trbp-muted: #667085;
    --trbp-surface: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;
    max-width: 1400px;
    margin: 0 auto;
}

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

.trbp-booking *,
.trbp-booking *::before,
.trbp-booking *::after {
    box-sizing: border-box;
}

.trbp-booking__loading {
    padding: 24px 0;
    color: var(--trbp-muted);
}

.trbp-booking__header {
    margin-bottom: 24px;
}

.trbp-booking__header h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 0;
}

.trbp-stepper {
    display: flex;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
    counter-reset: none;
}

.trbp-stepper li {
    position: relative;
    display: grid;
    flex: 1;
    gap: 7px;
    justify-items: center;
    color: var(--trbp-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.trbp-stepper li::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: var(--trbp-border);
}

.trbp-stepper li:first-child::before {
    display: none;
}

.trbp-stepper li span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 3px solid var(--trbp-border);
    border-radius: 50%;
    background: #fff;
}

.trbp-stepper li.is-active,
.trbp-stepper li.is-done {
    color: var(--trbp-accent);
}

.trbp-stepper li.is-active span,
.trbp-stepper li.is-done span {
    border-color: var(--trbp-accent);
    background: var(--trbp-accent);
    color: #fff;
}

.trbp-stepper li.is-active::before,
.trbp-stepper li.is-done::before {
    background: var(--trbp-accent);
}

.trbp-booking__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: start;
}

.trbp-section {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 1px solid var(--trbp-border);
}

.trbp-step--date {
    max-width: 1040px;
    margin: 0 auto;
    padding: 28px 24px 4px;
    border-radius: 12px;
    background: #edf2f7;
}

.trbp-step--date .trbp-section {
    padding-bottom: 20px;
    margin-bottom: 0;
    border: 0;
}

.trbp-section__intro {
    margin: -8px 0 20px;
    color: var(--trbp-muted);
}

.trbp-section--compact {
    border-bottom: 0;
}

.trbp-section h3,
.trbp-summary h3 {
    margin: 0 0 16px;
    font-size: 19px;
    letter-spacing: 0;
}

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

.trbp-field {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.trbp-field--wide {
    grid-column: 1 / -1;
}

.trbp-field label,
.trbp-field > span:first-child,
.trbp-choice-list legend {
    font-weight: 650;
}

.trbp-field label span,
.trbp-field small {
    color: var(--trbp-muted);
    font-weight: 400;
}

.trbp-booking input,
.trbp-booking select,
.trbp-booking textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #aeb7c5;
    border-radius: 5px;
    background: #fff;
    color: #172033;
    font: inherit;
}

.trbp-booking input:focus,
.trbp-booking select:focus,
.trbp-booking textarea:focus {
    border-color: var(--trbp-accent);
    outline: 2px solid color-mix(in srgb, var(--trbp-accent) 25%, transparent);
    outline-offset: 1px;
}

.trbp-choice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
}

.trbp-choice-list--zones {
    margin-bottom: 22px;
}

.trbp-choice-list legend {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.trbp-choice,
.trbp-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--trbp-border);
    border-radius: 6px;
    background: var(--trbp-surface);
    cursor: pointer;
}

.trbp-choice:has(input:checked),
.trbp-option:has(input:checked) {
    border-color: var(--trbp-accent);
    box-shadow: inset 0 0 0 1px var(--trbp-accent);
    background: #f4f8ff;
}

.trbp-choice input,
.trbp-option input,
.trbp-consent input {
    width: 18px;
    min-height: 18px;
    margin: 2px 0 0;
}

.trbp-choice span,
.trbp-option span {
    display: grid;
    gap: 3px;
}

.trbp-choice strong,
.trbp-option strong {
    font-size: 15px;
}

.trbp-choice small,
.trbp-option small,
.trbp-summary__secure {
    color: var(--trbp-muted);
    font-size: 13px;
}

.trbp-option-list {
    display: grid;
    gap: 9px;
}

.trbp-option b {
    white-space: nowrap;
    font-size: 14px;
}

.trbp-vehicle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: end;
}

.trbp-vehicle-row:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trbp-link-button,
.trbp-icon-button {
    border: 0;
    padding: 6px 0;
    background: transparent;
    color: var(--trbp-accent);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.trbp-icon-button {
    width: 36px;
    height: 44px;
    font-size: 25px;
}

.trbp-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.trbp-consent--invoice {
    margin-top: 16px;
}

.trbp-customer-notes {
    margin-top: 14px;
}

.trbp-customer-notes summary {
    cursor: pointer;
    color: var(--trbp-accent);
    font-weight: 700;
}

.trbp-customer-notes .trbp-field {
    margin-top: 10px;
}

.trbp-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.trbp-error,
.trbp-summary__error {
    color: var(--trbp-danger);
    font-size: 13px;
}

.trbp-summary {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid var(--trbp-border);
    border-radius: 6px;
    background: var(--trbp-surface);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.trbp-summary dl {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px 14px;
    margin: 0 0 18px;
}

.trbp-summary dt {
    color: var(--trbp-muted);
}

.trbp-summary dd {
    margin: 0;
    text-align: right;
    font-weight: 650;
}

.trbp-summary__price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--trbp-border);
}

.trbp-summary__price strong {
    font-size: 23px;
}

.trbp-summary__availability,
.trbp-availability-card {
    min-height: 42px;
    margin: 4px 0 14px;
    padding: 10px;
    border-left: 3px solid #98a2b3;
    background: #f7f8fa;
    font-size: 13px;
}

.trbp-summary__availability.is-available,
.trbp-availability-card.is-available {
    color: var(--trbp-success);
    border-color: var(--trbp-success);
    background: #edf9f2;
}

.trbp-summary__availability.is-unavailable,
.trbp-availability-card.is-unavailable {
    color: var(--trbp-danger);
    border-color: var(--trbp-danger);
    background: #fff3f2;
}

.trbp-summary__availability.is-loading,
.trbp-availability-card.is-loading {
    animation: trbp-pulse 1.1s ease-in-out infinite alternate;
}

.trbp-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px 0 18px;
}

.trbp-calendar-nav label {
    margin: 0;
}

.trbp-calendar-nav input[type="month"] {
    width: 190px;
    min-height: 42px;
    font-weight: 700;
    text-align: center;
}

.trbp-calendar-nav__button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--trbp-border);
    border-radius: 8px;
    background: #fff;
    color: var(--trbp-accent);
    font: inherit;
    font-size: 27px;
    cursor: pointer;
}

.trbp-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.trbp-calendar {
    padding: 16px;
    border: 1px solid var(--trbp-border);
    border-radius: 10px;
    background: #fff;
}

.trbp-calendar h4 {
    margin: 0 0 12px;
    font-size: 16px;
    text-align: center;
}

.trbp-calendar__weekdays,
.trbp-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.trbp-calendar__weekdays {
    margin-bottom: 4px;
}

.trbp-calendar__weekdays span {
    padding: 5px 0;
    color: var(--trbp-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.trbp-calendar__day,
.trbp-calendar__empty {
    aspect-ratio: 1;
    min-height: 38px;
}

.trbp-calendar__day {
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.trbp-calendar__day:hover:not(:disabled),
.trbp-calendar__day:focus-visible {
    border-color: var(--trbp-accent);
    background: #eff6ff;
    outline: none;
}

.trbp-calendar__day.is-in-range {
    border-color: #93c5fd;
    background: #dbeafe;
}

.trbp-calendar__day.is-selected {
    border-color: var(--trbp-accent);
    background: var(--trbp-accent);
    color: #fff;
}

.trbp-calendar__day.is-today:not(.is-selected) {
    border-color: #64748b;
}

.trbp-calendar__day:disabled {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

.trbp-selected-range {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.trbp-selected-range .trbp-link-button {
    margin-left: auto;
}

.trbp-time-grid {
    max-width: 620px;
    margin: 16px auto 0;
}

.trbp-availability-card {
    max-width: 620px;
    margin: 4px auto 14px;
}

.trbp-step-actions {
    max-width: 620px;
    margin: 18px auto 0;
}

.trbp-hold {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--trbp-success);
    border-radius: 6px;
    background: #edf9f2;
    color: var(--trbp-success);
}

.trbp-hold strong {
    font-variant-numeric: tabular-nums;
    font-size: 19px;
}

.trbp-hold small {
    grid-column: 1 / -1;
    color: var(--trbp-muted);
}

.trbp-hold.is-expired {
    border-color: var(--trbp-danger);
    background: #fff3f2;
    color: var(--trbp-danger);
}

.trbp-secondary {
    width: 100%;
    min-height: 42px;
    margin: 0 0 9px;
    border: 1px solid var(--trbp-accent);
    border-radius: 5px;
    background: #fff;
    color: var(--trbp-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.trbp-primary {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--trbp-accent);
    border-radius: 5px;
    background: var(--trbp-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.trbp-primary:disabled {
    border-color: #aeb7c5;
    background: #aeb7c5;
    cursor: not-allowed;
}

.trbp-summary__secure {
    margin: 10px 0 0;
    text-align: center;
}

@keyframes trbp-pulse {
    from { opacity: .55; }
    to { opacity: 1; }
}

@media (max-width: 840px) {
    .trbp-booking__layout {
        grid-template-columns: 1fr;
    }

    .trbp-summary {
        position: static;
        order: -1;
    }

    .trbp-calendars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .trbp-form-grid,
    .trbp-choice-list,
    .trbp-vehicle-row,
    .trbp-vehicle-row:first-child {
        grid-template-columns: 1fr;
    }

    .trbp-icon-button {
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trbp-summary__availability.is-loading {
        animation: none;
    }
}
