:root {
  --hh-purple: #7137cf;
  --hh-purple-dark: #5f28bf;
  --hh-purple-soft: #efe5ff;
  --hh-line: #eadcfb;
  --hh-text: #101522;
  --hh-muted: #5d6474;
}
body.hh-page,
body.sc-homepage--househelp {
  margin: 0;
  background: #f7f7fb;
  color: var(--hh-text);
}
body.hh-page .sc-nav {
  display: none;
}
body.hh-page .sc-cart-bar,
body.hh-page .sc-order-bar,
body.sc-homepage--househelp .sc-cart-bar,
body.sc-homepage--househelp .sc-order-bar {
  display: none !important;
}
.hh-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 10px 102px;
}
.hh-title-pill {
  width: max-content;
  max-width: calc(100% - 42px);
  margin: 0 auto 14px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--hh-purple-soft);
  color: var(--hh-purple);
  font-weight: 900;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
}
.hh-phone {
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(34, 20, 72, 0.12);
}
.hh-head {
  padding: 18px 20px 16px;
  background: linear-gradient(135deg, var(--hh-purple-dark), #7d3fd1);
  color: #fff;
}
.hh-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hh-address {
  min-width: 0;
  font-weight: 850;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hh-address span {
  opacity: 0.9;
  font-size: 13px;
  margin-left: 5px;
}
.hh-head-actions {
  display: flex;
  gap: 14px;
  flex: none;
}
.hh-head-icon {
  width: 32px;
  height: 32px;
  color: #fff;
  display: grid;
  place-items: center;
}
.hh-head-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.hh-switch {
  margin-top: 26px;
  padding: 3px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.12);
}
.hh-switch a,
.hh-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}
.hh-switch a {
  background: #fff;
  color: #111827;
}
.hh-switch button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.hh-switch svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.hh-main {
  padding: 14px 14px 0;
}
.hh-rest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 13px;
  background: linear-gradient(90deg, #fff0cc, #fff9ec);
  border: 1px solid #ffe8ac;
}
.hh-rest-art {
  width: 112px;
  height: 94px;
  flex: none;
  position: relative;
}
.hh-rest-art:before {
  content: "";
  position: absolute;
  left: 16px;
  top: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0a477;
  box-shadow: 0 -12px 0 #2b1b18;
}
.hh-rest-art:after {
  content: "zZ";
  position: absolute;
  right: 18px;
  top: 10px;
  color: #f4ad22;
  font-weight: 900;
  transform: rotate(-18deg);
}
.hh-pillow {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 86px;
  height: 30px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(90, 64, 22, 0.1);
}
.hh-rest h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.18;
}
.hh-rest p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
}
.hh-map {
  position: relative;
  height: 206px;
  margin: 0 -14px;
  overflow: hidden;
  background: #e9f0eb;
}
.hh-map:before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(
      25deg,
      transparent 0 22%,
      rgba(255, 255, 255, 0.85) 22% 25%,
      transparent 25% 100%
    ),
    linear-gradient(
      115deg,
      transparent 0 38%,
      rgba(255, 255, 255, 0.9) 38% 41%,
      transparent 41% 100%
    ),
    linear-gradient(
      155deg,
      transparent 0 58%,
      rgba(255, 255, 255, 0.78) 58% 61%,
      transparent 61% 100%
    ),
    linear-gradient(
      90deg,
      transparent 0 47%,
      rgba(177, 220, 155, 0.45) 47% 57%,
      transparent 57%
    );
  opacity: 0.96;
}
.hh-map:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 22% 24%,
      rgba(125, 211, 252, 0.2) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 74% 66%,
      rgba(34, 197, 94, 0.16) 0 42px,
      transparent 43px
    ),
    radial-gradient(
      circle at 18% 72%,
      rgba(34, 197, 94, 0.12) 0 34px,
      transparent 35px
    );
  pointer-events: none;
}
.hh-map-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}
.hh-map-center:before,
.hh-map-center:after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 2px solid rgba(33, 150, 243, 0.34);
  background: rgba(33, 150, 243, 0.12);
  animation: hhMapPulseRing 2.2s ease-out infinite;
}
.hh-map-center:after {
  animation-delay: 1.1s;
}
.hh-map-center span {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1e9bff;
  border: 6px solid #fff;
  box-shadow:
    0 0 0 8px rgba(30, 155, 255, 0.16),
    0 10px 24px rgba(30, 155, 255, 0.32);
  animation: hhMapCenterBeat 1.55s ease-in-out infinite;
}
@keyframes hhMapPulseRing {
  0% {
    opacity: 0.58;
    transform: scale(0.28);
  }
  72% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}
@keyframes hhMapCenterBeat {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
}
.hh-marker {
  position: absolute;
  width: 42px;
  height: 56px;
  transform: translate(-50%, -82%);
  z-index: 4;
  display: grid;
  justify-items: center;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(74, 37, 143, 0.22));
}
.hh-marker .face {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #8b5cf6, var(--hh-purple));
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(113, 55, 207, 0.16);
}
.hh-marker .face span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #fff 0 22%, transparent 24%),
    radial-gradient(circle at 50% 100%, #fff 0 48%, transparent 50%);
}
.hh-marker:after {
  content: "";
  margin-top: -3px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 17px solid var(--hh-purple);
}
.hh-card-link {
  margin: 18px 0 20px;
  padding: 14px 16px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid #e2ccff;
  background: linear-gradient(90deg, #fbf8ff, #fff);
  color: #111827;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(113, 55, 207, 0.06);
}
.hh-card-link h2 {
  margin: 0;
  color: #070b16;
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
  text-decoration: none;
}
.hh-card-link p {
  margin: 4px 0 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: none;
}
.hh-clock {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hh-purple);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(113, 55, 207, 0.09);
}
.hh-clock svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.hh-arrow {
  justify-self: end;
  color: #080d19;
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
  text-decoration: none;
}
.hh-section-head {
  margin: 18px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hh-section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  color: #101522;
  font-weight: 900;
}
.hh-section-head span {
  color: var(--hh-purple);
  font-weight: 900;
  font-size: 14px;
}
.hh-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hh-service {
  min-width: 0;
  min-height: 132px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #111827;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}
.hh-service .ico {
  width: 100%;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hh-service-img {
  display: block;
  max-width: 94px;
  width: 100%;
  height: 76px;
  object-fit: contain;
}
.hh-service-img.is-empty {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0e5ff;
}
.hh-service strong {
  display: block;
  max-width: 100%;
  color: #111827;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.hh-services--display {
  gap: 18px 14px;
}

.hh-services--display .hh-service {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.hh-services--display .hh-service.is-selected {
  border-color: transparent;
  box-shadow: none;
}

.hh-services--display .hh-service .ico {
  height: 104px;
  display: grid;
  place-items: center;
}

.hh-services--display .hh-service-img {
  max-width: 118px;
  height: 100px;
}

.hh-services--display .hh-service-img.is-empty {
  width: 96px;
  height: 96px;
  background: transparent;
}

.hh-services--display .hh-service strong {
  margin-top: 6px;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.16;
}
.hh-how {
  margin-top: 22px;
  padding: 0 4px 18px;
}
.hh-how h2 {
  margin: 0 0 16px;
  font-size: 19px;
}
.hh-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
  position: relative;
}
.hh-step {
  position: relative;
  z-index: 1;
}
.hh-step:not(:last-child):after {
  content: "";
  position: absolute;
  left: 72%;
  top: 28px;
  width: 58%;
  border-top: 3px dashed #d5b9ff;
}
.hh-step .bubble {
  width: 54px;
  height: 54px;
  margin: auto;
  border-radius: 50%;
  background: #f0e5ff;
  display: grid;
  place-items: center;
  color: var(--hh-purple);
  box-shadow: 0 6px 14px rgba(113, 55, 207, 0.08);
}
.hh-step .bubble svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.hh-step .num {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 7px;
  background: #e7d7ff;
  color: var(--hh-purple);
  font-size: 11px;
  font-weight: 900;
}
.hh-step b {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.22;
}
.hh-requests-band {
  margin: 0 -14px;
  padding: 16px 14px 20px;
  border-top: 1px solid #edf0f5;
  background: #fff;
}
.hh-request-link {
  color: inherit;
  text-decoration: none;
}
.hh-request-link:active {
  transform: scale(0.995);
}
.hh-request {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}
.hh-request .thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #fbf7ff;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.hh-request .thumb .hh-service-img {
  width: 64px;
  height: 64px;
}
.hh-request b {
  font-size: 17px;
}
.hh-request-meta {
  color: #657083;
  font-weight: 650;
  margin-top: 5px;
}
.hh-request-main {
  min-width: 0;
  flex: 1;
}
.hh-badge.is-cancelled {
  background: #f1f5f9;
  color: #64748b;
}
.hh-fee-due {
  color: #b45309;
  font-weight: 800;
}
.hh-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #eadcff;
  color: var(--hh-purple);
  font-size: 12px;
  font-weight: 900;
}
.hh-flow {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10030;
  background: #f8fafc;
  overflow: hidden;
  padding: 0;
}
.hh-flow.is-open {
  display: flex;
}
.hh-flow-card {
  width: 100%;
  min-height: 100dvh;
  background: #fff;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hh-flow-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 12px;
  background: linear-gradient(145deg, #8b5cf6, var(--hh-purple));
  color: #fff;
}
.hh-flow-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 20px;
}
.hh-flow-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 8px calc(104px + env(safe-area-inset-bottom));
  background: #fff;
}
.hh-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 15px;
}
.hh-progress span {
  height: 6px;
  border-radius: 99px;
  background: #e5e7eb;
}
.hh-progress span.is-on {
  background: linear-gradient(145deg, #8b5cf6, var(--hh-purple));
}
.hh-panel {
  display: none;
}
.hh-panel.is-on {
  display: block;
}
.hh-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.hh-date,
.hh-slot,
.hh-provider,
.hh-review {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}
.hh-flow .hh-choice-grid .hh-service {
  position: relative;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}
.hh-flow .hh-choice-grid .hh-service.is-selected {
  border-color: var(--hh-purple);
  background: #f7f0ff;
  box-shadow:
    0 0 0 2px rgba(113, 55, 207, 0.14),
    0 10px 24px rgba(113, 55, 207, 0.14);
}
.hh-flow .hh-choice-grid .hh-service.is-selected::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--hh-purple);
  box-shadow: inset 0 0 0 5px #fff;
}
.hh-date.is-selected,
.hh-slot.is-selected,
.hh-provider.is-selected {
  border-color: var(--hh-purple);
  background: #f7f0ff;
  box-shadow: 0 0 0 2px rgba(113, 55, 207, 0.12);
}
.hh-slot {
  text-align: center;
  font-weight: 800;
}
.hh-provider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  margin-bottom: 9px;
}
.hh-provider .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5b47f;
  flex: none;
}
.hh-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  gap: 10px;
  margin-top: 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #eef2f7;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
}
.hh-actions button {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 850;
}
.hh-actions .secondary {
  background: #eef2f7;
  color: #0f172a;
}
.hh-actions .primary {
  background: linear-gradient(145deg, #8b5cf6, var(--hh-purple));
  color: #fff;
}
.hh-actions .primary:disabled {
  opacity: 0.48;
}
.hh-alert {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 750;
  display: none;
}
.hh-alert.ok {
  display: block;
  background: #e7f8ed;
  color: #106b34;
}
.hh-alert.err {
  display: block;
  background: #fdecec;
  color: #991b1b;
}
.hh-detail-flow .hh-flow-body {
  padding: 14px 14px calc(178px + env(safe-area-inset-bottom));
}
.hh-request-detail-body {
  display: grid;
  gap: 12px;
}
.hh-request-detail-body::after {
  content: "";
  display: block;
  height: 8px;
}
.hh-rd-loading {
  padding: 18px 4px;
  color: var(--hh-muted);
  font-weight: 750;
}
.hh-rd-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f7f0ff, #ffffff);
  border: 1px solid var(--hh-line);
}
.hh-rd-hero-main {
  min-width: 0;
  flex: 1;
}
.hh-rd-hero-main .hh-badge {
  margin: 10px 0 0;
}
.hh-rd-image {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  background: #eadcff;
  display: grid;
  place-items: center;
  color: var(--hh-purple);
  font-size: 28px;
  font-weight: 900;
}
.hh-rd-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hh-rd-hero h2 {
  margin: 5px 0 4px;
  font-size: 22px;
  line-height: 1.12;
}
.hh-rd-hero p {
  margin: 0;
  color: var(--hh-muted);
  font-weight: 750;
}
.hh-rd-code {
  color: var(--hh-purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.hh-detail-flow,
.hh-flow-body {
  overflow-x: hidden;
}
.hh-rd-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
.hh-rd-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.hh-rd-card > div {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #f1f5f9;
}
.hh-rd-card > div:first-of-type {
  border-top: 0;
}
.hh-rd-card b {
  color: #111827;
  font-size: 13px;
}
.hh-rd-card span {
  max-width: 58%;
  color: var(--hh-muted);
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hh-rd-long-row {
  display: grid !important;
  gap: 6px;
}
.hh-rd-long-row span {
  max-width: 100%;
  text-align: left;
  line-height: 1.4;
}
.hh-rd-event {
  display: grid !important;
  gap: 5px;
  min-width: 0;
}
.hh-rd-event b,
.hh-rd-event time,
.hh-rd-event span {
  max-width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hh-rd-event time {
  color: var(--hh-muted);
  font-size: 12px;
  font-weight: 800;
}
.hh-rd-event span {
  color: var(--hh-muted);
  font-weight: 750;
  line-height: 1.35;
}
.hh-request-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hh-request-detail-actions button {
  min-width: 0;
}
@media (min-width: 900px) {
  .hh-shell {
    padding-top: 18px;
  }
  .hh-phone {
    border-radius: 26px;
  }
  .hh-flow {
    background: #f8fafc;
  }
}
@media (max-width: 390px) {
  .hh-shell {
    padding-left: 8px;
    padding-right: 8px;
  }
  .hh-main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .hh-services {
    gap: 10px;
  }
  .hh-service {
    min-height: 124px;
  }
  .hh-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .hh-step:not(:last-child):after {
    width: 48%;
  }
  .hh-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
body.sc-homepage--househelp .home-shell,
body.sc-homepage--househelp #scRequestModal {
  display: none !important;
}

body.sc-homepage--househelp .hh-switch button {
  cursor: pointer;
}

body.sc-homepage--househelp .hh-switch button:not(.is-active) {
  background: #fff;
  color: #111827;
}

body.sc-homepage--househelp .hh-switch button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.sc-homepage:not(.sc-homepage--househelp) .hh-shell {
  display: none !important;
}

body.sc-homepage--househelp .bottom-nav {
  display: none !important;
}

body[data-resident-service="househelp"] #scFbOverlay {
  display: none !important;
}

/* Dynamic Househelp scheduling flow */
.hh-flow .hh-progress {
  grid-template-columns: repeat(5, 1fr);
}
.hh-date.is-disabled,
.hh-duration.is-disabled,
.hh-slot.is-sold-out {
  opacity: 0.52;
  cursor: not-allowed;
  background: #f8fafc;
  color: #94a3b8;
}
.hh-date.is-disabled {
  text-decoration: none;
}
.hh-duration-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}
.hh-duration {
  flex: 0 0 116px;
  min-height: 112px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
.hh-duration b,
.hh-duration span,
.hh-duration small {
  display: block;
}
.hh-duration b {
  font-size: 18px;
  color: #111827;
}
.hh-duration span {
  margin-top: 18px;
  font-weight: 900;
  color: #111827;
}
.hh-duration del {
  margin-left: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}
.hh-duration small {
  margin-top: 16px;
  font-weight: 800;
}
.hh-duration.is-selected {
  border-color: var(--hh-purple);
  background: #f7f0ff;
  box-shadow:
    0 0 0 2px rgba(113, 55, 207, 0.14),
    0 10px 24px rgba(113, 55, 207, 0.14);
}
.hh-time-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 12px;
  border-bottom: 1px solid #eef2f7;
}
.hh-time-tab {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 900;
  border-bottom: 3px solid transparent;
}
.hh-time-tab.is-selected {
  color: var(--hh-purple);
  border-bottom-color: var(--hh-purple);
}
.hh-slot-group {
  display: none;
}
.hh-slot-group.is-on {
  display: block;
}
.hh-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hh-slot-grid .hh-slot {
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 2px;
}
.hh-slot-grid .hh-slot b,
.hh-slot-grid .hh-slot small {
  display: block;
}
.hh-slot-grid .hh-slot small {
  font-size: 12px;
  font-weight: 800;
}
.hh-empty {
  margin: 8px 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}
@media (max-width: 420px) {
  .hh-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hh-schedule-block {
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}
.hh-schedule-block h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 16px;
  font-weight: 600;
}
.hh-date-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hh-flow .hh-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hh-flow .hh-date-grid .hh-date {
  min-height: 65px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 5px;
}
.hh-flow .hh-date-grid .hh-date b {
  font-size: 14px;
}
.hh-flow .hh-date-grid .hh-date div,
.hh-flow .hh-date-grid .hh-date small {
  font-size: 12px;
}
.hh-time-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 4px -16px 14px;
  border-bottom: 1px solid #eef0f4;
}
.hh-time-tab {
  position: relative;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  font-weight: 850;
}
.hh-time-tab.is-selected {
  color: var(--hh-purple);
}
.hh-time-tab.is-selected::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(145deg, #8b5cf6, var(--hh-purple));
}
.hh-actions.is-reviewing .secondary {
  display: none;
}
.hh-actions.is-reviewing .primary {
  flex-basis: 100%;
}

.hh-confirm-panel.is-on {
  display: block;
  padding: 8px 10px 86px;
}
.hh-confirm-screen {
  position: relative;
  min-height: calc(100dvh - 160px);
  padding: 4px 0 0;
  overflow: hidden;
}
.hh-confirm-screen::before {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  top: 96px;
  height: 300px;
  background:
    linear-gradient(
      180deg,
      rgba(247, 240, 255, 0),
      rgba(247, 240, 255, 0.92) 43%,
      rgba(255, 255, 255, 0) 100%
    ),
    radial-gradient(
      circle at 50% 20%,
      rgba(139, 92, 246, 0.18),
      transparent 38%
    );
  pointer-events: none;
}
.hh-confetti {
  position: absolute;
  inset: 24px 16px auto;
  height: 180px;
  pointer-events: none;
}
.hh-confetti span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  opacity: 0.72;
  transform: rotate(45deg);
  animation: hhConfettiFloat 1800ms ease-in-out infinite alternate;
}
.hh-confetti span:nth-child(1) {
  left: 7%;
  top: 26%;
  background: #fb7185;
}
.hh-confetti span:nth-child(2) {
  left: 27%;
  top: 8%;
  background: #c4b5fd;
  animation-delay: 180ms;
}
.hh-confetti span:nth-child(3) {
  right: 27%;
  top: 12%;
  background: #fde68a;
  animation-delay: 320ms;
}
.hh-confetti span:nth-child(4) {
  right: 8%;
  top: 34%;
  background: #fda4af;
  animation-delay: 120ms;
}
.hh-confetti span:nth-child(5) {
  left: 18%;
  top: 62%;
  background: #86efac;
  animation-delay: 420ms;
}
.hh-confetti span:nth-child(6) {
  right: 18%;
  top: 68%;
  background: #6ee7b7;
  animation-delay: 260ms;
}
.hh-confirm-hero {
  position: relative;
  z-index: 1;
  padding: 0 10px 10px;
  text-align: center;
}
.hh-confirm-check {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 18px solid rgba(139, 92, 246, 0.16);
  box-shadow: 0 18px 40px rgba(113, 55, 207, 0.12);
  animation: hhSuccessPop 520ms cubic-bezier(0.2, 1.25, 0.3, 1) both;
}
.hh-confirm-check::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: inherit;
  border: 9px solid rgba(139, 92, 246, 0.08);
}
.hh-confirm-check span {
  position: absolute;
  left: 22px;
  top: 16px;
  width: 17px;
  height: 31px;
  border: solid #059669;
  border-width: 0 7px 7px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  animation: hhSuccessTick 340ms 220ms ease-out forwards;
}
.hh-confirm-hero h2 {
  margin: 0;
  color: #32127a;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: 0;
}
.hh-confirm-hero p {
  width: min(270px, 100%);
  margin: 6px auto 0;
  color: #32127a;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}
.hh-confirm-details {
  position: relative;
  z-index: 1;
  margin: 0 2px 10px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}
.hh-confirm-details-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.hh-confirm-head-icon,
.hh-confirm-row i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #f2e9ff;
  color: var(--hh-purple);
  font-style: normal;
  font-size: 15px;
  font-weight: 950;
}
.hh-confirm-details-head h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}
.hh-confirm-details-head em {
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f8ee;
  color: #078348;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}
.hh-confirm-list {
  display: grid;
}
.hh-confirm-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 8px 0;
  border-top: 1px solid #eef2f7;
}
.hh-confirm-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.hh-confirm-row small {
  display: block;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.hh-confirm-row b {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.hh-confirm-row span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}
.hh-confirm-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  margin: 0 2px;
  padding: 14px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, #effdf4, #f9fffb);
}
.hh-confirm-bell {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #d7f7e2;
  color: #078348;
  font-size: 18px;
}
.hh-confirm-note b {
  display: block;
  margin-bottom: 4px;
  color: #078348;
  font-size: 15px;
  font-weight: 950;
}
.hh-confirm-note p {
  margin: 0;
  color: #14532d;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}
.hh-confirm-phone {
  width: 36px;
  height: 56px;
  border: 4px solid #0f766e;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
}
.hh-confirm-phone span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #22c55e;
}
.hh-actions.is-confirming {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.hh-actions.is-confirming .secondary {
  display: none;
}
.hh-actions.is-confirming .primary {
  flex-basis: 100%;
  min-height: 56px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: 0 12px 26px rgba(113, 55, 207, 0.24);
}
@media (max-height: 720px) {
  .hh-confirm-note {
    display: none;
  }
  .hh-confirm-panel.is-on {
    padding-top: 4px;
  }
  .hh-confirm-screen {
    min-height: calc(100dvh - 150px);
  }
}
@keyframes hhConfettiFloat {
  from {
    transform: translateY(0) rotate(45deg);
  }
  to {
    transform: translateY(8px) rotate(68deg);
  }
}
@keyframes hhSuccessPop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes hhSuccessRing {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
@keyframes hhSuccessTick {
  0% {
    transform: rotate(45deg) scale(0);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

.hh-time-tab:disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

/* Compact schedule screen overrides */
.hh-panel[data-step="2"] > h2 {
  display: none;
}
.hh-panel[data-step="2"] .hh-schedule-block {
  margin: 8px 0 10px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}
.hh-panel[data-step="2"] .hh-schedule-block h3 {
  margin-bottom: 9px;
}
.hh-panel[data-step="2"] .hh-date-grid {
  gap: 8px;
}
.hh-panel[data-step="2"] .hh-date-grid .hh-date {
  min-height: 48px;
  padding: 6px 4px;
  border-radius: 12px;
}
.hh-panel[data-step="2"] .hh-date-grid .hh-date b {
  font-size: 13px;
}
.hh-panel[data-step="2"] .hh-duration-row {
  gap: 8px;
  padding: 0 2px 4px;
}
.hh-panel[data-step="2"] .hh-duration {
  flex-basis: 98px;
  min-height: 78px;
  padding: 10px 9px;
  border-radius: 12px;
}
.hh-panel[data-step="2"] .hh-duration b {
  font-size: 16px;
  line-height: 1.1;
}
.hh-panel[data-step="2"] .hh-duration span {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.15;
}
.hh-panel[data-step="2"] .hh-duration del {
  font-size: 11px;
}
.hh-panel[data-step="2"] .hh-time-tabs {
  margin: 0 -10px 10px;
}
.hh-panel[data-step="2"] .hh-time-tab {
  min-height: 40px;
  font-size: 15px;
}
.hh-panel[data-step="2"] .hh-slot-grid {
  gap: 8px;
}
.hh-panel[data-step="2"] .hh-slot-grid .hh-slot {
  min-height: 52px;
}

.hh-services--display .hh-service:active {
  transform: scale(0.985);
}
.hh-services--display .hh-service:focus-visible {
  outline: 3px solid rgba(113, 55, 207, 0.24);
  outline-offset: 3px;
}
body[data-resident-service="grocery"] .hh-service-info-sheet,
.hh-service-info-sheet[hidden] {
  display: none !important;
}
.hh-service-info-sheet {
  position: fixed;
  inset: 0;
  z-index: 130000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}
.hh-service-info-sheet.is-open {
  pointer-events: auto;
}
body.hh-service-info-open {
  overflow: hidden;
}
.hh-service-info-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(17, 24, 39, 0.48);
  opacity: 0;
  transition: opacity 260ms ease;
}
.hh-service-info-sheet.is-open .hh-service-info-backdrop {
  opacity: 1;
}
.hh-service-info-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100vw);
  max-height: min(72vh, 620px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.24);
  transform: translate3d(0, 100%, 0);
  opacity: 0.98;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  will-change: transform;
  overflow: hidden;
}
.hh-service-info-sheet.is-open .hh-service-info-panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.hh-service-info-handle {
  width: 58px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
  justify-self: center;
  margin: 14px 0 8px;
  padding: 0;
  cursor: pointer;
}
.hh-service-info-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0 22px 18px;
}
.hh-service-info-body h2 {
  margin: 8px 0 22px;
  font-size: 30px;
  line-height: 1.08;
  color: #252525;
  letter-spacing: 0;
}
.hh-service-info-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 20px;
  scrollbar-width: none;
}
.hh-service-info-tabs::-webkit-scrollbar {
  display: none;
}
.hh-service-info-tab {
  flex: 0 0 auto;
  min-width: 150px;
  min-height: 62px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #333;
  text-align: left;
  cursor: pointer;
}
.hh-service-info-tab.is-selected {
  border-color: var(--hh-purple);
  box-shadow: 0 0 0 2px rgba(113, 55, 207, 0.12);
  color: var(--hh-purple);
}
.hh-service-info-tab span {
  width: 48px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f4ff;
}
.hh-service-info-tab .hh-service-img {
  width: 46px;
  height: 42px;
  object-fit: cover;
}
.hh-service-info-tab b {
  font-size: 15px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.hh-service-info-state {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
}
.hh-service-info-state.is-loading,
.hh-service-info-state.is-error {
  display: block;
}
.hh-service-info-state.is-loading {
  background: #f8fafc;
  color: #64748b;
}
.hh-service-info-state.is-error {
  background: #fff7ed;
  color: #c2410c;
}
.hh-si-section {
  margin-top: 10px;
}
.hh-si-section h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.2;
  color: #222;
}
.hh-si-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.hh-si-section li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #3f3f46;
}
.hh-si-section li p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.hh-si-check,
.hh-si-x {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
}
.hh-si-check {
  background: #2da76c;
}
.hh-si-x {
  background: #ea6b19;
}
.hh-si-note {
  margin-top: 24px;
  padding: 16px;
  min-height: 72px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafafa;
  color: #52525b;
}
.hh-si-note span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 22px;
}
.hh-si-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}
.hh-service-info-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #fff 28%);
  border-top: 1px solid #f1f5f9;
}
.hh-service-info-btn {
  min-height: 54px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}
.hh-service-info-btn.secondary {
  border: 2px solid var(--hh-purple);
  background: #fff;
  color: var(--hh-purple);
}
.hh-service-info-btn.primary {
  border: 0;
  background: var(--hh-purple);
  color: #fff;
  box-shadow: 0 12px 26px rgba(113, 55, 207, 0.22);
}
@media (max-width: 420px) {
  .hh-service-info-panel {
    max-height: 74vh;
    border-radius: 24px 24px 0 0;
  }
  .hh-service-info-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .hh-service-info-body h2 {
    font-size: 27px;
  }
  .hh-service-info-tab {
    min-width: 138px;
  }
  .hh-service-info-actions {
    padding-left: 18px;
    padding-right: 18px;
    gap: 10px;
  }
  .hh-service-info-btn {
    min-height: 50px;
    font-size: 15px;
  }
}
