/*
 * Break Hello Elementor’s 1140px .site-main on cart/checkout so the
 * favorites flow matches designsystem max content width (1344px inside
 * 48px gutters → 1440px outer).
 */
body.woocommerce-cart:not([class*="elementor-page-"]) .site-main:has(.hcp-dc),
body.woocommerce-checkout:not([class*="elementor-page-"]) .site-main:has(.hcp-dc),
body.page:not([class*="elementor-page-"]) .site-main:has(.hcp-dc) {
  max-width: 1440px;
  width: min(1440px, 100%);
  margin-inline: auto;
}

.hcp-dc {
  --hcp-red: #a91633;
  --hcp-red-dark: #7e1026;
  --hcp-ink: #1d1d1b;
  --hcp-muted: #8e8e8d;
  --hcp-line: #b8b8b7;
  --hcp-panel: #f5f5f5;
  --hcp-page: #fafafa;
  --hcp-green: #49c431;
  --hcp-green-soft: #70d65c;
  --hcp-green-bg: #d3f4cd;
  --hcp-select-bg: #e6e6e5;
  --hcp-nav: #2f2f2d;
  color: var(--hcp-ink);
  font-family: "Montserrat", system-ui, sans-serif;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 48px 128px;
  background: transparent;
}

.hcp-dc p,
.hcp-dc .hcp-dc__panel p,
.hcp-dc .hcp-dc__privacy,
.hcp-dc-product p,
.hcp-dc__search input,
.hcp-dc__autocomplete {
  font-family: "Quicksand", "Montserrat", system-ui, sans-serif;
  font-weight: 500;
}

.hcp-dc *,
.hcp-dc *::before,
.hcp-dc *::after {
  box-sizing: border-box;
}

.hcp-dc[hidden],
.hcp-dc [hidden] {
  display: none !important;
}

.hcp-dc button.hcp-dc__back,
.hcp-dc__back {
  appearance: none;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  color: #1d1d1b !important;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 19.6px;
  margin: 0 0 48px;
  padding: 0 !important;
}

.hcp-dc button.hcp-dc__back:hover,
.hcp-dc button.hcp-dc__back:focus,
.hcp-dc button.hcp-dc__back:focus-visible,
.hcp-dc__back:hover,
.hcp-dc__back:focus,
.hcp-dc__back:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #1d1d1b !important;
  opacity: 0.72;
  outline: none;
}

.hcp-dc button.hcp-dc__back:hover .hcp-dc__back-icon,
.hcp-dc button.hcp-dc__back:focus .hcp-dc__back-icon,
.hcp-dc__back:hover .hcp-dc__back-icon,
.hcp-dc__back:focus .hcp-dc__back-icon {
  filter: none;
}

.hcp-dc__back-icon {
  display: block !important;
  flex-shrink: 0;
  height: 20px !important;
  max-width: none !important;
  transform: rotate(180deg);
  width: 20px !important;
}

.hcp-dc__back span {
  display: inline-block;
}

/* Beat Elementor kit h1/h2 (e.g. 64px / 46px) with higher specificity */
.hcp-dc h1.hcp-dc__title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 50.6px;
  letter-spacing: 0;
  margin: 0 0 64px;
  color: #000000;
}

.hcp-dc h2.hcp-dc__section-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  margin: 0 0 32px;
  color: #000000;
}

.hcp-dc__layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.98fr);
}

.hcp-dc__main,
.hcp-dc__panel {
  min-width: 0;
}

.hcp-dc__panel {
  align-items: center;
  background: var(--hcp-panel);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 360px;
  padding: 64px 54px;
  text-align: left;
}

.hcp-dc__panel h2,
.hcp-dc__form h2 {
  align-self: stretch;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
  margin: 42px 0 16px;
}

.hcp-dc__panel p {
  align-self: stretch;
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 44px;
}

.hcp-dc__button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 0 24px;
}

.hcp-dc__button--primary {
  background: var(--hcp-red);
  color: #ffffff;
}

.hcp-dc__button--primary:hover {
  background: var(--hcp-red-dark);
}

.hcp-dc__button:disabled {
  background: #c7c7c7;
  color: #9d9d9d;
  cursor: not-allowed;
}

.hcp-dc__product-list {
  display: grid;
  gap: 14px;
}

.hcp-dc-product {
  align-items: start;
  background: var(--hcp-panel);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 0;
  padding: 16px;
  position: relative;
}

.hcp-dc-product img {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 2px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 132px;
}

.hcp-dc-product h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.hcp-dc-product p,
.hcp-dc-product small,
.hcp-dc-product a,
.hcp-dc-product label span {
  color: var(--hcp-muted);
  font-size: 15px;
  line-height: 1.35;
}

.hcp-dc-product p,
.hcp-dc-product small {
  display: block;
  margin: 0;
}

.hcp-dc-product__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  max-width: 52rem;
}

.hcp-dc-product a {
  color: #555555;
  display: inline-block;
  font-weight: 700;
  margin: 0 0 14px;
  text-decoration: none;
}

.hcp-dc-product__body {
  min-width: 0;
}

.hcp-dc-product__remove,
.hcp-dc button.hcp-dc-product__remove {
  appearance: none;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #8e8e8d !important;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  line-height: 0;
  min-height: 0;
  min-width: 0;
  padding: 0 !important;
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
}

.hcp-dc-product__remove:hover,
.hcp-dc-product__remove:focus,
.hcp-dc button.hcp-dc-product__remove:hover,
.hcp-dc button.hcp-dc-product__remove:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #1d1d1b !important;
  outline: none;
  opacity: 0.85;
}

.hcp-dc-product__remove-icon {
  display: block !important;
  height: 20px !important;
  max-width: none !important;
  width: 20px !important;
}

.hcp-dc-product label {
  display: block;
}

.hcp-dc-product select,
.hcp-dc-product textarea,
.hcp-dc__form input[type="text"],
.hcp-dc__form input[type="email"],
.hcp-dc__form input[type="tel"],
.hcp-dc__search input,
.hcp-dc__autocomplete {
  appearance: none;
  background: #ffffff;
  border: 0;
  border-bottom: 2px solid #999999;
  border-radius: 0;
  box-shadow: none !important;
  color: #222222;
  font: inherit;
  min-height: 38px;
  outline: none !important;
  padding: 6px 8px;
  width: 100%;
}

.hcp-dc-product select:focus,
.hcp-dc-product select:focus-visible,
.hcp-dc-product textarea:focus,
.hcp-dc-product textarea:focus-visible,
.hcp-dc__form input:focus,
.hcp-dc__form input:focus-visible,
.hcp-dc__search input:focus,
.hcp-dc__search input:focus-visible {
  border-bottom-color: #1d1d1b;
  box-shadow: none !important;
  outline: none !important;
}

.hcp-dc-product select {
  background-color: var(--hcp-select-bg);
  background-image: url("../images/keyboard-arrow-down.svg");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  margin-top: 4px;
  padding-right: 36px;
}

.hcp-dc-product.is-available select,
.hcp-dc-product--review .hcp-dc-product__dealer {
  background-color: var(--hcp-green-bg);
  border-bottom-color: var(--hcp-green);
  color: var(--hcp-ink);
}

.hcp-dc-product.is-unavailable {
  border: 1px solid #e8b4bc;
  background: #fff8f9;
}

.hcp-dc-product.is-unavailable select {
  opacity: 0.55;
  pointer-events: none;
}

.hcp-dc-product__unavailable {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fde8ec;
  color: #a91633;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.hcp-dc-product__unavailable[hidden] {
  display: none !important;
}

.hcp-dc-product textarea {
  margin-top: 18px;
  min-height: 66px;
  resize: vertical;
}

.hcp-dc-product--dealer {
  align-items: start;
  grid-template-columns: 132px minmax(0, 1fr);
}

.hcp-dc-product--dealer h3,
.hcp-dc-product--review h3 {
  padding-right: 34px;
}

.hcp-dc-product__dealer {
  border-bottom: 2px solid var(--hcp-green);
  margin-top: 10px !important;
  padding: 8px 10px;
}

.hcp-dc-product__message {
  margin-top: 12px !important;
}

.hcp-dc__locator {
  max-width: 672px;
  margin-bottom: 24px;
}

.hcp-dc__search {
  align-items: center;
  border-bottom: 2px solid #41413f;
  display: grid;
  gap: 8px;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  min-height: 38px;
  padding: 0 8px;
  position: relative;
}

.hcp-dc__search:focus-within {
  border-bottom-color: #1d1d1b;
}

.hcp-dc__search.has-google-autocomplete {
  grid-template-columns: 20px minmax(0, 1fr) 20px;
}

.hcp-dc__search input {
  border-bottom: 0;
  box-shadow: none !important;
  outline: none !important;
  padding-left: 0;
  padding-right: 0;
}

.hcp-dc__search input:focus,
.hcp-dc__search input:focus-visible,
.hcp-dc__search input:focus-within {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.hcp-dc__autocomplete {
  border: 0 !important;
  border-bottom: 0;
  box-shadow: none !important;
  color-scheme: light;
  display: block;
  font-family: inherit;
  font-size: 16px;
  min-width: 0;
  outline: none !important;
  overflow: visible;
  padding: 0;
  width: 100%;
}

.hcp-dc__autocomplete:focus,
.hcp-dc__autocomplete:focus-visible,
.hcp-dc__autocomplete:focus-within {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.hcp-dc__autocomplete::part(input) {
  background: transparent;
  border: 0 !important;
  box-shadow: none !important;
  color: #222222;
  font-family: inherit;
  font-size: 16px;
  min-height: 38px;
  outline: none !important;
  padding: 6px 0;
}

.hcp-dc__autocomplete::part(input):focus,
.hcp-dc__autocomplete::part(input):focus-visible {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.hcp-dc__autocomplete::part(prediction-list) {
  background: #ffffff;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  color: #222222;
}

.hcp-dc__autocomplete::part(prediction-item) {
  background: #ffffff;
  color: #222222;
  font-family: inherit;
}

.hcp-dc__autocomplete::part(prediction-item-selected) {
  background: #f3f3f3;
}

.hcp-dc__search-icon {
  display: inline-flex;
  flex-shrink: 0;
  height: 20px;
  line-height: 0;
  width: 20px;
  z-index: 1;
}

.hcp-dc__search-icon svg {
  display: block;
  height: 20px;
  width: 20px;
}

.hcp-dc button.hcp-dc__locate,
.hcp-dc__locate {
  appearance: none;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #c56175 !important;
  cursor: pointer;
  display: inline-flex !important;
  height: 20px;
  justify-content: center;
  line-height: 0;
  min-height: 20px !important;
  min-width: 20px !important;
  padding: 0 !important;
  position: relative;
  width: 20px;
  z-index: 3;
}

.hcp-dc button.hcp-dc__locate:hover,
.hcp-dc button.hcp-dc__locate:focus,
.hcp-dc button.hcp-dc__locate:focus-visible,
.hcp-dc__locate:hover,
.hcp-dc__locate:focus,
.hcp-dc__locate:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  opacity: 0.85;
}

.hcp-dc button.hcp-dc__locate .hcp-dc__locate-icon,
.hcp-dc__locate-icon {
  display: block !important;
  flex-shrink: 0;
  height: 20px !important;
  max-height: none !important;
  max-width: none !important;
  pointer-events: none;
  width: 20px !important;
}

.hcp-dc__status {
  background: #ffffff;
  border-left: 4px solid var(--hcp-red);
  border-radius: 4px;
  color: #333333;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 14px;
  padding: 14px 16px;
}

.hcp-dc__status.is-error {
  border-left-color: #c73737;
  color: #9a1c1c;
}

.hcp-dc__stepper {
  align-self: stretch;
  counter-reset: step;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  position: relative;
}

.hcp-dc__stepper::before {
  background: #303030;
  content: "";
  height: 2px;
  left: calc(100% / 6);
  position: absolute;
  right: calc(100% / 6);
  top: 34px;
}

.hcp-dc__stepper li {
  color: #222222;
  font-size: 14px;
  line-height: 1.25;
  min-width: 0;
  padding-top: 50px;
  position: relative;
  text-align: center;
}

.hcp-dc__stepper li::before {
  background: #ffffff;
  border: 2px solid #303030;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 50%;
  position: absolute;
  top: 27px;
  transform: translateX(-50%);
  width: 14px;
  z-index: 1;
}

.hcp-dc__stepper li.is-active::before {
  background: #303030;
}

.hcp-dc__form {
  align-self: stretch;
  display: grid;
  gap: 14px;
}

.hcp-dc__hp {
  height: 1px !important;
  left: -10000px !important;
  opacity: 0 !important;
  position: absolute !important;
  top: auto !important;
  width: 1px !important;
}

.hcp-dc__form h2 {
  margin-top: 20px;
  font-size: 26px;
}

.hcp-dc__form h3 {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  margin: 26px 0 0;
}

.hcp-dc__form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.hcp-dc__radio-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 10px !important;
}

.hcp-dc__radio-group legend {
  flex: 0 0 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 6px;
  padding: 0;
  color: #1d1d1b;
}

.hcp-dc__radio-group label,
.hcp-dc__checkbox-group label {
  align-items: center;
  color: #1d1d1b;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  line-height: 1.4;
  min-height: 28px;
  position: relative;
}

/* Match dealer-single .hcp-dealer-page-form selection controls (Figma circle/square) */
.hcp-dc__radio-group input[type="radio"],
.hcp-dc__checkbox-group input[type="checkbox"] {
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.hcp-dc__radio-group input[type="radio"] + span,
.hcp-dc__checkbox-group input[type="checkbox"] + span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.hcp-dc__radio-group input[type="radio"] + span::before,
.hcp-dc__checkbox-group input[type="checkbox"] + span::before {
  background: transparent;
  border: 2px solid #2f2f2d;
  box-sizing: border-box;
  content: "";
  flex: 0 0 auto;
}

.hcp-dc__radio-group input[type="radio"] + span::before {
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

.hcp-dc__checkbox-group input[type="checkbox"] + span::before {
  border-radius: 0;
  height: 14px;
  width: 14px;
}

.hcp-dc__radio-group input[type="radio"]:checked + span::before {
  background: radial-gradient(circle at center, #a91633 0 4px, transparent 4.5px);
}

.hcp-dc__checkbox-group input[type="checkbox"]:checked + span::before {
  background: linear-gradient(#a91633, #a91633) center / 6px 6px no-repeat;
}

.hcp-dc__radio-group input[type="radio"]:hover:not(:checked) + span::before {
  background: radial-gradient(circle at center, #c56175 0 4px, transparent 4.5px);
}

.hcp-dc__checkbox-group input[type="checkbox"]:hover:not(:checked) + span::before {
  background: linear-gradient(#c56175, #c56175) center / 6px 6px no-repeat;
}

.hcp-dc__radio-group input[type="radio"]:focus-visible + span::before,
.hcp-dc__checkbox-group input[type="checkbox"]:focus-visible + span::before {
  outline: 2px solid #a91633;
  outline-offset: 2px;
}

.hcp-dc__phone {
  display: grid;
  gap: 24px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.hcp-dc__privacy {
  font-size: 15px !important;
  margin: 0 !important;
}

.hcp-dc__privacy a {
  color: var(--hcp-red);
}

.hcp-dc__checkbox-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 20px 0 12px !important;
}

.hcp-dc__empty,
.hcp-dc__done {
  background: var(--hcp-panel);
  border-radius: 8px;
  padding: 40px;
}

.hcp-dc__done {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}

.hcp-dc__done h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
}

@media (max-width: 980px) {
  .hcp-dc {
    padding: 40px 24px 72px;
  }

  .hcp-dc h1.hcp-dc__title {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 42px;
  }

  .hcp-dc__layout {
    grid-template-columns: 1fr;
  }

  .hcp-dc__panel {
    min-height: 0;
    padding: 42px 28px;
  }
}

@media (max-width: 640px) {
  .hcp-dc {
    padding: 32px 16px 56px;
  }

  .hcp-dc h1.hcp-dc__title {
    font-size: 34px;
  }

  .hcp-dc-product,
  .hcp-dc-product--dealer {
    gap: 14px;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
  }

  .hcp-dc-product img {
    width: 96px;
  }

  .hcp-dc-product__summary {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .hcp-dc-product h3 {
    font-size: 20px;
  }

  .hcp-dc__panel h2,
  .hcp-dc__form h2 {
    font-size: 26px;
  }

  .hcp-dc__radio-group,
  .hcp-dc__checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hcp-dc__phone {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .hcp-dc__stepper li {
    font-size: 12px;
  }
}
