/* Multi-select additions layered over the production homepage theme. */

body.has-service-selection .wa-float {
  bottom: 122px;
}

body.has-service-selection .scroll-top {
  bottom: 292px;
}

#services .service-card[data-service] {
  cursor: pointer;
}

#services .service-card[data-service]:focus-within {
  outline: 3px solid rgba(33, 79, 69, 0.22);
  outline-offset: 2px;
}

#services .service-card.is-selected {
  border-color: var(--forest);
  background:
    linear-gradient(180deg, rgba(33, 79, 69, 0.055), transparent 72%),
    var(--paper);
  box-shadow: inset 3px 0 0 var(--forest);
}

#services .service-card.is-selected .price {
  color: var(--forest);
}

#services .service-card .btn-book {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--forest);
  font-size: 0;
  line-height: 1;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

#services .service-card .btn-book::before {
  content: "+";
  display: block;
  color: #fff;
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#services .service-card .btn-book:hover {
  background: var(--forest-2);
  box-shadow: 0 5px 14px rgba(26, 58, 46, 0.18);
}

#services .service-card.is-selected .btn-book {
  background: var(--coral);
}

#services .service-card.is-selected .btn-book::before {
  transform: rotate(45deg);
}

#services .service-card.is-selected .btn-book:hover {
  background: #b9533a;
}

.service-selection-dock {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 996;
  width: min(370px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--paper);
  box-shadow: 0 20px 54px rgba(27, 42, 36, 0.2);
}

.service-selection-dock[hidden] {
  display: none !important;
}

.selection-dock-head {
  padding: 15px 17px 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  background: var(--paper-warm);
}

.selection-dock-head span,
.selection-dock-head strong {
  display: block;
}

.selection-dock-head span {
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 800;
}

.selection-dock-head strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.04rem;
}

.selection-dock-head b {
  color: var(--coral);
}

.selection-dock-head small {
  max-width: 170px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
  text-align: right;
}

.selection-dock-items {
  max-height: 190px;
  padding: 4px 17px;
  overflow-y: auto;
}

.selection-dock-item {
  min-height: 48px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
}

.selection-dock-item:last-child {
  border-bottom: 0;
}

.selection-dock-item span {
  min-width: 0;
}

.selection-dock-item strong {
  flex: 0 0 auto;
  color: var(--coral);
  font-size: 0.76rem;
}

.selection-dock-foot {
  padding: 13px 17px 15px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: #faf8f3;
}

.selection-dock-foot > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.selection-dock-foot > span strong {
  display: block;
  margin-top: 2px;
  color: var(--coral);
  font-size: 1rem;
}

.selection-dock-foot button {
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: var(--forest);
  font-size: 0.76rem;
  font-weight: 750;
}

.selection-dock-foot button:hover {
  background: var(--forest-2);
}

.booking-guest-choice {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.booking-guest-choice > p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.booking-choice-primary,
.booking-choice-wa {
  width: 100%;
  min-height: 62px;
  padding: 10px 13px;
  border-radius: 7px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
}

.booking-choice-primary + .booking-choice-wa {
  margin-top: 8px;
}

.booking-choice-primary {
  border: 1px solid var(--forest);
  color: #fff;
  background: var(--forest);
}

.booking-choice-wa {
  border: 1px solid #b9d8c6;
  color: var(--forest);
  background: #f0f8f3;
}

.booking-choice-primary > i,
.booking-choice-wa > i {
  font-size: 1.15rem;
}

.booking-choice-primary strong,
.booking-choice-primary small,
.booking-choice-wa strong,
.booking-choice-wa small {
  display: block;
}

.booking-choice-primary strong,
.booking-choice-wa strong {
  font-size: 0.8rem;
}

.booking-choice-primary small,
.booking-choice-wa small {
  margin-top: 4px;
  font-size: 0.66rem;
  line-height: 1.45;
  opacity: 0.76;
}

.booking-wa-fallback {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #b9d8c6;
  border-radius: 7px;
  background: #f0f8f3;
}

.booking-wa-fallback strong {
  display: block;
  margin-bottom: 9px;
  color: var(--forest);
  font-size: 0.8rem;
}

.booking-wa-fallback a {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--whatsapp);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 767px) {
  body.has-service-selection .wa-float {
    display: none;
  }

  body.has-service-selection .scroll-top {
    bottom: 286px;
  }

  .service-selection-dock {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }

  .selection-dock-head {
    padding: 12px 14px 10px;
  }

  .selection-dock-head small {
    max-width: 140px;
  }

  .selection-dock-items {
    max-height: 132px;
    padding-inline: 14px;
  }

  .selection-dock-foot {
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #services .service-card,
  #services .service-card .btn-book,
  #services .service-card .btn-book::before,
  .selection-dock-foot button {
    transition: none !important;
  }
}

