/* Our Services: three compact picture cards at small-tablet widths. */
@media (min-width: 640px) and (max-width: 720px) {
  body.phlox-salon section#booking .booking-reviews > div,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews > div {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.phlox-salon section#booking .booking-reviews .eyebrow,
  body.phlox-salon section#booking .booking-reviews h2,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews .eyebrow,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews h2 {
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .booking-reviews h2,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews h2 {
    font-size: 0.94rem !important;
  }

  body.phlox-salon section#booking .live-review-feed,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-feed {
    display: contents !important;
  }

  body.phlox-salon section#booking .live-review-title,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-title {
    display: flex !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .live-review-title small,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-title small {
    display: none !important;
  }

  body.phlox-salon section#booking .live-review-item,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-item {
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
  }

  body.phlox-salon section#booking .selected-location-mini,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini {
    display: flex !important;
    width: max-content !important;
    max-width: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 9px 12px !important;
  }

  body.phlox-salon section#booking .selected-location-mini strong,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini strong {
    flex: 0 0 auto !important;
    color: #F0C597 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .selected-location-mini span,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini span {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    font-size: 0.76rem !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .selected-location-mini a,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini a {
    flex: 0 0 auto !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #E7F0DA !important;
    font-size: 0.82rem !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }

  .phlox-salon .services-prices .price-controls,
  html[data-theme="organic"] .phlox-salon .services-prices .price-controls {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .phlox-salon .services-prices .price-location-buttons,
  .phlox-salon .services-prices .price-mode-buttons,
  html[data-theme="organic"] .phlox-salon .services-prices .price-location-buttons,
  html[data-theme="organic"] .phlox-salon .services-prices .price-mode-buttons {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  .phlox-salon .services-prices .price-location-buttons button,
  .phlox-salon .services-prices .price-mode-buttons button,
  html[data-theme="organic"] .phlox-salon .services-prices .price-location-buttons button,
  html[data-theme="organic"] .phlox-salon .services-prices .price-mode-buttons button {
    min-width: 0 !important;
    padding-inline: 10px !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section.section.brand-qualities,
  html[data-theme="organic"] body.phlox-salon section.section.brand-qualities {
    display: block !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .phlox-salon .qualities-grid,
  html[data-theme="organic"] .phlox-salon .qualities-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .phlox-salon .qualities-grid .quality-art-card,
  html[data-theme="organic"] .phlox-salon .qualities-grid .quality-art-card {
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: auto !important;
  }

  .phlox-salon .qualities-grid .quality-art-card img,
  html[data-theme="organic"] .phlox-salon .qualities-grid .quality-art-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 517 / 594 !important;
    object-fit: contain !important;
  }

  body.phlox-salon section.section.simple-about,
  html[data-theme="organic"] body.phlox-salon section.section.simple-about {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr) !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-inline: auto !important;
    gap: 18px !important;
    align-items: center !important;
  }

  .phlox-salon .simple-about .split-image,
  html[data-theme="organic"] .phlox-salon .simple-about .split-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
  }

  .phlox-salon #mobileInfo .mobile-quick-actions,
  html[data-theme="organic"] .phlox-salon #mobileInfo .mobile-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .phlox-salon #mobileInfo .mobile-quick-actions > a,
  .phlox-salon #mobileInfo .mobile-quick-actions > button,
  html[data-theme="organic"] .phlox-salon #mobileInfo .mobile-quick-actions > a,
  html[data-theme="organic"] .phlox-salon #mobileInfo .mobile-quick-actions > button {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .phlox-salon .services-preview-section,
  html[data-theme="organic"] .phlox-salon .services-preview-section {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .phlox-salon .service-preview-grid,
  html[data-theme="organic"] .phlox-salon .service-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .phlox-salon .service-preview-grid .service-art-card,
  .phlox-salon .service-preview-grid article,
  html[data-theme="organic"] .phlox-salon .service-preview-grid .service-art-card,
  html[data-theme="organic"] .phlox-salon .service-preview-grid article {
    width: 100% !important;
    min-width: 0 !important;
  }

  .phlox-salon .service-preview-grid .service-art-card img,
  .phlox-salon .service-preview-grid img,
  html[data-theme="organic"] .phlox-salon .service-preview-grid .service-art-card img,
  html[data-theme="organic"] .phlox-salon .service-preview-grid img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }

  .phlox-salon .service-preview-grid .service-card-action,
  html[data-theme="organic"] .phlox-salon .service-preview-grid .service-card-action {
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: 5px !important;
  }

  .phlox-salon .service-preview-grid .service-card-action .service-link-button,
  html[data-theme="organic"] .phlox-salon .service-preview-grid .service-card-action .service-link-button {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 0 5px !important;
    font-size: 0.58rem !important;
  }

  .phlox-salon .service-preview-grid .service-card-action .service-info-button,
  html[data-theme="organic"] .phlox-salon .service-preview-grid .service-card-action .service-info-button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    flex-basis: 30px !important;
  }
}
/* Compact booking summaries wherever the available width can hold one row. */
@media (min-width: 480px) {
  body.phlox-salon section#booking .booking-reviews > div,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews > div {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.phlox-salon section#booking .booking-reviews .eyebrow,
  body.phlox-salon section#booking .booking-reviews h2,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews .eyebrow,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews h2 {
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .booking-reviews h2,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews h2 {
    font-size: 0.94rem !important;
  }

  body.phlox-salon section#booking .live-review-feed,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-feed {
    display: contents !important;
  }

  body.phlox-salon section#booking .live-review-title,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-title {
    display: flex !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .live-review-title small,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-title small {
    display: none !important;
  }

  body.phlox-salon section#booking .live-review-item,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-item {
    grid-column: 1 / -1 !important;
    margin-top: 8px !important;
  }

  body.phlox-salon section#booking .selected-location-mini,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini {
    display: flex !important;
    width: max-content !important;
    max-width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 9px 12px !important;
  }

  body.phlox-salon section#booking .selected-location-mini strong,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini strong {
    flex: 0 0 auto !important;
    color: #F0C597 !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .selected-location-mini span,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini span {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    font-size: 0.76rem !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
  }

  body.phlox-salon section#booking .selected-location-mini a,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini a {
    flex: 0 0 auto !important;
    padding-left: 10px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #E7F0DA !important;
    font-size: 0.82rem !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
  }
}

/* Fill the viewport with Quick Info and keep the final FAQ close to the footer. */
@media (max-width: 900px) {
  body.phlox-salon #mobileInfo,
  html[data-theme="organic"] body.phlox-salon #mobileInfo {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: 8px auto 16px !important;
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  body.phlox-salon section#booking .selected-location-mini:not(:empty),
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: #6B3356 !important;
  }

  body.phlox-salon section#booking .selected-location-mini:not(:empty) strong,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) strong {
    color: #FEEEB3 !important;
  }

  body.phlox-salon section#booking .selected-location-mini:not(:empty) span,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) span {
    color: #FFFFFF !important;
  }

  body.phlox-salon section#booking .selected-location-mini:not(:empty) a,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) a {
    color: #E7F0DA !important;
  }
}

/* Content-only responsive cleanup: reviews, booking copy, and section images. */
body.phlox-salon section#booking .selected-location-mini:empty,
html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:empty {
  display: none !important;
}

body.phlox-salon section#booking .booking-reviews,
html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews {
  min-width: 0 !important;
  align-self: start !important;
}

body.phlox-salon section#booking .booking-reviews > div,
html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.phlox-salon section#booking .booking-reviews .eyebrow,
body.phlox-salon section#booking .booking-reviews h2,
body.phlox-salon section#booking .booking-reviews .muted,
html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews .eyebrow,
html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews h2,
html[data-theme="organic"] body.phlox-salon section#booking .booking-reviews .muted {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

body.phlox-salon section#booking .live-review-feed,
html[data-theme="organic"] body.phlox-salon section#booking .live-review-feed {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 12px !important;
}

body.phlox-salon section#booking .live-review-title,
html[data-theme="organic"] body.phlox-salon section#booking .live-review-title {
  position: static !important;
  grid-column: 1 / -1 !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
}

body.phlox-salon section#booking .live-review-item,
html[data-theme="organic"] body.phlox-salon section#booking .live-review-item {
  position: static !important;
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body.phlox-salon section#booking .live-review-item *,
html[data-theme="organic"] body.phlox-salon section#booking .live-review-item * {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

body.phlox-salon section#booking .live-review-item .review-person,
html[data-theme="organic"] body.phlox-salon section#booking .live-review-item .review-person {
  width: 100% !important;
  min-width: 0 !important;
}

body.phlox-salon section#booking .live-review-item .review-rating,
html[data-theme="organic"] body.phlox-salon section#booking .live-review-item .review-rating {
  min-width: 0 !important;
  max-width: 100% !important;
  justify-self: end !important;
}

body.phlox-salon section#booking .live-review-item p,
html[data-theme="organic"] body.phlox-salon section#booking .live-review-item p {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 900px) {
  body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary > div,
  html[data-theme="organic"] body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary .eyebrow,
  body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary h2,
  html[data-theme="organic"] body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary .eyebrow,
  html[data-theme="organic"] body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary h2 {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.phlox-salon section#booking .live-review-feed,
  html[data-theme="organic"] body.phlox-salon section#booking .live-review-feed {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    margin-top: 2px !important;
  }

  body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary .live-review-feed .live-review-title,
  html[data-theme="organic"] body.phlox-salon section#booking.booking aside.booking-reviews.reviews-summary .live-review-feed .live-review-title {
    position: static !important;
    inset: auto !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.phlox-salon section.section.simple-about .split-image,
  html[data-theme="organic"] body.phlox-salon section.section.simple-about .split-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (max-width: 720px) {
  body.phlox-salon section#servicesOverview .service-preview-grid .service-art-card > img,
  html[data-theme="organic"] body.phlox-salon section#servicesOverview .service-preview-grid .service-art-card > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  body.phlox-salon section#booking .booking-copy,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-copy {
    justify-items: center !important;
    text-align: center !important;
  }

  body.phlox-salon section#booking .booking-copy > *,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-copy > * {
    margin-inline: auto !important;
    text-align: center !important;
  }
}

/* Match the approved 540px header button colors on tablet widths only. */
@media (min-width: 721px) and (max-width: 900px) {
  body.phlox-salon .site-header .site-nav,
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav {
    border-color: rgba(240, 197, 151, 0.62) !important;
  }

  body.phlox-salon .site-header .site-nav a:not(.is-active):not([aria-current="page"]),
  body.phlox-salon .site-header .site-nav a:not(.is-active):not([aria-current="page"]):hover,
  body.phlox-salon .site-header .site-nav a:not(.is-active):not([aria-current="page"]):focus-visible,
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav a:not(.is-active):not([aria-current="page"]),
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav a:not(.is-active):not([aria-current="page"]):hover,
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav a:not(.is-active):not([aria-current="page"]):focus-visible {
    color: #FFFFFF !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.phlox-salon .site-header .site-nav a.is-active,
  body.phlox-salon .site-header .site-nav a.is-active:hover,
  body.phlox-salon .site-header .site-nav a.is-active:focus-visible,
  body.phlox-salon .site-header .site-nav a[aria-current="page"],
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav a.is-active,
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav a.is-active:hover,
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav a.is-active:focus-visible,
  html[data-theme="organic"] body.phlox-salon .site-header .site-nav a[aria-current="page"] {
    color: #333333 !important;
    border-color: rgba(240, 197, 151, 0.62) !important;
    background: #F5DCD1 !important;
    box-shadow: none !important;
  }

  body.phlox-salon .site-header .header-appointment,
  html[data-theme="organic"] body.phlox-salon .site-header .header-appointment {
    color: #333333 !important;
    border-color: #9FDAC1 !important;
    background: #9FDAC1 !important;
  }

  body.phlox-salon .site-header .header-quick-link,
  html[data-theme="organic"] body.phlox-salon .site-header .header-quick-link {
    color: #333333 !important;
    border-color: rgba(147, 72, 91, 0.42) !important;
    background: #F5DCD1 !important;
  }

  body.phlox-salon .site-header :is(.header-appointment, .header-quick-link):hover,
  body.phlox-salon .site-header :is(.header-appointment, .header-quick-link):focus-visible,
  html[data-theme="organic"] body.phlox-salon .site-header :is(.header-appointment, .header-quick-link):hover,
  html[data-theme="organic"] body.phlox-salon .site-header :is(.header-appointment, .header-quick-link):focus-visible {
    color: #FFFFFF !important;
    border-color: #93485B !important;
    background: #93485B !important;
  }
}

/* Location name hover and persistent selected/open state. */
body.phlox-salon .bottom-location-grid article:not(.is-open) .bottom-location-toggle:hover,
body.phlox-salon .bottom-location-grid article:not(.is-open) .bottom-location-toggle:focus-visible,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article:not(.is-open) .bottom-location-toggle:hover,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article:not(.is-open) .bottom-location-toggle:focus-visible {
  color: #333333 !important;
  background: #F5DCD1 !important;
}

body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle,
body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle:hover,
body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle:focus-visible,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle:hover,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle:focus-visible {
  color: #FFFFFF !important;
  background: #93485B !important;
}

body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle strong,
body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle .bottom-location-icon,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle strong,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle .bottom-location-icon {
  color: #FFFFFF !important;
}

body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle > span:first-child,
html[data-theme="organic"] body.phlox-salon .bottom-location-grid article.is-open .bottom-location-toggle > span:first-child {
  color: #F0C597 !important;
}

/* Compact, balanced booking form for laptop and full-screen layouts. */
@media (min-width: 1200px) {
  body.phlox-salon section#booking .selected-location-mini:not(:empty),
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px 14px !important;
    background: #6B3356 !important;
  }

  body.phlox-salon section#booking .selected-location-mini:not(:empty) strong,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) strong {
    color: #F0C597 !important;
  }

  body.phlox-salon section#booking .selected-location-mini:not(:empty) span,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) span {
    color: #FFFFFF !important;
  }

  body.phlox-salon section#booking .selected-location-mini:not(:empty) a,
  html[data-theme="organic"] body.phlox-salon section#booking .selected-location-mini:not(:empty) a {
    color: #E7F0DA !important;
  }

  body.phlox-salon section#booking .booking-form,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 10px !important;
    padding: 14px !important;
  }

  body.phlox-salon section#booking .booking-form > label:not(.sms-consent-field):not(.honeypot),
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form > label:not(.sms-consent-field):not(.honeypot) {
    gap: 4px !important;
  }

  body.phlox-salon section#booking .booking-form input:not([type="checkbox"]),
  body.phlox-salon section#booking .booking-form select,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form input:not([type="checkbox"]),
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form select {
    min-height: 42px !important;
    height: 42px !important;
    padding-block: 7px !important;
  }

  body.phlox-salon section#booking .booking-form .sms-consent-field,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form .sms-consent-field {
    grid-column: span 2 !important;
    min-height: 0 !important;
    padding: 9px 11px !important;
  }

  body.phlox-salon section#booking .booking-form > label:has(select[name="firstVisit"]),
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form > label:has(select[name="firstVisit"]) {
    grid-column: 3 !important;
  }

  body.phlox-salon section#booking .booking-form .notes-field,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form .notes-field {
    grid-column: span 2 !important;
  }

  body.phlox-salon section#booking .booking-form .notes-field textarea,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form .notes-field textarea {
    min-height: 44px !important;
    height: 44px !important;
    padding-block: 8px !important;
  }

  body.phlox-salon section#booking .booking-form > button[type="submit"],
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form > button[type="submit"] {
    grid-column: 3 !important;
    min-height: 44px !important;
    align-self: end !important;
  }

  body.phlox-salon section#booking .booking-form .honeypot,
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form .honeypot {
    position: absolute !important;
  }

  body.phlox-salon section#booking .booking-form :is(.safe-note, .form-note, .booking-actions-result),
  html[data-theme="organic"] body.phlox-salon section#booking .booking-form :is(.safe-note, .form-note, .booking-actions-result) {
    grid-column: 1 / -1 !important;
  }
}

/* Color only the individual services inside the Most Used price box. */
body.phlox-salon .popular-price-list > p,
html[data-theme="organic"] body.phlox-salon .popular-price-list > p {
  position: relative;
  background: #FFFFFF !important;
  transition: transform 180ms ease, box-shadow 180ms ease !important;
  transform-origin: center;
}

body.phlox-salon .popular-price-list > p > strong,
html[data-theme="organic"] body.phlox-salon .popular-price-list > p > strong {
  background: #F8E8E8 !important;
  transition: background-color 180ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
  body.phlox-salon .popular-price-list > p:nth-child(3n + 1):hover,
  html[data-theme="organic"] body.phlox-salon .popular-price-list > p:nth-child(3n + 1):hover {
    background: #FFEDDB !important;
  }

  body.phlox-salon .popular-price-list > p:nth-child(3n + 2):hover,
  html[data-theme="organic"] body.phlox-salon .popular-price-list > p:nth-child(3n + 2):hover {
    background: #F2DAE0 !important;
  }

  body.phlox-salon .popular-price-list > p:nth-child(3n):hover,
  html[data-theme="organic"] body.phlox-salon .popular-price-list > p:nth-child(3n):hover {
    background: #D0D1AE !important;
  }

  body.phlox-salon .popular-price-list > p:hover,
  html[data-theme="organic"] body.phlox-salon .popular-price-list > p:hover {
    color: #111111 !important;
    z-index: 2;
    transform: scale(1.04) !important;
    box-shadow: 0 10px 24px rgba(42, 42, 32, 0.2) !important;
  }

  body.phlox-salon .popular-price-list > p:hover :is(span, small, strong),
  html[data-theme="organic"] body.phlox-salon .popular-price-list > p:hover :is(span, small, strong) {
    color: #111111 !important;
  }

  body.phlox-salon .popular-price-list > p:hover > strong,
  html[data-theme="organic"] body.phlox-salon .popular-price-list > p:hover > strong {
    background: #FFFFFF !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.phlox-salon .popular-price-list > p,
  html[data-theme="organic"] body.phlox-salon .popular-price-list > p {
    transition: none !important;
  }
}

body.phlox-salon main:has(> .homepage-faq:last-child),
html[data-theme="organic"] body.phlox-salon main:has(> .homepage-faq:last-child) {
  padding-bottom: 24px !important;
}

body.phlox-salon .homepage-faq,
html[data-theme="organic"] body.phlox-salon .homepage-faq {
  padding-bottom: 18px !important;
}
/* Keep the promotion-banner close glyph optically centered at every size. */
.phlox-salon .promo-ticker-close,
html[data-theme="organic"] .phlox-salon .promo-ticker-close {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.phlox-salon .promo-ticker-close::before,
html[data-theme="organic"] .phlox-salon .promo-ticker-close::before {
  content: "\00d7";
  display: block;
  color: inherit;
  font-family: Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* Keep all Services & Prices controls on one row across phone and tablet widths. */
@media (max-width: 720px) {
  .phlox-salon .services-prices .price-controls,
  html[data-theme="organic"] .phlox-salon .services-prices .price-controls {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .phlox-salon .services-prices .price-controls::-webkit-scrollbar,
  html[data-theme="organic"] .phlox-salon .services-prices .price-controls::-webkit-scrollbar {
    display: none !important;
  }

  .phlox-salon .services-prices .price-location-buttons,
  .phlox-salon .services-prices .price-mode-buttons,
  html[data-theme="organic"] .phlox-salon .services-prices .price-location-buttons,
  html[data-theme="organic"] .phlox-salon .services-prices .price-mode-buttons {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
  }

  .phlox-salon .services-prices .price-controls button,
  html[data-theme="organic"] .phlox-salon .services-prices .price-controls button {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    padding: 8px 9px !important;
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 900px) {
  .phlox-salon .services-preview-section,
  html[data-theme="organic"] .phlox-salon .services-preview-section {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  .phlox-salon .service-preview-grid,
  html[data-theme="organic"] .phlox-salon .service-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .phlox-salon .service-preview-grid article,
  html[data-theme="organic"] .phlox-salon .service-preview-grid article {
    width: 100% !important;
    min-width: 0 !important;
  }

  .phlox-salon #mobileInfo .mobile-quick-actions,
  html[data-theme="organic"] .phlox-salon #mobileInfo .mobile-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .phlox-salon #mobileInfo .mobile-quick-actions > a,
  .phlox-salon #mobileInfo .mobile-quick-actions > button,
  html[data-theme="organic"] .phlox-salon #mobileInfo .mobile-quick-actions > a,
  html[data-theme="organic"] .phlox-salon #mobileInfo .mobile-quick-actions > button {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 6px !important;
    white-space: nowrap !important;
  }
}

/* Final About photo fit for compact Codex/tablet scaling: fill the right-hand box edge to edge. */
@media (min-width: 672px) and (max-width: 1200px) {
  body.phlox-salon section.section.simple-about,
  html[data-theme="organic"] body.phlox-salon section.section.simple-about {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.phlox-salon section.section.simple-about .split-image,
  html[data-theme="organic"] body.phlox-salon section.section.simple-about .split-image {
    align-self: center !important;
    justify-self: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* Tighten only the three marked gaps at compact desktop/tablet widths. */
@media (min-width: 901px) {
  body.phlox-salon .brand-qualities,
  html[data-theme="organic"] body.phlox-salon .brand-qualities {
    padding-bottom: 34px !important;
  }

  body.phlox-salon .services-preview-section,
  html[data-theme="organic"] body.phlox-salon .services-preview-section {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  body.phlox-salon .services-prices,
  html[data-theme="organic"] body.phlox-salon .services-prices {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  body.phlox-salon .simple-about,
  html[data-theme="organic"] body.phlox-salon .simple-about {
    padding-top: 40px !important;
  }
}

/* Reviews live in their own box directly below Contact / Book Now. */
body.phlox-salon section#booking.booking,
html[data-theme="organic"] body.phlox-salon section#booking.booking {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.phlox-salon .standalone-reviews-section,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(14px, 2vw, 24px) auto clamp(28px, 4vw, 48px);
}

body.phlox-salon .standalone-reviews-section .reviews-summary,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .reviews-summary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  text-align: left;
}

body.phlox-salon .standalone-reviews-section .booking-reviews > div,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .booking-reviews > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

body.phlox-salon .standalone-reviews-section .booking-reviews .eyebrow,
body.phlox-salon .standalone-reviews-section .booking-reviews h2,
body.phlox-salon .standalone-reviews-section .booking-reviews .muted,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .booking-reviews .eyebrow,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .booking-reviews h2,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .booking-reviews .muted {
  position: static !important;
  width: 100%;
  max-width: 100%;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.phlox-salon .standalone-reviews-section .live-review-feed,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .live-review-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 12px;
}

body.phlox-salon .standalone-reviews-section .live-review-title,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .live-review-title {
  position: static !important;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  transform: none !important;
}

body.phlox-salon .standalone-reviews-section .live-review-item,
html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .live-review-item {
  position: static !important;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

@media (max-width: 720px) {
  body.phlox-salon .standalone-reviews-section,
  html[data-theme="organic"] body.phlox-salon .standalone-reviews-section {
    width: calc(100% - 24px);
    margin-top: 12px;
    margin-bottom: 28px;
  }

  body.phlox-salon .standalone-reviews-section .reviews-summary,
  html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .reviews-summary {
    padding: 18px 16px;
    text-align: center;
  }

  body.phlox-salon .standalone-reviews-section .live-review-feed,
  html[data-theme="organic"] body.phlox-salon .standalone-reviews-section .live-review-feed {
    grid-template-columns: minmax(0, 1fr);
  }
}
