/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html {
  scroll-behavior: smooth;
}

.glass {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.faq-content > div {
  overflow: hidden;
}

.faq-item[data-open="true"] .faq-content {
  grid-template-rows: 1fr;
}

.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
}

.public-screen {
  animation: publicScreenIn 0.24s ease both;
}

.chat-shell {
  bottom: 1.5rem;
  right: 1.5rem;
}

.chat-panel {
  height: min(680px, calc(100vh - 112px));
  width: min(410px, calc(100vw - 24px));
}

.chat-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
}

.chat-fab {
  box-shadow: 0 12px 30px rgba(24, 24, 27, .18);
}

.shadow-button {
  box-shadow: 0 12px 30px rgba(24, 24, 27, .18);
}

.admin-card {
  box-shadow: 0 1px 2px rgba(24, 24, 27, .05), 0 12px 30px rgba(24, 24, 27, .04);
}

.task-line::before {
  background: #e4e4e7;
  bottom: -1.375rem;
  content: "";
  left: 1.375rem;
  position: absolute;
  top: 3.375rem;
  width: 2px;
}

.task-line:last-child::before {
  display: none;
}

.appointment-summary-row[data-expanded="true"] {
  background: #FAFAFC;
}

.appointment-detail-action-layout,
.appointment-detail-layout {
  display: grid;
  gap: 1.25rem;
}

.appointment-detail-sidebar {
  min-width: 0;
}

.customer-autocomplete-shell {
  border-radius: 30px;
}

.customer-autocomplete-menu {
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(24, 24, 27, .18);
  max-height: min(22rem, calc(100vh - 12rem));
  overflow-y: auto;
  top: calc(100% + .5rem);
}

@media (min-width: 1024px) {
  .appointment-detail-action-layout {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .appointment-detail-action-actions {
    justify-content: flex-end;
  }

  .appointment-detail-layout {
    align-items: start;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  }
}

.admin-pagination a:focus-visible {
  outline: 3px solid #ddd6fe;
  outline-offset: 2px;
}

.copy-text-tooltip {
  background: #18181b;
  border-radius: 999px;
  bottom: calc(100% + 10px);
  box-shadow: 0 12px 30px rgba(24, 24, 27, .18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  left: 50%;
  line-height: 1;
  opacity: 0;
  padding: 7px 10px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
  white-space: nowrap;
  z-index: 1000;
}

.copy-text-tooltip::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #18181b;
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.copy-text-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.message-enter {
  animation: messageEnter .24s ease both;
}

.pulse-dot {
  animation: pulseDot 1.2s ease-in-out infinite;
}

.pulse-dot:nth-child(2) {
  animation-delay: .15s;
}

.pulse-dot:nth-child(3) {
  animation-delay: .3s;
}

@keyframes messageEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseDot {
  0%, 80%, 100% {
    opacity: .25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 640px) {
  .chat-shell {
    bottom: .75rem;
    left: .75rem;
    right: .75rem;
  }

  .chat-panel {
    border-radius: 28px;
    height: min(720px, calc(100vh - 24px));
    width: 100%;
  }
}

turbo-frame#booking_flow {
  display: block;
  position: relative;
}

turbo-frame#booking_flow[busy] > * {
  opacity: .72;
  pointer-events: none;
  transition: opacity .18s ease;
}

turbo-frame#booking_flow[busy]::after {
  animation: bookingFlowLoading .9s ease-in-out infinite;
  background: linear-gradient(90deg, #7c3aed, #db2777, #7c3aed);
  background-size: 220% 100%;
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 1rem;
  position: absolute;
  right: 1rem;
  top: 0;
  z-index: 20;
}

@keyframes bookingFlowLoading {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 220% 50%;
  }
}

@keyframes publicScreenIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-cell {
  aspect-ratio: 1 / 1;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a.calendar-cell {
  will-change: transform;
}

a.calendar-cell:active {
  transform: scale(.96);
}

a.calendar-cell:focus-visible,
.slot-button:focus-visible {
  outline: 3px solid rgba(124, 58, 237, .28);
  outline-offset: 2px;
}

.booking-calendar-scroll {
  -webkit-overflow-scrolling: touch;
  margin-inline: -.25rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  padding-inline: .25rem;
  scrollbar-width: none;
}

.booking-calendar-scroll::-webkit-scrollbar {
  display: none;
}

.booking-calendar-grid {
  min-width: 322px;
}

@media (min-width: 380px) {
  .booking-calendar-grid {
    min-width: 0;
  }
}

.slot-button {
  min-height: 58px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.slot-button:active {
  transform: scale(.98);
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.public-service-pill-rail,
[data-public-services-target="rail"] {
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-color: #a78bfa #f4f4f5;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.public-service-pill-rail > *,
[data-public-services-target="rail"] > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.public-service-pill-rail::-webkit-scrollbar,
[data-public-services-target="rail"]::-webkit-scrollbar {
  display: block;
  height: 10px;
}

.public-service-pill-rail::-webkit-scrollbar-track,
[data-public-services-target="rail"]::-webkit-scrollbar-track {
  background: #f4f4f5;
  border-radius: 999px;
}

.public-service-pill-rail::-webkit-scrollbar-thumb,
[data-public-services-target="rail"]::-webkit-scrollbar-thumb {
  background: #a78bfa;
  border: 2px solid #f4f4f5;
  border-radius: 999px;
}

.public-service-pill-rail::-webkit-scrollbar-thumb:hover,
[data-public-services-target="rail"]::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}

.public-date-window-nav {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  margin-top: 16px;
}

.public-date-window-arrow {
  align-items: center;
  border-radius: 18px;
  color: #09090b;
  display: flex;
  font-size: 48px;
  font-weight: 900;
  height: 78px;
  justify-content: center;
  line-height: 0.8;
  text-decoration: none;
  width: 44px;
}

.public-date-window-arrow:hover {
  background: #fff;
}

.public-date-window-arrow.is-placeholder {
  pointer-events: none;
  visibility: hidden;
}

.public-date-rail {
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.public-date-rail::-webkit-scrollbar {
  display: none;
}

.public-date-card {
  flex: 0 0 56px;
  min-height: 78px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .public-date-window-nav {
    gap: 12px;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
  }

  .public-date-window-arrow {
    font-size: 56px;
    height: 88px;
    width: 50px;
  }

  .public-date-rail {
    gap: 12px;
  }

  .public-date-card {
    flex: 0 0 76px;
    min-height: 88px;
  }
}

@media (max-width: 420px) {
  .public-date-window-nav {
    gap: 6px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .public-date-window-arrow {
    font-size: 44px;
    width: 34px;
  }
}

@media (min-width: 900px) {
  .public-date-rail {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 80px));
    justify-content: space-between;
    overflow-x: visible;
  }

  .public-date-card {
    min-width: 0;
  }
}

.public-bottom-safe {
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.admin-calendar-day-grid {
  display: grid;
  position: relative;
}

.admin-calendar-cell {
  border-bottom: 1px solid #f1f1f3;
  border-right: 1px solid #f1f1f3;
  min-height: 48px;
}

.admin-calendar-header {
  background: #fafafa;
  border-bottom: 1px solid #ececef;
  border-right: 1px solid #ececef;
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-calendar-corner {
  left: 0;
  z-index: 30;
}

.admin-calendar-time {
  align-items: start;
  background: #fafafa;
  border-bottom: 1px solid #f1f1f3;
  border-right: 1px solid #ececef;
  color: #a1a1aa;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  left: 0;
  min-height: 48px;
  position: sticky;
  z-index: 18;
}

.admin-calendar-booking {
  align-items: center;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(17, 17, 20, .04);
  display: flex;
  margin: 5px 7px;
  overflow: hidden;
  padding: 10px 12px;
  position: relative;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
  z-index: 10;
}

.admin-calendar-booking:hover {
  box-shadow: 0 12px 28px rgba(17, 17, 20, .08);
  transform: translateY(-1px);
}

.admin-calendar-booking:focus-visible {
  outline: 3px solid rgba(124, 58, 237, .28);
  outline-offset: 2px;
}

.admin-calendar-appointment-link {
  cursor: pointer;
}

.admin-calendar-scrollbar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.admin-calendar-scrollbar::-webkit-scrollbar {
  height: 8px;
}

.admin-calendar-scrollbar::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 999px;
}

.month-day {
  min-height: 126px;
}
