/* Page-authored styles moved out of index.html. Keep this stylesheet last in the page CSS order. */



/* Preserve the refresh restoration screen before page content becomes visible. */
html.hc-restoring-customer-page,
html.hc-restoring-customer-page body {
  min-height: 100%;
  background: #fff !important;
}

html.hc-restoring-customer-page body > .tab-content {
  visibility: hidden !important;
}

html.hc-restoring-customer-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99998;
}

html.hc-restoring-customer-page::after {
  content: "Loading HOMECARE…";
  position: fixed;
  z-index: 99999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-top: 48px;
  color: #475569;
  font: 600 14px 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  background: radial-gradient(circle, transparent 55%, #1ab744 59%, #1ab744 70%, transparent 74%) center top/32px 32px no-repeat;
}

/* Brand and hero-slide artwork. */
.homecare-brand-text {
  color: #404040 !important;
}

#heroSliderTrack > .hero-slide-banner-1 { background-image: url('/dashboard/images/banner/ac_01.png'); }
#heroSliderTrack > .hero-slide-banner-2 { background-image: url('/dashboard/images/banner/elec_02.png'); }
#heroSliderTrack > .hero-slide-banner-3 { background-image: url('/dashboard/images/banner/carp_03.png'); }
#heroSliderTrack > .hero-slide-banner-4 { background-image: url('/dashboard/images/banner/plum_04.png'); }
#heroSliderTrack > .hero-slide-banner-5 { background-image: url('/dashboard/images/banner/paint_05.png'); }

/* Dialog stacking order. */
#homecareRewardCoinsModal { z-index: 160; }
#profileDetailsModal { z-index: 125; }

/* Footer decorative colors and separators. */
.homecare-footer-accent {
  background: linear-gradient(90deg, #1AB744 0%, #1AB744 48%, #1AB744 100%);
}

.homecare-footer-border {
  border-color: rgba(148, 211, 218, 0.16);
}

.homecare-footer-brand-rule {
  background-color: #1AB744;
}

.homecare-footer-brand-accent {
  color: #1AB744;
}

/* Chat close control. */
#homecareAiChatClose {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  box-shadow: none;
}

/* Mobile booking date arrows: centered square controls with a clear green affordance. */
@media (max-width: 767px) {
  #modalStep-3 .homecare-day-strip-shell {
    align-items: center !important;
    gap: 6px !important;
  }

  #modalStep-3 .homecare-day-strip-shell > .homecare-day-scroll-arrow {
    display: inline-flex !important;
    flex: 0 0 15px !important;
    width: 15px !important;
    min-width: 15px !important;
    height: 58px !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    color: #1ab744 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  #modalStep-3 .homecare-day-strip-shell > .homecare-day-scroll-arrow i {
    display: block !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  /* Keep every mobile navbar item on a single responsive row. */
  header > .max-w-7xl {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(4px, 1.5vw, 10px) !important;
    min-width: 0 !important;
    padding: 6px clamp(6px, 2vw, 12px) !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    align-items: center !important;
    gap: clamp(3px, 1vw, 8px) !important;
  }

  header #homecareMobileHeaderMenu {
    display: inline-flex !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #18212d !important;
    font-size: 21px !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand > .homecare-permanent-logo-link {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand .homecare-logo-frame {
    display: flex !important;
    flex: 0 0 clamp(34px, 8vw, 42px) !important;
    width: clamp(34px, 8vw, 42px) !important;
    height: clamp(34px, 8vw, 42px) !important;
    align-items: center !important;
    justify-content: center !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand > div:last-child {
    display: block !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
  }

  header .homecare-brand-text {
    display: none !important;
  }

  header > .max-w-7xl > div:last-child {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
    gap: clamp(2px, 1vw, 7px) !important;
    margin-left: auto !important;
  }

  header > #mobileHeaderActions {
    position: absolute !important;
    top: 100% !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    order: initial !important;
  }

  #mobileHeaderActions > .mobile-sidebar-style-spacer {
    display: none !important;
  }

  /* The city label stays connected to the current city; its value remains JS-driven. */
  header > .max-w-7xl > div:last-child > .mobile-header-city {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    max-width: clamp(62px, 23vw, 120px) !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #334155 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    font-size: clamp(.68rem, 2.7vw, .85rem) !important;
    white-space: nowrap !important;
  }

  header > .max-w-7xl > div:last-child > .mobile-header-city:hover,
  header > .max-w-7xl > div:last-child > .mobile-header-city:focus-visible,
  header > .max-w-7xl > div:last-child > .mobile-header-city:active {
    border: 0 !important;
    background: transparent !important;
    color: #334155 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  header .mobile-header-city #headerSelectedCity {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: inherit !important;
    text-overflow: ellipsis !important;
  }

  header .mobile-header-city .fa-location-dot {
    flex: 0 0 auto !important;
    color: #1AB744 !important;
  }

  /* Compact green cart: icon and live quantity only. */
  header > .max-w-7xl > div:last-child > .mobile-header-cart {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #1ab744 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
  }

  header .mobile-header-cart-label { display: none !important; }
  header .mobile-header-cart > .fa-basket-shopping { font-size: 19px !important; color: #1ab744 !important; }

  header .mobile-header-cart #headerCartCount {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    display: inline-flex !important;
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border: 1px solid #fff !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #1ab744 !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }
}

/* Final mobile header alignment: brand left, dynamic city/cart right, one-line ticker. */
@media (max-width: 767px) {
  #homecareTopUtilityBar {
    display: block !important;
    width: 100% !important;
    min-height: 34px !important;
    height: 36px !important;
    padding: 5px 10px !important;
    overflow: hidden !important;
    background: #0b0f18 !important;
    box-sizing: border-box !important;
  }

  #homecareTopUtilityBar > .max-w-7xl {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    min-height: 24px !important;
    height: 24px !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  #homecareTopUtilityBar > .max-w-7xl > .flex:first-child {
    display: flex !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 116px 0 0 !important;
    overflow: hidden !important;
  }

  #homecareTopUtilityBar > .max-w-7xl > .flex:first-child > span:first-child {
    display: inline-flex !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 22px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  #homecareTopUtilityBar .top-utility-promo {
    display: flex !important;
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 24px !important;
    align-items: center !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  #homecareTopUtilityBar .top-utility-promo-track {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: max-content !important;
    align-items: center !important;
    gap: 2rem !important;
    white-space: nowrap !important;
    animation: homecareTopPromoRun 22s linear infinite !important;
  }

  #homecareTopUtilityBar .top-utility-promo-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: .4rem !important;
    font-size: .72rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  #homecareTopUtilityBar .top-utility-actions {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    gap: 0 !important;
    z-index: 4 !important;
  }

  #homecareTopUtilityBar .top-utility-actions > span,
  #homecareTopUtilityBar .top-utility-actions > a[aria-label="Join as Service Partner"] {
    display: none !important;
  }

  #homecareTopUtilityBar .top-utility-actions > .homecare-top-phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #1ab744 !important;
    font-size: .66rem !important;
    white-space: nowrap !important;
  }

  header { position: sticky !important; top: 0 !important; z-index: 120 !important; }

  header > .max-w-7xl {
    width: 100% !important;
    min-height: 64px !important;
    height: 64px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    gap: 8px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand > .homecare-permanent-logo-link {
    flex: 0 0 auto !important;
    width: 44px !important;
    height: 44px !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand .homecare-logo-frame {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
  }

  header > .max-w-7xl > .homecare-mobile-brand > div:last-child { display: none !important; }
  header #homecareMobileHeaderMenu 
  {flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;}

  header > .max-w-7xl > div:last-child {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    gap: 7px !important;
    margin-left: auto !important;
    overflow: visible !important;
  }

  header > .max-w-7xl > div:last-child > .mobile-header-city {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: min(31vw, 142px) !important;
    min-height: 40px !important;
    gap: 5px !important;
    padding: 4px 3px !important;
    color: #334155 !important;
    font-size: clamp(.72rem, 3vw, .88rem) !important;
  }

  header > .max-w-7xl > div:last-child > .mobile-header-cart {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 44px !important;
    overflow: visible !important;
    background: transparent !important;
    background-image: none;
    border: #1ab744;
    background-image: none !important;
    color: #fff !important;
  }

  header > .max-w-7xl > div:last-child > .mobile-header-cart > .mobile-header-cart-label {
    display: none !important;
  }

  header > .max-w-7xl > div:last-child > .mobile-header-cart > #headerCartCount {
    top: -4px !important;
    right: -4px !important;
    z-index: 2 !important;
  }
}

@media (max-width: 380px) {
  header > .max-w-7xl { gap: 5px !important; }
  header > .max-w-7xl > .homecare-mobile-brand { gap: 4px !important; }
  header > .max-w-7xl > .homecare-mobile-brand > .homecare-permanent-logo-link,
  header > .max-w-7xl > .homecare-mobile-brand .homecare-logo-frame {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
  }
  header #homecareMobileHeaderMenu { flex-basis: 28px !important; width: 28px !important; }
  header > .max-w-7xl > div:last-child { gap: 4px !important; }
  header > .max-w-7xl > div:last-child > .mobile-header-city { max-width: 26vw !important; }
}

/* Mobile-only HOMECARE palette and shared type scale; desktop styling is unaffected. */
@media (max-width: 767px) {
  :root {
    --hc-vibrant-green: #1ab744;
    --hc-charcoal: #202b27;
    --hc-soft-surface: #f2f6f3;
    --hc-card-radius: 14px;
    --hc-button-radius: 11px;
    --hc-input-radius: 10px;
    --hc-card-shadow: 0 4px 14px rgba(32, 43, 39, .08);
  }

  body { background-color: var(--hc-soft-surface) !important; color: var(--hc-charcoal); }

  /* Keep a predictable text scale across customer pages on phones. */
  body .text-xs { font-size: .65rem !important; }
  body .text-sm { font-size: .875rem !important; }
  body .text-base { font-size: 1rem !important; }
  body .text-lg { font-size: 1.125rem !important; }
  body .text-xl { font-size: 1.25rem !important; }
  body .text-2xl { font-size: 1.5rem !important; }
  body .text-3xl { font-size: 1.75rem !important; }
  body :is(input, select, textarea) { border-radius: var(--hc-input-radius); }
  body :is(.hc-primary, .hc-secondary, .header-action-tab, .homecare-sidebar-link) {
    border-radius: var(--hc-button-radius) !important;
  }

  /* Shared mobile navigation uses charcoal with the brand green active state. */
  #homecareTopUtilityBar,
  #homecareMobileBottomNav { background-color: var(--hc-charcoal) !important; }
  #homecareMobileBottomNav .homecare-bottom-nav-item { color: #fff !important; }
  #homecareMobileBottomNav .homecare-bottom-nav-item i { color: #fff !important; }
  #homecareMobileBottomNav .homecare-bottom-nav-item.is-active,
  #homecareMobileBottomNav .homecare-bottom-nav-item.is-active i { color: var(--hc-vibrant-green) !important; }
  .homecare-sidebar-head { background-color: var(--hc-charcoal) !important; }
  .homecare-sidebar-mark,
  .homecare-sidebar-link:active,
  .homecare-sidebar-link:hover { background-color: var(--hc-vibrant-green) !important; }

  /* Main cards stay bright white and use the reference's restrained elevation. */
  body :is(.quick-service-card, #quickServicesPrimaryGrid > .group, #additionalQuickServices > .group,
    #repairQuickServicesTrack > .group, .service-card, .booking-card) {
    background-color: #fff !important;
    border-radius: var(--hc-card-radius) !important;
    box-shadow: var(--hc-card-shadow) !important;
  }

  /* Booking catalogue: keep the service image above its own ADD/counter control. */
  #servicesCatalogContainer .hc-subservice-card { padding: 1.25rem 0 1.4rem !important; }
  #servicesCatalogContainer .hc-subservice-main { align-items: flex-start !important; gap: .75rem !important; }
  #servicesCatalogContainer .hc-subservice-action {
    width: min(100px, 29vw) !important;
    flex: 0 0 min(100px, 29vw) !important;
    gap: .5rem !important;
    padding-top: .25rem !important;
  }
  #servicesCatalogContainer .hc-subservice-image {
    width: min(76px, 22vw) !important;
    height: min(76px, 22vw) !important;
    margin: 0 !important;
  }
  #servicesCatalogContainer .hc-add-button,
  #servicesCatalogContainer .hc-qty-counter {
    position: static !important;
    width: 76px !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
    padding: 4px 6px;
  }
  #servicesCatalogContainer .hc-add-availability-note { max-width: 100% !important; color: var(--hc-charcoal) !important; }

  /* Keep the checkout action inside My Cart Summary; never float it over the catalogue. */
  #btnProceedCheckout,
  #btnProceedCheckout.homecare-v58-mobile-fixed,
  #btnProceedCheckout.homecare-v61-mobile-fixed {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    transform: none !important;
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem 0 0 !important;
    box-sizing: border-box !important;
  }
  #tab-repair { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Make every selected bottom-navigation item share the same green icon/text state. */
@media (max-width: 767px) {
  #homecareMobileBottomNav .homecare-bottom-nav-item.is-active,
  #homecareMobileBottomNav .homecare-bottom-nav-item.is-active i { color: #1ab744 !important; }
  #homecareMobileBottomNav .homecare-bottom-nav-main,
  #homecareMobileBottomNav .homecare-bottom-nav-main i { background-color: #1ab744 !important; border-color: #1ab744 !important; color: #fff !important; }
}

/* Final overrides shared by desktop, tablet and phone. */
:root {
  --hc-vibrant-green: #1ab744;
  --hc-charcoal: #202b27;
  --hc-soft-surface: #f2f6f3;
  --hc-card-radius: 6px;
  --hc-button-radius: 6px;
  --hc-card-shadow: 0 4px 14px rgba(32, 43, 39, .08);
}
#homecareTopUtilityBar { background-color: var(--hc-charcoal) !important; }
body { background-color: var(--hc-soft-surface) !important; color: var(--hc-charcoal) !important; }
body .bg-brand-50, body .bg-brand-100 { background-color: var(--hc-soft-surface) !important; }
body .bg-brand-500, body .bg-brand-600, body .bg-brand-700 { background-color: var(--hc-vibrant-green) !important; }
body :is(.text-brand-200, .text-brand-300, .text-brand-400, .text-brand-500,
  .text-brand-600, .text-brand-700, .text-brand-800) { color: var(--hc-vibrant-green) !important; }
body :is(.border-brand-300, .border-brand-400, .border-brand-500, .border-brand-600) { border-color: var(--hc-vibrant-green) !important; }
body .hover\:bg-brand-700:hover { background-color: var(--hc-charcoal) !important; }
body .hover\:border-brand-500:hover { border-color: var(--hc-vibrant-green) !important; }
body :is(#quickServicesPrimaryGrid > .group, #additionalQuickServices > .group,
  #repairQuickServicesTrack > .group, #servicesCatalogContainer, .service-card, .booking-card) {
  background-color: #fff !important;
  box-shadow: var(--hc-card-shadow) !important;
}

#tab-repair .homecare-mobile-quick-title { display: none !important; }
#tab-repair .repair-db-service-track [data-main-service-id].is-selected {
  background: var(--hc-vibrant-green) !important;
  border-color: var(--hc-vibrant-green) !important;
}
#tab-repair .repair-db-service-track [data-main-service-id].is-selected h3 { color: #fff !important; }
@media (max-width: 767px) {
  #servicesCatalogContainer .hc-subservice-image {
    width: min(66px, 22vw) !important;
    height: min(66px, 22vw) !important;
    margin: 0 !important;
  }
  #homecareMobileBottomNav .homecare-bottom-nav-item { color: #fff !important; }
  #homecareMobileBottomNav .homecare-bottom-nav-item i { color: inherit !important; }
  #homecareMobileBottomNav .homecare-bottom-nav-item.is-active,
  #homecareMobileBottomNav .homecare-bottom-nav-item.is-active i { color: var(--hc-vibrant-green) !important; }
  body.homecare-cart-has-items #btnProceedCheckout,
  #btnProceedCheckout.hc-draggable-checkout-cta {
    position: fixed !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 260 !important;
    width: min(560px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 52px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    touch-action: none;
    cursor: grab;
    box-shadow: 0 6px 18px rgba(32, 43, 39, .2) !important;
  }
  #btnProceedCheckout.hc-draggable-checkout-cta:active { cursor: grabbing; }
  #tab-repair { padding-bottom: calc(8rem + env(safe-area-inset-bottom, 0px)) !important; }

  /* On phones, the login experience is a screen-filling popup instead of a side drawer. */
  #hcHeaderLoginDrawer,
  #hcHeaderLoginDrawer.hc-open {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    backdrop-filter: none !important;
  }
  #hcHeaderLoginDrawer.hc-open { display: flex !important; }
  #hcHeaderLoginDrawer .hc-login-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(20px, env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    animation: none !important;
  }
}
