/* =================== 295-pdp-service-upsell.css =================== */
/* Inline buy-box "Добавить услугу" upsell — checkbox rows whose values are
   carried into the /cart/add form via hx-include="#pdp-upsell".
   Extends 125-hc-pdp-m1.css / 272-hc-pdp-buybox-bar.css. WDL tokens, no !important. */

.hc-pdp-upsell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(141, 109, 71, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf9, #f8f1e6);
}
.hc-pdp-upsell__eyebrow {
  margin-bottom: 2px;
  font: 650 11px/1 var(--hc-sans, "Outfit", sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hc-accent, #8b7355);
}

.hc-pdp-upsell__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(141, 109, 71, 0.16);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.hc-pdp-upsell__row:hover {
  border-color: rgba(199, 155, 96, 0.5);
  transform: translateY(-1px);
}
.hc-pdp-upsell__row:has(.hc-pdp-upsell__cb:checked) {
  border-color: var(--hc-accent, #8b7355);
  background: linear-gradient(180deg, #fff, rgba(246, 239, 226, 0.7));
}

/* real checkbox: visually hidden, kept accessible + focusable */
.hc-pdp-upsell__cb {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hc-pdp-upsell__box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1.6px solid rgba(141, 109, 71, 0.4);
  border-radius: 6px;
  background: #fff;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.hc-pdp-upsell__box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.hc-pdp-upsell__cb:checked + .hc-pdp-upsell__box {
  background: var(--hc-accent, #8b7355);
  border-color: var(--hc-accent, #8b7355);
}
.hc-pdp-upsell__cb:checked + .hc-pdp-upsell__box::after { opacity: 1; }
.hc-pdp-upsell__cb:focus-visible + .hc-pdp-upsell__box {
  outline: 2px solid rgba(199, 155, 96, 0.7);
  outline-offset: 2px;
}

.hc-pdp-upsell__name {
  flex: 1 1 auto;
  min-width: 0;
  font: 600 14px/1.25 var(--hc-sans, "Outfit", sans-serif);
  color: var(--hc-ink, #1a1714);
}
.hc-pdp-upsell__price {
  flex: 0 0 auto;
  font: 700 14px/1 var(--hc-sans, "Outfit", sans-serif);
  color: var(--hc-accent, #8b7355);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .hc-pdp-upsell { padding: 12px; }
  .hc-pdp-upsell__name { font-size: 13.5px; }
}
