/* Compact access to the existing combination summary; enabled by its controller. */
.ws-combination-dock { display: none; }
.ws-combination-dock[hidden], .ws-combination-dock [hidden] { display: none !important; }

/* Preserve layout and scroll offsets while the customer is choosing a kit. */
body.ws-page.is-combination-editing :is(.ws-catalog-navigation, .ws-cookie-preferences, .ws-scroll-top, .ws-whatsapp) {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  .ws-combination-dock {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    z-index: 850;
    box-sizing: border-box;
    max-width: 600px;
    margin-inline: auto;
    padding: 10px 12px;
    border: 1px solid #d8e3ef;
    border-radius: 18px;
    background: #fff;
    color: #112051;
    box-shadow: 0 5px 28px #11205126;
  }

  .ws-combination-dock:not([hidden]) { display: block; }

  .ws-combination-dock__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .ws-combination-dock__summary {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .ws-combination-dock__count {
    color: #4c6580;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
  }

  .ws-combination-dock__total {
    color: #112051;
    font-size: clamp(21px, 5.4vw, 25px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
  }

  .ws-combination-dock__label {
    color: #6b7b8e;
    font-size: 10px;
    line-height: 1.25;
  }

  .ws-combination-dock__review {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 104px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #006fc4;
    border-radius: 11px;
    background: #006fc4;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    touch-action: manipulation;
  }

  .ws-combination-dock__review > svg {
    width: 16px;
    height: 16px;
  }

  .ws-combination-dock__review:hover { background: #005da5; }
  .ws-combination-dock__review:focus-visible { outline: 3px solid #006fc4; outline-offset: 3px; }
  .ws-combination-dock__review:disabled { cursor: default; opacity: .55; }

  .ws-combination-dock__next {
    margin: 8px 0 0;
    padding: 7px 9px;
    border-radius: 8px;
    background: #eff7fd;
    color: #1c618e;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  #resumo-combinacao {
    scroll-margin-top: calc(var(--catalog-header-height, 78px) + var(--catalog-navigation-gap, 0px) + var(--catalog-navigation-height, 0px) + 20px);
  }

  body.ws-page.has-combination-dock {
    padding-bottom: var(--combination-dock-height, 0px);
    --ws-contact-bottom: calc(var(--combination-dock-height, 0px) + 12px);
  }

  body.ws-page.has-combination-dock .ws-whatsapp {
    bottom: var(--ws-contact-bottom);
  }

  body.ws-page.has-combination-dock .ws-scroll-top {
    bottom: calc(var(--ws-contact-bottom) + (var(--ws-contact-size, 56px) - 48px) / 2);
  }

  body.ws-page.has-combination-dock .ws-cookie-preferences {
    bottom: calc(var(--combination-dock-height, 0px) + 12px);
  }

  body.ws-page.has-combination-dock .ws-whatsapp__panel {
    max-height: calc(100vh - var(--combination-dock-height, 0px) - 120px);
    max-height: calc(100dvh - var(--combination-dock-height, 0px) - 120px);
  }

  body.ws-page.has-combination-dock :is(.ws-cookie-choice, .ws-cookie-notice) {
    bottom: calc(var(--combination-dock-height, 0px) + 68px);
    max-height: calc(100dvh - var(--combination-dock-height, 0px) - 92px);
  }

  body.menu-open .ws-combination-dock { visibility: hidden; pointer-events: none; }
}
