#place-category-controls {
  display: flex;
  flex: none;
  flex-direction: column;
  min-width: 0;
}

.place-category-strip {
  flex: 1;
}

.place-category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 2px;
}
#place-category-tabs > .place-category-heading {
  flex: none;
}
:is(#place-category-tabs, #place-category-filter-host) > button.place-category-heading {
  border: 1px solid transparent;
  border-radius: 11px;
  corner-shape: var(--search-surface-corner);
  background: var(--search-surface-fill);
}
:is(#place-category-tabs, #place-category-filter-host) > button.place-category-heading[aria-pressed=true] {
  border-color: transparent;
  background: var(--search-surface-selected);
}
#place-category-filter-host {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 1px;
}
#place-category-filter-host > .place-category-heading {
  justify-content: flex-start;
  max-width: 100%;
  text-align: start;
  white-space: normal;
}
@container (max-width: 145px) {
  #place-category-filter-host > .place-category-heading {
    gap: 3px;
    padding-inline: 5px;
  }
  #place-category-filter-host .place-category-emoji { font-size: 13px; }
}
#place-category-filter-host .place-category-title { min-width: 0; overflow-wrap: anywhere; }

.place-category-heading:focus-visible { outline: 2px solid var(--search-focus-ring); outline-offset: -3px; }
.place-category-emoji { flex: none; font-size: 16px; }
.place-category-icon { display: block; inline-size: 1em; block-size: 1em; object-fit: contain; }

.place-category-section { padding: 8px var(--workspace-search-inset, 10px) 6px; }

.place-category-fields {
  --horizontal-scroll-fade-width: 25px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 9px 5px 12px;
  margin: -8px -4px -11px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.place-category-field {
  position: relative;
  display: grid;
  flex: 1 0 162px;
  grid-template-columns: 17px minmax(0, 1fr) 13px;
  align-items: center;
  column-gap: 9px;
  min-width: 0;
  min-height: 50px;
  padding: 7px 10px;
  color: #222;
  text-align: start;
  cursor: pointer;
}

.place-category-field[data-category-field=visitDate] { flex-basis: 168px; }
.place-category-field:focus-visible { outline: 0; }
.place-category-field:focus-visible .place-category-field-label { text-decoration: underline; text-underline-offset: 2px; }

.place-category-fields > .place-category-field,
.place-category-date-range {
  border: 1px solid var(--search-tile-edge-color);
  border-radius: 11px;
  corner-shape: var(--search-surface-corner);
  background: var(--search-surface-fill);
}

.place-category-date-range {
  display: flex;
  flex: 2 0 266px;
  min-width: 0;
  min-height: 50px;
  overflow: hidden;
}
.place-category-date-range > .place-category-field {
  flex: 1 1 50%;
  grid-template-columns: 17px minmax(0, 1fr);
  min-height: 0;
  border: 0;
  background: transparent;
  padding-inline: 7px 4px;
}
.place-category-date-range > .place-category-field + .place-category-field {
  grid-template-columns: minmax(0, 1fr) 13px;
  column-gap: 7px;
  padding-inline: 9px 7px;
}
.place-category-date-range > .place-category-field + .place-category-field::before {
  position: absolute;
  inset-block: var(--split-divider-inset, 17.5%);
  inset-inline-start: 0;
  width: 1px;
  background: var(--split-divider-color, #d6d6d6);
  content: "";
  pointer-events: none;
}

.place-category-fields > .place-category-field[aria-expanded=true],
.place-category-date-range:has(> .place-category-field[aria-expanded=true]) {
  border-color: transparent;
  outline: var(--search-input-outline);
  outline-offset: -2px;
}

.place-category-field-icon { display: grid; place-items: center; }
.place-category-field-icon > .icon { width: 17px; height: 17px; }
.place-category-field-chevron { display: grid; place-items: center; color: #696d73; }
.place-category-field-chevron > .icon { width: 13px; height: 13px; rotate: 90deg; }
.place-category-price-icon {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.place-category-field-copy { display: grid; gap: 2px; min-width: 0; }

.place-category-field-label, .place-category-field-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-category-field-label {
  color: #565a61;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}
.place-category-field-value {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.place-category-field:not([data-filled]) .place-category-field-value { color: #62666d; }

.place-category-popover {
  position: fixed;
  z-index: 1850;
  inset: auto;
  width: 282px;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--workspace-popover-border);
  border-radius: 16px;
  color: #202124;
  background: #fff;
  box-shadow: 0 3px 12px #15192118, 0 14px 38px #15192132;
}
.place-category-popover.is-calendar { width: 552px; }
.place-category-popover-form {
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 15px;
}
.place-category-popover-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #ececef;
}
.place-category-calendar-nav, .place-category-number-step {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: #f4f4f5;
}
.place-category-popover :is(.place-category-calendar-nav, .place-category-number-step) > .icon { width: 16px; height: 16px; }
.place-category-popover :is(.place-category-calendar-nav, .place-category-number-step):hover:not(:disabled) { background: #e9e9ec; }
.place-category-popover button:disabled { opacity: .4; cursor: default; }
.place-category-popover button:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
.place-category-popover-content { padding: 12px 14px; }
.place-category-popover-actions > button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #f4f4f5;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}
.place-category-popover-actions > .place-category-popover-apply { color: #fff; background: #1d1d1f; }
.place-category-popover-apply:focus-visible { outline-color: #fff !important; }
.place-category-popover-clear[hidden] { display: none; }

.place-category-calendar { position: relative; }
.place-category-calendar-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.place-category-calendar-nav { position: absolute; top: 0; }
.place-category-calendar-nav.is-previous { left: 0; }
.place-category-calendar-nav.is-next { right: 0; }
.place-category-calendar-months { display: flex; gap: 16px; }
.place-category-calendar-month { min-width: 0; flex: 1 1 0; }
.place-category-calendar-month > h3 {
  margin: 0 0 4px;
  padding: 0 32px;
  min-height: 32px;
  align-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 550;
}
.place-category-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  text-align: center;
}
.place-category-calendar-weekday {
  margin-block: 1px 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid #eee;
  color: #62666d;
  font-size: 11px;
}
.place-category-calendar-day {
  min-height: 33px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.place-category-calendar-day[aria-current=date] { text-decoration: underline; text-underline-offset: 3px; }
.place-category-calendar-day[data-in-range], .place-category-calendar-day:where(:hover:not(:disabled)) { background: #eeeef0; }
.place-category-calendar-day[aria-pressed=true] { background: #252527; color: #fff; }
.place-category-calendar-day[aria-pressed=true]:focus-visible { outline-color: #fff; }

.place-category-number-editor { display: flex; gap: 8px; align-items: center; }
.place-category-number-editor > input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #bcbec4;
  border-radius: 9px;
  background: #fff;
  color: #202124;
  font-size: 16px;
}
.place-category-number-editor > input:focus {
  border-color: transparent;
  outline: var(--search-input-outline);
  outline-offset: -2px;
}
.place-category-number-editor:has(.place-category-number-step) > input { text-align: center; appearance: textfield; }
.place-category-number-editor:has(.place-category-number-step) > input::-webkit-inner-spin-button { appearance: none; }

@media (max-width: 620px) {
  .place-category-popover.is-calendar { width: 360px; }
  .place-category-calendar-month:not(:first-child) { display: none; }
}
