[data-ts-mobile-search] {
  --mobile-search-accent: #6b2b3a;
  --mobile-search-action: #d93b45;
  --mobile-search-divider: #d8cdc5;
}

[data-ts-mobile-search].mobile-search-card {
  overflow: hidden;
  padding: 7px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #2a252a;
}

[data-ts-mobile-search] .mobile-search-row {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--mobile-search-divider);
  background: #fffdfb;
}

[data-ts-mobile-search] .mobile-search-row:first-child { border-radius: 16px 16px 0 0; }
[data-ts-mobile-search] .mobile-search-row:nth-of-type(3) { border-bottom: 0; border-radius: 0 0 16px 16px; }
[data-ts-mobile-search] .mobile-search-row:focus-within {
  z-index: 1;
  box-shadow: inset 0 0 0 2px var(--mobile-search-accent);
}

[data-ts-mobile-search] .mobile-search-icon {
  width: 22px;
  height: 22px;
  color: #2b272c;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-ts-mobile-search] .mobile-search-field { min-width: 0; }
[data-ts-mobile-search] .mobile-search-field > label {
  display: block;
  margin-bottom: 2px;
  color: #665f65;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

[data-ts-mobile-search] .mobile-destination-control {
  position: relative;
  display: flex;
  align-items: center;
}

[data-ts-mobile-search] .mobile-destination-control input {
  width: 100%;
  min-height: 30px;
  padding: 0 38px 0 0;
  border: 0;
  background: transparent;
  color: #211d22;
  font: 700 16px/1.3 system-ui, sans-serif;
  outline: 0;
}

[data-ts-mobile-search] .mobile-destination-control input::placeholder { color: #5f5960; opacity: 1; }
[data-ts-mobile-search] .mobile-destination-clear {
  position: absolute;
  right: -6px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4f484e;
  font-size: 22px;
  cursor: pointer;
}
[data-ts-mobile-search] .mobile-destination-clear:hover,
[data-ts-mobile-search] .mobile-destination-clear:focus-visible { background: #f2ece8; }
[data-ts-mobile-search] .mobile-destination-clear[hidden] { display: none; }

[data-ts-mobile-search] .mobile-date-trigger,
[data-ts-mobile-search] .mobile-guest-trigger {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #211d22;
  text-align: left;
  cursor: pointer;
}

[data-ts-mobile-search] .mobile-date-range,
[data-ts-mobile-search] .mobile-guest-label {
  overflow: hidden;
  font: 800 16px/1.3 system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-ts-mobile-search] .mobile-date-range {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
[data-ts-mobile-search] .mobile-date-value { flex: 0 0 auto; }
[data-ts-mobile-search] .mobile-date-separator {
  width: 18px;
  height: 1px;
  flex: 0 0 18px;
  background: #756e74;
}
[data-ts-mobile-search] .mobile-date-spoken-separator {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

[data-ts-mobile-search] .mobile-date-trigger:not(.has-value) .mobile-date-range { color: #5f5960; font-weight: 700; }
[data-ts-mobile-search] .mobile-search-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-ts-mobile-search] .mobile-search-submit {
  width: calc(100% - 4px);
  min-height: 54px;
  margin: 8px 2px 2px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #df4651, #c92f3b);
  color: #fff;
  font: 900 16px system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(178, 34, 45, .28);
}
[data-ts-mobile-search] .mobile-search-submit:active { transform: scale(.99); }
[data-ts-mobile-search] .mobile-search-submit:disabled { background: #bdb6b3; box-shadow: none; cursor: wait; }

.ts-guest-sheet[hidden] { display: none; }
.ts-guest-sheet {
  position: fixed;
  inset: 0;
  z-index: 22000;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background: rgba(15, 13, 16, .62);
  backdrop-filter: blur(9px);
}
.ts-guest-sheet-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fcfbf9;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .3);
}
.ts-guest-sheet-handle { width: 44px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: #c8c2be; }
.ts-guest-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ts-guest-sheet-head h2 { margin: 0; color: #211d22; font: 700 22px/1.2 system-ui, sans-serif; }
.ts-guest-sheet-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e3ddd8;
  border-radius: 50%;
  background: #fff;
  color: #211d22;
  font-size: 22px;
  cursor: pointer;
}
.ts-guest-stepper { display: flex; min-height: 78px; margin: 20px 0; align-items: center; justify-content: space-between; gap: 18px; }
.ts-guest-stepper-copy strong { display: block; color: #211d22; font: 800 17px/1.2 system-ui, sans-serif; }
.ts-guest-stepper-copy span { display: block; margin-top: 4px; color: #756e74; font-size: 13px; }
.ts-guest-stepper-controls { display: flex; align-items: center; gap: 14px; }
.ts-guest-stepper-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #8c7d84;
  border-radius: 50%;
  background: #fff;
  color: #211d22;
  font-size: 25px;
  cursor: pointer;
}
.ts-guest-stepper-controls button:disabled { border-color: #d9d3cf; color: #bbb4b0; cursor: not-allowed; }
.ts-guest-stepper-value { min-width: 24px; color: #211d22; font: 800 18px/1 system-ui, sans-serif; text-align: center; }
.ts-guest-apply {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: #d93b45;
  color: #fff;
  font: 900 16px system-ui, sans-serif;
  cursor: pointer;
}
body.ts-guest-sheet-open { overflow: hidden; }

button.ts-guest-sheet-close,
button.date-sheet-close,
button.calendar-nav,
button.mobile-search-sheet-close,
button.mobile-edit-calendar-nav {
  box-sizing: border-box !important;
  inline-size: 40px !important;
  block-size: 40px !important;
  min-inline-size: 40px !important;
  min-block-size: 40px !important;
  max-inline-size: 40px !important;
  max-block-size: 40px !important;
  flex: 0 0 40px !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  border-radius: 50% !important;
  line-height: 1;
}

@media (min-width: 861px) {
  .ts-guest-sheet { align-items: center; }
  .ts-guest-sheet-panel { border-radius: 24px; }
}

@media (max-width: 860px) {
  .date-selection-bar > .date-selection:first-child,
  .mobile-edit-selection-bar > .mobile-edit-selection:first-child {
    border-radius: 13px 0 0 13px !important;
  }

  .date-selection-bar > .date-selection:last-child,
  .mobile-edit-selection-bar > .mobile-edit-selection:last-child {
    border-radius: 0 13px 13px 0 !important;
  }
}

@media (max-width: 360px) {
  [data-ts-mobile-search] .mobile-date-range { gap: 7px; font-size: 14px; }
  [data-ts-mobile-search] .mobile-date-separator { width: 14px; flex-basis: 14px; }
}
