/* BOOKNATION — Sticky offer v2 (from propunere_sticky_bar/preview-bara.html).
   Values, coupon state and purchase action come from WooCommerce / campaign coupon. */

:root {
  --bn-s2-ink: #1e2937;
  --bn-s2-muted: #737d8b;
  --bn-s2-accent: #b94e43;
  --bn-s2-accent-hover: #a83e35;
  --bn-s2-rose: #fbefec;
  --bn-s2-line: #eae7e4;
}

.bn-sticky-v2,
.bn-sticky-v2 * {
  box-sizing: border-box;
}

.bn-sticky-v2 {
  position: fixed !important;
  inset: auto 0 0;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10050 !important;
  font-family: inherit;
  color: var(--bn-s2-ink);
  background: rgba(255, 255, 255, 0.97) !important;
  border-top: 1px solid var(--bn-s2-line);
  box-shadow: 0 -9px 32px rgba(23, 31, 40, 0.065);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translate3d(0, calc(100% + 5px), 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.bn-sticky-v2[data-visible="true"] {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bn-sticky-v2__inner {
  width: min(1080px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: clamp(54px, 7vw, 100px);
}

.bn-sticky-v2__context {
  flex: 0 0 280px;
  min-width: 0;
}

.bn-sticky-v2__eyebrow {
  display: block;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--bn-s2-accent);
}

.bn-sticky-v2__name {
  display: block;
  margin-top: 2px;
  font-weight: 750;
  letter-spacing: -0.035em;
  font-size: 16px;
  line-height: 1.27;
}

.bn-sticky-v2__detail {
  display: block;
  margin-top: 3px;
  color: var(--bn-s2-muted);
  font-size: 12px;
  line-height: 1.3;
}

.bn-sticky-v2__purchase {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 23px;
  flex: 0 0 auto;
}

.bn-sticky-v2__pricing {
  min-width: 185px;
}

.bn-sticky-v2__comparison {
  display: flex;
  flex-wrap: wrap;
  column-gap: 9px;
  row-gap: 2px;
  align-items: center;
  margin-bottom: 1px;
}

.bn-sticky-v2__old {
  color: var(--bn-s2-muted);
  font-size: 12px;
  text-decoration: line-through;
  text-decoration-color: #9aa2ad;
  white-space: nowrap;
}

.bn-sticky-v2__discount {
  border-radius: 5px;
  padding: 1px 6px;
  color: #a13d34;
  background: var(--bn-s2-rose);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 750;
  white-space: nowrap;
}

.bn-sticky-v2__amount {
  display: block;
  color: var(--bn-s2-ink);
  font-variant-numeric: tabular-nums;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.bn-sticky-v2__currency {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.bn-sticky-v2__action {
  min-width: 225px;
}

.bn-sticky-v2__cta {
  text-decoration: none !important;
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  border: 1px solid var(--bn-s2-accent);
  background: var(--bn-s2-accent) !important;
  box-shadow: 0 4px 9px rgba(153, 47, 39, 0.11);
  color: #fff !important;
  padding: 12px 19px;
  white-space: nowrap;
  line-height: 1.15;
  font-weight: 750;
  font-size: 14px;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  cursor: pointer;
  position: static !important;
  float: none !important;
  inset: auto !important;
  margin: 0 !important;
}

.bn-sticky-v2__cta:hover,
.bn-sticky-v2__cta:focus {
  background: var(--bn-s2-accent-hover) !important;
  border-color: var(--bn-s2-accent-hover);
  box-shadow: 0 7px 15px rgba(153, 47, 39, 0.17);
  color: #fff !important;
  transform: translateY(-1px);
}

.bn-sticky-v2__cta:focus-visible {
  outline: 3px solid #71342f;
  outline-offset: 3px;
}

.bn-sticky-v2__cta:active {
  transform: translateY(0);
}

.bn-sticky-v2__cta svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.bn-sticky-v2__cta-mobile {
  display: none;
}

/* Coupon / sale off: hide comparison row */
.bn-sticky-v2[data-sale="false"] .bn-sticky-v2__old,
.bn-sticky-v2[data-sale="false"] .bn-sticky-v2__discount,
.bn-sticky-v2[data-sale="false"] .bn-sticky-v2__comparison {
  display: none;
}

@media (max-width: 900px) {
  .bn-sticky-v2__context {
    display: none;
  }
  .bn-sticky-v2__inner {
    width: min(660px, calc(100% - 36px));
    min-height: 78px;
  }
  .bn-sticky-v2__purchase {
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    flex: 1 1 auto;
  }
  .bn-sticky-v2__pricing {
    min-width: 0;
  }
}

@media (max-width: 500px) {
  .bn-sticky-v2__inner {
    width: calc(100% - 26px);
    min-height: 76px;
    padding: 10px 0;
  }
  .bn-sticky-v2__purchase {
    column-gap: 10px;
  }
  .bn-sticky-v2__comparison {
    column-gap: 7px;
    margin-bottom: 3px;
  }
  .bn-sticky-v2__old {
    font-size: 11px;
  }
  .bn-sticky-v2__discount {
    font-size: 10px;
    padding: 1px 5px;
  }
  .bn-sticky-v2__amount {
    font-size: clamp(21px, 5.7vw, 26px);
  }
  .bn-sticky-v2__currency {
    font-size: 0.72em;
  }
  .bn-sticky-v2__action {
    min-width: 133px;
    width: min(43%, 175px);
    flex: none;
  }
  .bn-sticky-v2__cta {
    border-radius: 9px;
    min-height: 48px;
    padding: 11px 9px;
    font-size: 13px;
    gap: 6px;
  }
  .bn-sticky-v2__cta-desktop {
    display: none;
  }
  .bn-sticky-v2__cta-mobile {
    display: inline;
  }
  .bn-sticky-v2__cta svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 350px) {
  .bn-sticky-v2__inner {
    width: calc(100% - 20px);
  }
  .bn-sticky-v2__purchase {
    gap: 7px;
  }
  .bn-sticky-v2__action {
    min-width: 121px;
    width: 41%;
  }
  .bn-sticky-v2__cta {
    font-size: 12px;
    gap: 4px;
  }
  .bn-sticky-v2__amount {
    font-size: 20px;
  }
  .bn-sticky-v2__currency {
    font-size: 0.69em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bn-sticky-v2,
  .bn-sticky-v2__cta {
    transition: none;
  }
}

body.bn-sticky-v2-is-shown {
  padding-bottom: var(--bn-sticky-reserve, 96px);
}
