/* =====================================================================
   KOHWAN — the floating trip cart on the ski pages, and the quantity
   steppers the "Add to my trip" buttons turn into.
   Markup: resources/views/frontend/ski/partials/cart.blade.php
   ===================================================================== */

/* -------------------------------------------------------- the stepper */
.skc-step {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--skl-navy, #2e4755);
  color: #FFFFFF;
  vertical-align: middle;
}
.skc-step[hidden] { display: none; }
/* The add button is a .skl-btn, which sets display itself, so hiding it has
   to be said louder than that. */
.skc-add__cta[hidden], [data-skc-add][hidden] { display: none; }
.skc-step button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: inherit;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s var(--skl-ease, ease);
}
.skc-step button:hover { background: var(--skl-gold, #BD830D); }
.skc-step button:focus-visible { outline: 2px solid var(--skl-gold, #BD830D); outline-offset: 2px; }
.skc-step b { min-width: 30px; text-align: center; font-size: .95rem; font-weight: 800; }
.skc-step--sm { padding: 2px; }
.skc-step--sm button { width: 26px; height: 26px; font-size: 1rem; }
.skc-step--sm b { min-width: 22px; font-size: .85rem; }

/* The flash that says the click landed. */
@keyframes skc-pop { 50% { transform: scale(1.06); } }
.is-added .skc-step { animation: skc-pop .4s var(--skl-ease, ease); }

/* ----------------------------------------------------------- the pill */
.skc {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 950;
  width: min(370px, calc(100vw - 32px));
  font-family: var(--skl-body, system-ui, sans-serif);
}
.skc[hidden] { display: none; }

.skc-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--skl-navy, #2e4755);
  color: #FFFFFF;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(16, 28, 36, .32);
  transition: transform .2s var(--skl-ease, ease), filter .2s var(--skl-ease, ease);
}
.skc-pill:hover { transform: translateY(-2px); filter: brightness(1.08); }
.skc-pill:focus-visible { outline: 2px solid var(--skl-gold, #BD830D); outline-offset: 3px; }
.skc-pill__ico { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .13); }
.skc-pill__ico svg { width: 20px; height: 20px; }
.skc-pill__ico i {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--skl-gold, #BD830D);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.skc-pill__txt { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.skc-pill__txt b { font-size: .92rem; font-weight: 700; }
.skc-pill__txt small { font-size: .82rem; color: rgba(255, 255, 255, .75); }
.skc-pill__go {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--skl-gold, #BD830D);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- the panel */
.skc-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 100%;
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 26px 60px rgba(16, 28, 36, .34);
  overflow: hidden;
}
.skc-panel[hidden] { display: none; }
.skc-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--skl-navy, #2e4755);
  color: #FFFFFF;
}
.skc-panel__head h2 {
  margin: 0;
  font-family: var(--skl-head, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.skc-panel__head button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: inherit;
  cursor: pointer;
}
.skc-panel__head button svg { width: 15px; height: 15px; }
.skc-panel__head button:hover { background: var(--skl-gold, #BD830D); }

.skc-lines { flex: 1 1 auto; margin: 0; padding: 6px 18px; list-style: none; overflow-y: auto; }
.skc-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas: "img txt sum" "img step sum";
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 13px 0;
}
.skc-line + .skc-line { border-top: 1px solid var(--skl-line, #E3E9EC); }
.skc-line__img { grid-area: img; width: 46px; height: 46px; border-radius: 9px; background: var(--skl-sky-soft, #EAF5F8); overflow: hidden; }
.skc-line__img img { width: 100%; height: 100%; object-fit: cover; }
.skc-line__txt { grid-area: txt; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.skc-line__txt a, .skc-line__txt b {
  font-size: .9rem;
  font-weight: 700;
  color: var(--skl-navy, #2e4755);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skc-line__txt a:hover { color: var(--skl-gold, #BD830D); }
.skc-line__txt small { font-size: .78rem; color: var(--skl-muted, #5f7380); }
.skc-line .skc-step { grid-area: step; justify-self: start; }
.skc-line__sum { grid-area: sum; font-size: .9rem; font-weight: 800; color: var(--skl-ink, #1f3441); }

.skc-panel__foot { padding: 14px 18px 18px; border-top: 1px solid var(--skl-line, #E3E9EC); background: #FAFCFD; }
.skc-sum { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; font-size: .92rem; color: var(--skl-muted, #5f7380); }
.skc-sum b { font-size: 1.2rem; font-weight: 800; color: var(--skl-navy, #2e4755); }
.skc-note { margin: 0 0 12px; font-size: .76rem; line-height: 1.5; color: var(--skl-muted, #5f7380); }
.skc-go {
  display: block;
  padding: 13px;
  border-radius: 999px;
  background: var(--skl-gold, #BD830D);
  color: #FFFFFF;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
.skc-go:hover { filter: brightness(1.08); }
.skc-clear {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--skl-muted, #5f7380);
  font: inherit;
  font-size: .78rem;
  text-decoration: underline;
  cursor: pointer;
}
.skc-clear:hover { color: var(--skl-navy, #2e4755); }

/* On a phone the pill sits clear of the chat and WhatsApp buttons. */
@media (max-width: 680px) {
  .skc { right: 12px; left: 12px; bottom: 80px; width: auto; }
  .skc-pill__go { padding: 7px 11px; font-size: .72rem; }
  .skc-panel { max-height: 64vh; }
}
@media (prefers-reduced-motion: reduce) {
  .skc-pill, .is-added .skc-step { transition: none; animation: none; }
}
