/* Original Geoda counter, positioned independently of the page layout. */
.geoda-checkout-popup {
  position: fixed;
  z-index: 1040;
  inset-inline-end: env(safe-area-inset-right, 0px);
  inset-block-start: max(env(safe-area-inset-top, 0px), calc(var(--drupal-displace-offset-top, 0px) + min(110px, 28dvh)));
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 3vw, 1rem);
  box-sizing: border-box;
  inline-size: fit-content;
  max-inline-size: min(500px, calc(100vw - 12px - env(safe-area-inset-right, 0px)));
  padding: .65rem 2.85rem .65rem .75rem;
  border: solid #803300;
  border-width: 3px 0 3px 3px;
  background: #fff;
  color: #803300;
}

.geoda-checkout-popup [hidden] {
  display: none !important;
}

.geoda-checkout-popup__timer {
  flex: 0 0 auto;
  color: #fff;
  background: #ff3d3d;
  border-radius: .3rem;
  padding: .45rem .6rem;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.geoda-checkout-popup__toggle {
  position: absolute;
  inset-block-start: .2rem;
  inset-inline-end: .2rem;
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 1.15rem/1 system-ui, sans-serif;
}

.geoda-checkout-popup__content {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.geoda-checkout-popup__message,
.geoda-checkout-popup__hint {
  display: block;
  line-height: 1.35;
}

.geoda-checkout-popup__hint {
  font-size: .94em;
  margin-block-start: .12rem;
}

.geoda-checkout-popup__action {
  display: inline-flex;
  align-items: center;
  min-block-size: 1.6rem;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.geoda-checkout-popup__action:hover,
.geoda-checkout-popup__action:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.geoda-checkout-popup.is-collapsed {
  min-block-size: 2.85rem;
  padding: .25rem 2.85rem .25rem .45rem;
}

.geoda-checkout-popup.is-collapsed .geoda-checkout-popup__content {
  display: none;
}

@media (max-width: 576px) {
  .geoda-checkout-popup {
    font-size: .875rem;
    padding-inline-start: .55rem;
  }

  .geoda-checkout-popup__toggle {
    inline-size: 2.75rem;
    block-size: 2.75rem;
  }

  .geoda-checkout-popup__action {
    min-block-size: 2.75rem;
  }
}
