/* STYLE RESET */

html {
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  text-wrap: balance;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture {
  max-width: 100%;
  display: block;
}

button:not([class]) {
  border: none;
}

button,
input,
label {
  line-height: 1.1;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

/* DESIGN TOKENS */

:root {
  color-scheme: light dark;
  --to-brand: #dedc66;
  --to-brand-hover: #cebd40;
  --to-brand-secondary: #f7f2c4;
  --to-text: #121212;
  --to-text-muted: #5b5b5b;
  --to-link: #0f172a;
  --to-border: #cacaca;
  --to-border-light: #b8b8b8;
  --to-bg-primary: #eef1f7;
  --to-bg-secondary: #f8f9fa;
  --to-bg-card: #ffffff;
  --to-bg-basket-card: #eeffee;
  --to-bg-button-secondary: #474747;
  --to-focus-ring: color-mix(in srgb, var(--to-brand) 30%, transparent);
  --to-shadow-sm: 0 1px 2px rgb(15 23 42 / 8%);
  --to-shadow-md: 0 8px 24px rgb(15 23 42 / 10%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --to-brand: #dedc66;
    --to-brand-hover: #fcf097;
    --to-brand-secondary: #f7f2c4;
    --to-text: #f5f5f5;
    --to-text-muted: #bdbdbd;
    --to-link: #5874b6;
    --to-border: #333333;
    --to-border-light: #272727;
    --to-bg-primary: #111111;
    --to-bg-secondary: #272727;
    --to-bg-card: #090909;
    --to-bg-basket-card: #181d18;
    --to-bg-button-secondary: #535353;
    --to-shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --to-shadow-md: 0 8px 24px rgb(0 0 0 / 35%);
  }
}

/* CUSTOM STYLES */

body {
  background-color: inherit;
}

.booking-shell {
  display: flow-root;
}

.container {
  --bs-gutter-x: 0.25rem;
}

@media (min-width: 992px) {
  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1140px !important;
  }
}

.booking-shell .card {
  border-color: var(--to-border);
}

.booking-shell .tourorganizer-card,
.booking-shell #basket-card,
.booking-shell #checkout-card {
  background-color: var(--to-bg-primary);
  color: var(--to-text);
}

.to-border-bottom {
  border-bottom: 1px solid var(--to-border-light);
}

.to-border-bottom:last-child {
  border-bottom: none;
}

.booking-shell .event-date,
.booking-shell .event-card,
.booking-shell .basket-card,
.booking-shell .completion-card {
  background-color: var(--to-bg-card);
  color: var(--to-text);
}

.booking-shell .basket-summary {
  background-color: var(--to-bg-basket-card);
  opacity: 0.89;
  color: var(--to-text);
}

.booking-shell .completion-card {
  box-shadow: var(--to-shadow-sm);
}

.booking-shell .completion-header {
  padding-bottom: 0;
}

.booking-shell .completion-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--to-brand-secondary);
  color: #232323;
  font-size: 1.25rem;
}

.booking-shell .completion-order-number,
.booking-shell .completion-booking-amount {
  color: var(--to-text);
}

.booking-shell .completion-contact-link {
  color: var(--to-link);
  text-decoration: none;
}

.booking-shell .completion-contact-link:hover {
  color: var(--to-link);
}

.booking-shell .completion-section {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--to-border);
}

.booking-shell .completion-bookings-count {
  background-color: var(--to-brand-secondary);
  color: #232323;
}

.booking-shell .completion-booking-card {
  background-color: var(--to-bg-card);
  border-color: var(--to-border);
  box-shadow: var(--to-shadow-sm);
}

.booking-shell .completion-tickets {
  background-color: var(--to-bg-secondary);
  border: 1px solid var(--to-border);
}

.booking-shell .completion-tickets .border-top {
  border-color: var(--to-border) !important;
}

.booking-shell .completion-print-button {
  min-width: auto;
}

@media print {
  .booking-shell .completion-print-button {
    display: none !important;
  }

  .booking-shell .completion-card,
  .booking-shell .completion-booking-card {
    box-shadow: none;
  }
}

.to-text {
  color: var(--to-text);
}

.to-text-muted {
  color: var(--to-text-muted);
}

.to-bg-secondary {
  background-color: var(--to-bg-secondary);
}

.list-item:not(:first-child) {
  margin-top: 0.75rem;
}

.list-item:not(:last-child) {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--to-border);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.booking-shell .form-control,
.payment-block {
  background-color: var(--to-bg-card);
  border-color: var(--to-border-light);
  color: var(--to-text);
  caret-color: var(--to-text);
}

.booking-shell .form-control::placeholder {
  color: var(--to-text-muted);
  opacity: 0.75;
}

.booking-shell .form-control:focus {
  background-color: var(--to-bg-card);
  color: var(--to-text);
  border-color: var(--to-text-muted);
  box-shadow: 0 0 2px 3px var(--to-focus-ring);
}

.booking-shell .form-check-input:focus {
  box-shadow: 0 0 2px 3px var(--to-focus-ring);
}

.booking-shell .form-check-input:checked {
  background-color: var(--to-brand);
  border-color: var(--to-brand);
}

.booking-shell .event-date {
  height: 38px;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
}

.activity-name {
  font-size: 18px;
}

.booking-shell .btn-primary {
  background: var(--to-brand);
  color: #232323;
  padding-block: 6px;
  padding-inline: 12px;
  border: none;
  border-radius: 6px;
  min-width: 182px;
  transition: all 0.3s ease;
}

.booking-shell .btn-basket {
  min-width: 142px;
}

.booking-shell .btn-primary:hover {
  background: var(--to-brand-hover);
  color: #232323;
}

.booking-shell .btn-secondary {
  background: var(--to-bg-button-secondary);
  color: #f4f4f4;
  padding-block: 6px;
  border: none;
  border-radius: 6px;
  min-width: 182px;
  transition: all 0.3s ease;
}

.booking-shell .btn-booking-action {
  min-width: 182px;
}

.error-icon {
  font-size: 0.75rem;
}

.booking-shell .ticket-label {
  font-size: 15px;
  min-width: 70px;
  flex-shrink: 0;
}

.booking-shell .quantity-picker {
  background: var(--to-bg-card);
  border: 1px solid var(--to-border);
  padding: 3px;
  border-radius: 4px;
  overflow: hidden;
}

.booking-shell .quantity-btn {
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.25s ease;
}

.booking-shell .quantity-btn:hover {
  background: var(--to-bg-secondary);
}

.booking-shell .quantity-btn:active {
  background: var(--to-bg-primary);
  box-shadow: 0 0 1px 2px var(--to-focus-ring);
}

.booking-shell .quantity-input {
  min-width: 3rem;
  flex: 1;
  border: 0;
  outline: none;
  text-align: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-input {
  appearance: textfield;
}

.booking-additional-info p {
  margin: 0;
}

.basket-card__time,
.basket-card__quantity,
.basket-card__sum {
  font-size: 15px;
}

.more-details {
  list-style: none;
  font-size: 15px;
}

.basket-summary {
  position: sticky;
  bottom: 1rem;
  z-index: 2;
}
