/* Public UI corrections. Loaded last; existing colours and request handlers are retained. */
:root { --vp-ui-accent: #087f88; --vp-ui-ink: #17313c; --vp-ui-muted: #526b76; }

/* The new request label must fit the same controls on every public template. */
:is(.main-call-btn,.price-btn,.contact-btn,.nav-phone,.mobile-header-phone,.mobile-action-call,.desktop-action,.pvh-compare-cta,.product-action,.gallery-call,.cta-link)[data-vp-form] {
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
:is(.main-call-btn,.price-btn,.contact-btn,.nav-phone,.pvh-compare-cta,.product-action,.gallery-call,.cta-link)[data-vp-form] { display: inline-flex; }
a[data-vp-form] > .fa { flex: 0 0 auto; margin: 0 !important; }
a[data-vp-form] > span:not(.ac-motion-layer) { min-width: 0; }
:is(.main-call-btn,.price-btn,.contact-btn,.pvh-compare-cta)[data-vp-form] { min-height: 54px; font-size: clamp(16px, 1.65vw, 21px); padding: 15px 20px; }
.ac-section-cta .ac-section-cta__button[data-vp-form] { width: 100%; min-height: 56px; font-size: 17px; }
.product-action[data-vp-form] { width: 100%; min-height: 48px; padding: 12px 15px; font-size: 14px; }
.navbar.top-head .nav-phone[data-vp-form] { min-height: 44px; gap: 7px; line-height: 1.25; }
.nav-phone[data-vp-form]::before,
.mobile-header-phone[data-vp-form]::before { content: none !important; display: none !important; }
a[data-vp-form]:focus-visible,
.vp-partner-cta:focus-visible { outline: 3px solid var(--vp-ui-accent); outline-offset: 4px; }
.step-title > a[data-vp-form] { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 16px; line-height: 1.35; }
.step-title > small { display: block; margin-top: 9px; font-size: 14px; line-height: 1.55; font-weight: 500; }
.hero-actions, .product-foot, .contact-phones, .ac-care__actions, .vp-hero-actions { min-width: 0; }
.vp-partners-strip > div, .vp-partners-strip .vp-partner-cta { min-width: 0; }
.catalog-hero .hero-inner > * { min-width: 0; }
.catalog-hero h1 { overflow-wrap: anywhere; }
.hero-copy h1 > span { white-space: nowrap; }

/* Match the floating-control DOM to the existing dismiss/collapse behaviour. */
@media (min-width: 992px) {
  .desktop-action-bar { max-width: calc(100vw - 36px); }
  .desktop-action-bar .desktop-action[data-vp-form] {
    display: inline-flex;
    justify-content: flex-start;
    width: 248px;
    min-width: 64px;
    min-height: 72px;
    gap: 12px;
    padding: 11px;
    border-radius: 18px;
    overflow: hidden;
  }
  .desktop-action-bar .desktop-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 13px;
    font-size: 23px;
  }
  .desktop-action-bar .desktop-action-text,
  .desktop-action-bar .desktop-action:hover .desktop-action-text,
  .desktop-action-bar .desktop-action:focus .desktop-action-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px 0 0;
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
  .ac-floating-item.is-collapsed .desktop-action[data-vp-form] {
    width: 64px;
    min-width: 64px;
    min-height: 64px;
    justify-content: center;
    gap: 0;
    padding: 7px;
  }
  .ac-floating-item.is-collapsed .desktop-action-text { display: none !important; }
}

/* Radio calculator: these selectors describe the actual current HTML. */
#pvh-calculator { min-width: 0; gap: 24px; }
#pvh-calculator .calc-card,
#pvh-calculator .calc-result { min-width: 0; }
#pvh-calculator .calc-step + .calc-step { margin-top: 28px; padding-top: 26px; border-top: 1px solid #dce8ea; }
#pvh-calculator .calc-step-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
#pvh-calculator .calc-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5f5f3;
  color: var(--vp-ui-accent);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}
#pvh-calculator .calc-step-heading > div { min-width: 0; }
#pvh-calculator .calc-step-heading h3 { margin: 2px 0 5px; font-size: 20px; line-height: 1.25; color: var(--vp-ui-ink); font-weight: 750; text-transform: none; letter-spacing: 0; }
#pvh-calculator .calc-step-heading p { margin: 0; color: var(--vp-ui-muted); font-size: 14px; line-height: 1.45; font-weight: 400; }
#pvh-calculator .calc-choice-grid { display: grid; gap: 12px; }
#pvh-calculator .calc-object-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#pvh-calculator .calc-package-grid { grid-template-columns: minmax(0, 1fr); }
#pvh-calculator .calc-choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 15px 13px;
  border: 1px solid #bfd2d8;
  border-radius: 13px;
  background: #fff;
  color: var(--vp-ui-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease;
}
#pvh-calculator .calc-choice:hover { border-color: var(--vp-ui-accent); background: #f5fbfa; }
#pvh-calculator .calc-choice input[type="radio"] {
  position: static;
  display: block;
  appearance: auto;
  -webkit-appearance: radio;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  accent-color: var(--vp-ui-accent);
  cursor: pointer;
}
#pvh-calculator .calc-choice > span { display: block; min-width: 0; }
#pvh-calculator .calc-choice > span > .fa { display: block; font-size: 20px; line-height: 1; color: var(--vp-ui-accent); margin: 0 0 11px; }
#pvh-calculator .calc-choice strong { display: block; margin: 0; padding: 0; font-size: 15px; font-weight: 750; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
#pvh-calculator .calc-choice small { display: block; margin: 6px 0 0; color: var(--vp-ui-muted); font-size: 12px; line-height: 1.45; font-weight: 400; }
#pvh-calculator .calc-choice:has(input:checked) { border-color: var(--vp-ui-accent); background: #eaf7f5; box-shadow: 0 0 0 1px var(--vp-ui-accent); }
#pvh-calculator .calc-choice:focus-within { outline: 3px solid #62bec2; outline-offset: 3px; }
#pvh-calculator .calc-choice input:focus-visible { outline: 2px solid var(--vp-ui-accent); outline-offset: 3px; }
#pvh-calculator .calc-result { align-self: start; }
#pvh-calculator .calc-result-label { gap: 6px; max-width: 100%; text-align: left; font-size: 11px; line-height: 1.4; }
#pvh-calculator .calc-result-range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; margin: 16px 0 12px; font-size: clamp(30px, 3.3vw, 42px); line-height: 1.15; letter-spacing: -.035em; }
#pvh-calculator .calc-result-range .calc-range-prefix { color: var(--vp-ui-muted); font-size: 20px; font-weight: 650; letter-spacing: 0; }
#pvh-calculator .calc-result-range .calc-range-amount { font-size: inherit; line-height: inherit; white-space: nowrap; }
#pvh-calculator .calc-result-selection { display: grid; gap: 7px; margin: 18px 0; padding: 17px 0; border-top: 1px solid #dce8ea; border-bottom: 1px solid #dce8ea; }
#pvh-calculator .calc-result-selection > span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--vp-ui-muted); }
#pvh-calculator .calc-result-selection > strong { display: block; font-size: 18px; line-height: 1.35; color: var(--vp-ui-ink); }
#pvh-calculator .calc-result-selection > p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--vp-ui-muted); }
#pvh-calculator .calc-disclaimer { font-size: 13px; line-height: 1.55; font-weight: 450; }
#pvh-calculator .calc-disclaimer strong { font-weight: 750; }
#pvh-calculator .main-call-btn[data-vp-form] { width: 100%; margin: 0; min-height: 54px; font-size: 18px; line-height: 1.3; padding: 15px; }

/* Prevent flex children and compact toolbars from clipping at narrow widths. */
.gallery-page .topbar-inner, .gallery-page .top-actions, .gallery-footer-actions { min-width: 0; }
.gallery-page .top-actions { flex-wrap: wrap; gap: 10px; }
.gallery-page :is(.gallery-call,.cta-link)[data-vp-form] { min-height: 46px; padding: 12px 16px; line-height: 1.3; }
.gallery-page .brand { min-width: 0; }
.gallery-page .brand img { max-width: 100%; }
.gallery-page #mobile-call-button { display: none; }
.vp-partners-page .vp-button { min-width: 0; white-space: normal; text-align: center; line-height: 1.35; }
@media (max-width: 1023px) {
  #pvh-calculator.calc-layout { grid-template-columns: minmax(0, 1fr); }
  #pvh-calculator .calc-result { width: 100%; }
}
@media (max-width: 768px) {
  .gallery-page #mobile-call-button.mobile-conversion-bar { position: fixed; z-index: 1000; left: 10px; right: 10px; bottom: 10px; display: grid; width: auto; margin: 0; padding: 7px 7px max(7px, env(safe-area-inset-bottom)); background: #fff; border: 1px solid #dce8da; border-radius: 14px; box-shadow: 0 5px 22px rgba(20,45,35,.16); }
  .gallery-page .topbar-inner { gap: 12px; }
  .gallery-page .brand { flex: 0 1 140px; min-width: 100px; }
  .gallery-page .top-actions { display: flex; flex: 0 1 158px; width: auto; min-width: 0; }
  .gallery-page .top-actions .cta-link { width: 100%; padding: 10px 12px; font-size: 13px; }
  .navbar.top-head .mobile-header-phone[data-vp-form] { display: inline-flex !important; gap: 7px; flex: 0 1 144px !important; min-width: 110px !important; height: auto !important; min-height: 44px !important; max-height: none !important; padding: 8px 9px !important; font-size: 12px !important; line-height: 1.25 !important; white-space: normal !important; }
  .navbar.top-head .mobile-header-phone[data-vp-form] > span { white-space: normal; }
  .navbar.top-head .mobile-header-phone[data-vp-form] > .fa { flex-basis: auto; }
  #mobile-call-button a[data-vp-form] { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; font-size: 16px; line-height: 1.3; white-space: normal; padding: 10px 12px; }
  .gallery-page #mobile-call-button a[data-vp-form] { font-size: 14px; }
  .ac-section-cta .ac-section-cta__button[data-vp-form] { min-height: 54px; font-size: 16px; }
  .vp-partners-strip { gap: 18px; }
  .vp-partners-strip .vp-partner-cta { width: 100%; }
}
@media (max-width: 600px) {
  #pvh-calculator .calc-object-grid { grid-template-columns: minmax(0, 1fr); }
  #pvh-calculator .calc-card, #pvh-calculator .calc-result { padding: 22px 17px; }
  #pvh-calculator .calc-choice { padding: 14px 13px; min-height: 68px; }
  #pvh-calculator .calc-choice > span > .fa { float: right; margin: 1px 0 0 12px; font-size: 18px; }
  #pvh-calculator .calc-choice strong { font-size: 15px; }
  #pvh-calculator .calc-step-heading h3 { font-size: 19px; }
  #pvh-calculator .calc-result-range { font-size: 34px; }
  .gallery-page .top-actions > a { min-width: 0; white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  #pvh-calculator .calc-choice { transition: none; }
}
