/* ===========================================================
   Okienko wyboru wielopaku
   =========================================================== */

.ww-mp {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}
.ww-mp[hidden] { display: none; }

.ww-mp__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 55%, transparent);
  backdrop-filter: blur(3px);
  animation: wwMpFade .25s ease;
}

.ww-mp__box {
  position: relative;
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 40px 80px -30px rgba(40, 30, 20, .6);
  animation: wwMpIn .32s cubic-bezier(.2, .9, .3, 1);
}

@keyframes wwMpFade { from { opacity: 0; } }
@keyframes wwMpIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
}

.ww-mp__x {
  position: absolute;
  top: 14px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ww-mp__x:hover { background: var(--line); color: var(--ink); }

.ww-mp__title {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 10px 0 0;
  padding-right: 30px;
}

.ww-mp__lead {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 12px 0 22px;
}

/* --- Opcje --- */

.ww-mp__list { display: flex; flex-direction: column; gap: 12px; }

.ww-mp__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.ww-mp__opt:hover,
.ww-mp__opt:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -18px rgba(40, 30, 20, .6);
  outline: none;
}

.ww-mp__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }

.ww-mp__name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 18px;
  letter-spacing: var(--display-spacing);
  color: var(--ink);
}

.ww-mp__sub { font-size: 13px; color: var(--ink-soft); }

.ww-mp__badge {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-soft);
}

.ww-mp__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}
.ww-mp__price del { font-size: 13px; color: var(--ink-soft); opacity: .7; }
.ww-mp__price ins {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 20px;
  color: var(--accent);
}

.ww-mp__loading,
.ww-mp__msg {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 16px 0 0;
}
.ww-mp__msg:empty { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .ww-mp__box, .ww-mp__backdrop { animation: none; }
  .ww-mp__opt { transition: none; }
  .ww-mp__opt:hover { transform: none; }
}
