/* ==========================================================================
   Back Office — Popupi (shop front end)
   --------------------------------------------------------------------------
   .kmp-popup            image left, big title, countdown, dimmed page
   .kmp-popup--compact   small card bottom left, image on top, no overlay
   .kmp-popup--ticket    a garment hang tag: eyelet, clipped corners, stitching
   .kmp-popup--poster    the image fills the card, text on it, dimmed page
   Fonts come from the theme: the title is the theme's h2, the countdown
   digits take the same family (popup.js copies it into --kmp-font-display).
   ========================================================================== */

html.kmp-open {
  overflow: hidden;
}

.kmp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25em 12px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(13.8px);
  backdrop-filter: blur(13.8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.kmp-overlay[hidden] {
  display: none;
}
.kmp-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.kmp-popup {
  position: relative;
  display: flex;
  width: 57.5em;
  max-width: 100%;
  max-height: 90svh;
  overflow: hidden;
  background: #fff;
  border-radius: 0.375em;
  box-shadow: 0 1.25em 3.75em rgba(0, 0, 0, 0.35);
  transform: translateY(1.25em);
  transition: transform 0.3s ease;
}
.kmp-overlay.is-open .kmp-popup {
  transform: translateY(0);
}

.kmp-popup__close {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  padding: 0;
  font-size: 1.25em;
  line-height: 1;
  color: #121212;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.kmp-popup__close:hover {
  background: #fff;
}

.kmp-popup__media {
  flex: 0 0 27em;
  max-width: 27em;
}
.kmp-popup__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kmp-popup__img--mobile {
  display: none;
}

.kmp-popup__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.25em 1.75em 1.5em;
  overflow-y: auto;
}
.kmp-popup__suptitle {
  margin: 0 0 0.75em;
  font-size: 0.8125em;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #c93a28;
}
.kmp-popup__title {
  margin: 0;
  font-size: 2.5em;
  line-height: 1.2;
  letter-spacing: -0.001em;
  text-transform: uppercase;
  color: #121212;
}
.kmp-popup__desc {
  margin: 1.5em 0 0;
}
.kmp-popup__desc p {
  margin: 0 0 1em;
  font-size: 1em;
  line-height: 1.32;
  color: #000;
}
.kmp-popup__desc strong,
.kmp-popup__desc b {
  font-weight: 600;
}

/* Coupon code — the countdown's red, dashed like a voucher. */
.kmp-popup__coupon {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 0.75em;
  padding: 0.5em 0.5em 0.5em 1em;
  border: 1px dashed rgba(201, 58, 40, 0.5);
  border-radius: 0.25rem;
  color: #c93a28;
}
.kmp-popup__coupon-label {
  font-size: 0.75em;
  font-weight: 500;
  text-transform: uppercase;
}
.kmp-popup__coupon-code {
  flex: 1;
  font-family: var(--kmp-font-display, inherit);
  font-size: 1.25em;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.kmp-popup__copy {
  padding: 0.6em 1em;
  font: inherit;
  font-size: 0.75em;
  font-weight: 500;
  text-transform: uppercase;
  color: #c93a28;
  background: rgba(224, 72, 55, 0.08);
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
}
.kmp-popup__copy:hover,
.kmp-popup__copy.is-done {
  color: #fff;
  background: #c93a28;
}
.kmp-popup--compact .kmp-popup__coupon {
  margin-bottom: 0.5em;
  font-size: 0.875em;
}

/* Button — the theme's .btn-dark, full width. */
.kmp-popup__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 1.334em 2.2em;
  font-size: 0.82em;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: #0d0d0d;
  border: 1px solid #000;
  border-radius: 0.25rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.kmp-popup__btn:hover,
.kmp-popup__btn:focus-visible {
  color: #0d0d0d;
  background-color: #fff;
}
.kmp-popup__btn strong {
  font-weight: 600;
}

.kmp-popup__countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.75em;
  padding: 0.75em 0;
  font-size: 0.875em;
  color: #111;
}
.kmp-popup__countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625em;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #c93a28;
}
.kmp-popup__clock {
  flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
  color: #e04837;
}
.kmp-popup__countdown-text {
  font-size: 0.875em;
}
.kmp-popup__timer {
  display: inline-flex;
  gap: 5px;
  font-weight: 600;
  white-space: nowrap;
}
.kmp-popup__timer-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75em;
  color: #c93a28;
}
.kmp-popup__timer-value {
  display: inline-block;
  padding: 0.25em 0.5em;
  font-family: var(--kmp-font-display, inherit);
  font-size: 1.125em;
  font-weight: 400;
  border: 1px solid rgba(224, 72, 55, 0.2);
  border-radius: 0.25em;
}
.kmp-popup__note {
  margin: 0.75em 0 0;
  font-size: 0.75em;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.6);
}

/* ── Compact card ──────────────────────────────────────────────────────── */

.kmp-overlay--compact {
  z-index: 95;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.25em var(--padding-global--padding-global, 1.25em) 2em;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
.kmp-overlay--compact .kmp-popup {
  pointer-events: auto;
}
.kmp-popup--compact {
  flex-direction: column;
  width: 20.4375em;
}
.kmp-popup--compact .kmp-popup__media {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.kmp-popup--compact .kmp-popup__img {
  width: 100%;
  height: auto;
  max-height: 20em;
  object-fit: cover;
  object-position: center;
}
.kmp-popup--compact .kmp-popup__close {
  top: 0.5em;
  right: 0.5em;
  width: 1.5em;
  height: 1.5em;
  color: #fff;
  background: transparent;
  border: 0;
}
/* Without an image the cross sits on white. */
.kmp-popup--compact.kmp-popup--no-media .kmp-popup__close {
  color: #121212;
}
.kmp-popup--compact .kmp-popup__close:hover {
  background: transparent;
  opacity: 0.8;
}
.kmp-popup--compact .kmp-popup__body {
  padding: 1em;
}
.kmp-popup--compact .kmp-popup__content {
  margin-bottom: 1em;
}
.kmp-popup--compact .kmp-popup__suptitle {
  margin: 0 0 0.5em;
  font-size: 0.625em;
}
.kmp-popup--compact .kmp-popup__title {
  font-family: inherit;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.375;
  letter-spacing: 0;
  color: #000;
}
.kmp-popup--compact .kmp-popup__desc {
  margin: 0.75em 0 0;
}
.kmp-popup--compact .kmp-popup__desc p {
  margin: 0 0 0.75em;
  font-size: 0.75em;
  line-height: 1.35;
  color: #000;
}
.kmp-popup--compact .kmp-popup__desc p:last-child {
  margin-bottom: 0;
}
.kmp-popup--compact .kmp-popup__btn {
  padding: 1.2em 2em;
  font-size: 0.738em;
}
.kmp-popup--compact .kmp-popup__note {
  margin: 0.5em 0 0;
  font-size: 0.625em;
}

/* ── Tablet and phone ──────────────────────────────────────────────────── */

@media only screen and (max-width: 767px) {
  .kmp-popup {
    flex-direction: column;
  }
  .kmp-popup__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .kmp-popup__img {
    height: auto;
    object-fit: contain;
  }
  .kmp-popup__img--desktop {
    display: none;
  }
  .kmp-popup__img--mobile {
    display: block;
  }
  .kmp-popup__content {
    margin-bottom: 1.5em;
  }
  .kmp-popup__countdown-text {
    font-size: 0.75em;
  }
}

@media only screen and (max-width: 479px) {
  .kmp-popup__body {
    padding: 2.5em 24px 1.5em;
  }
  .kmp-popup__close {
    width: 1.75em;
    height: 1.75em;
  }
  .kmp-popup__suptitle {
    font-size: 0.75em;
  }
  .kmp-popup__title {
    font-size: 2em;
  }
  .kmp-popup__desc {
    margin: 1em 0 0;
  }
  .kmp-popup__desc p {
    font-size: 0.875em;
  }

  .kmp-overlay--compact {
    padding: 12px;
  }
  .kmp-overlay--compact.kmp-overlay--m-center {
    align-items: center;
    justify-content: center;
  }
  .kmp-popup--compact {
    width: 100%;
    max-width: 18.5em;
  }
  .kmp-popup--compact .kmp-popup__title {
    font-size: 0.9em;
  }
  .kmp-popup--compact .kmp-popup__desc p {
    font-size: 0.685em;
  }
}

/* ── Tag: a garment hang tag ("Etiketa") ───────────────────────────────── */

/* Clipped corners at the tag's end, a punched hole with a metal eyelet
   (the hole is masked out, so the page shows through), stitching round
   the text, and a slight tilt as if it hung off a jacket. */
.kmp-popup--ticket {
  --cut: 38%;
  --corner: 1.75em;
  --hole-x: 2.25em;
  --hole-y: 50%;
  width: 46em;
  min-height: 22em;
  background: #f7f4ee;
  border-radius: 0.5em;
  box-shadow: none;
  clip-path: polygon(var(--corner) 0, 100% 0, 100% 100%, var(--corner) 100%, 0 calc(100% - var(--corner)), 0 var(--corner));
  -webkit-mask: radial-gradient(circle 0.55em at var(--hole-x) var(--hole-y), #0000 98%, #000);
  mask: radial-gradient(circle 0.55em at var(--hole-x) var(--hole-y), #0000 98%, #000);
  transform: translateY(1.25em) rotate(-3deg);
}
.kmp-overlay.is-open .kmp-popup--ticket {
  transform: rotate(-1deg);
}
/* The eyelet ring round the hole. */
.kmp-popup--ticket::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: calc(var(--hole-x) - 0.85em);
  top: calc(var(--hole-y) - 0.85em);
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2efe9, #a9a298 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.kmp-popup--ticket .kmp-popup__media {
  flex: 0 0 var(--cut);
  max-width: var(--cut);
}
.kmp-popup--ticket .kmp-popup__body {
  position: relative;
  padding: 2.75em 2.25em 1.75em;
}
/* Stitching round the text. */
.kmp-popup--ticket .kmp-popup__body::after {
  content: "";
  position: absolute;
  inset: 0.625em;
  border: 1.5px dashed rgba(0, 0, 0, 0.2);
  border-radius: 0.25em;
  pointer-events: none;
}
.kmp-popup--ticket .kmp-popup__title {
  font-size: 2em;
}
.kmp-popup--ticket .kmp-popup__desc {
  margin-top: 1em;
}
.kmp-popup--ticket .kmp-popup__desc p {
  font-size: 0.9375em;
}
.kmp-popup--ticket .kmp-popup__close {
  top: 1em;
  right: 1em;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.12);
}
/* Text only: no tag end, so no hole either. */
.kmp-popup--ticket.kmp-popup--no-media {
  clip-path: none;
  -webkit-mask: none;
  mask: none;
}
.kmp-popup--ticket.kmp-popup--no-media::before {
  display: none;
}

/* No image: a red sewn-in label with the small title, large, and a barcode. */
.kmp-popup__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding: 1.5em 1.5em 1.5em 3.5em;
  background: #c93a28;
}
.kmp-popup__stub::after {
  content: "";
  position: absolute;
  inset: 0.625em 0.625em 0.625em 0.625em;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  border-radius: 0.25em;
  pointer-events: none;
}
.kmp-popup__stub span {
  font-family: var(--kmp-font-display, inherit);
  font-size: 3em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: anywhere;
}
.kmp-popup__barcode {
  display: block;
  width: 6.5em;
  height: 1.75em;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 12px, #fff 12px 13px, transparent 13px 16px);
  opacity: 0.85;
}

/* ── Poster: the image is the popup ────────────────────────────────────── */

.kmp-popup--poster {
  flex-direction: column;
  justify-content: flex-end;
  width: 30em;
  min-height: 37.5em;
  color: #fff;
  background: #0d0d0d;
}
.kmp-popup--poster .kmp-popup__media {
  position: absolute;
  inset: 0;
  flex: none;
  width: auto;
  max-width: none;
}
.kmp-popup--poster .kmp-popup__img {
  height: 100%;
  object-fit: cover;
}
.kmp-popup--poster .kmp-popup__body {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 7em 2em 1.75em;
  overflow: visible;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 100%);
}
.kmp-popup--poster.kmp-popup--no-media .kmp-popup__body {
  padding-top: 3.25em;
  background: none;
}
.kmp-popup--poster .kmp-popup__content {
  margin-bottom: 1.5em;
}
.kmp-popup--poster .kmp-popup__suptitle {
  color: #ff8a78;
}
.kmp-popup--poster .kmp-popup__title {
  color: #fff;
}
.kmp-popup--poster .kmp-popup__desc {
  margin-top: 1em;
}
.kmp-popup--poster .kmp-popup__desc p {
  color: rgba(255, 255, 255, 0.9);
}
.kmp-popup--poster .kmp-popup__btn {
  color: #0d0d0d;
  background: #fff;
  border-color: #fff;
}
.kmp-popup--poster .kmp-popup__btn:hover,
.kmp-popup--poster .kmp-popup__btn:focus-visible {
  color: #fff;
  background: transparent;
}
.kmp-popup--poster .kmp-popup__countdown,
.kmp-popup--poster .kmp-popup__countdown-label {
  color: #fff;
}
.kmp-popup--poster .kmp-popup__timer-seg {
  color: #ff8a78;
}
.kmp-popup--poster .kmp-popup__timer-value {
  border-color: rgba(255, 255, 255, 0.3);
}
.kmp-popup--poster .kmp-popup__note {
  color: rgba(255, 255, 255, 0.65);
}
.kmp-popup--poster .kmp-popup__coupon {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.kmp-popup--poster .kmp-popup__copy {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

@media only screen and (max-width: 767px) {
  /* Upright: the tag hangs from the top. */
  .kmp-popup--ticket {
    --cut: 13em;
    --corner: 1.25em;
    --hole-x: 50%;
    --hole-y: 1.75em;
    width: 100%;
    min-height: 0;
    clip-path: polygon(var(--corner) 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%, 0 var(--corner));
    transform: translateY(1.25em);
  }
  .kmp-overlay.is-open .kmp-popup--ticket {
    transform: none;
  }
  .kmp-popup--ticket .kmp-popup__media {
    flex: 0 0 var(--cut);
    max-width: none;
    height: var(--cut);
  }
  .kmp-popup--ticket .kmp-popup__img {
    height: 100%;
    object-fit: cover;
  }
  .kmp-popup--ticket .kmp-popup__close {
    top: 0.75em;
    right: 1em;
  }
  .kmp-popup__stub {
    padding: 3.5em 1.5em 1.5em;
  }
  .kmp-popup__stub span {
    font-size: 2.5em;
  }
  .kmp-popup--poster {
    width: 100%;
    min-height: min(34em, 82svh);
  }
}

@media only screen and (max-width: 479px) {
  .kmp-popup--ticket .kmp-popup__body {
    padding: 2em 28px 1.75em;
  }
  .kmp-popup--ticket .kmp-popup__title {
    font-size: 1.625em;
  }
  .kmp-popup--poster .kmp-popup__body {
    padding: 6em 24px 1.5em;
  }
}
