@font-face {
  font-family: "Offer Outfit";
  src: url("/meme/app/assets/outfit-latin-wght-normal-Bc-8i84L.woff2")
    format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.grm-offer-banner {
  --offer-surface: #5cf3ec;
  --offer-ink: #101a1d;
  --offer-muted: #28514e;
  position: fixed;
  inset: 0 0 auto;
  z-index: 710;
  container-type: inline-size;
  background: var(--offer-surface);
  color: var(--offer-ink);
  font:
    500 15px / 1.25 "Offer Outfit",
    system-ui,
    sans-serif;
  text-align: start;
  padding-top: env(safe-area-inset-top, 0px);
}

[data-grm-offer-surface="marketing"] .grm-public-header[data-hero-header],
[data-grm-offer-surface="workspace"]
  :is(
    #grm-workspace-bootstrap,
    #grm-video-startup,
    .template-workspace-header
  ) {
  top: var(--grm-offer-height);
}

.grm-offer-spacer {
  height: var(--grm-offer-height, 0px);
}

[data-grm-offer-surface="workspace"] #app-scroll {
  height: calc(100dvh - var(--grm-offer-height));
}

[data-grm-offer-surface="workspace"] .template-workspace {
  min-height: calc(100dvh - var(--grm-offer-height));
}

@media (width >= 768px) {
  [data-grm-offer-surface="workspace"]
    :is(#grm-workspace-sidebar, .grm-startup-desktop-nav) {
    top: calc(8px + var(--grm-offer-height));
  }
}

[data-grm-offer-surface="workspace"] .grm-guest-header {
  top: var(--grm-offer-height);
}

.grm-offer-row {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(max-content, 247fr) minmax(max-content, 369fr)
    minmax(max-content, 203fr) minmax(max-content, 179fr);
  align-items: center;
  column-gap: clamp(12px, 1.8cqw, 32px);
  min-height: var(--offer-row-height, 56px);
  padding-block: 4px;
  padding-inline: clamp(22px, 55cqw - 580px, 18.4cqw)
    clamp(56px, 30cqw - 268px, 13.1cqw);
}

.grm-offer-pitch,
.grm-offer-meta {
  display: contents;
}

.grm-offer-claim {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1cqw, 16px);
  min-width: 0;
}

.grm-offer-event {
  padding-block: 3px;
  padding-inline-end: clamp(8px, 1cqw, 16px);
  border-inline-end: 1px solid #101a1d70;
  font-size: clamp(14px, 1.7cqw, 27px);
  font-weight: 720;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.grm-offer-amount {
  flex: none;
  font-size: clamp(24px, 2.8cqw, var(--offer-amount-size, 44px));
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.045em;
}

.grm-offer-detail {
  font-size: clamp(13px, 1.3cqw, 21px);
  font-weight: 650;
}

.grm-offer-clock {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.grm-offer-countdown {
  font-size: clamp(13px, 1.42cqw, 23px);
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: 0.015em;
}

.grm-offer-deadline {
  color: var(--offer-muted);
  font-size: clamp(10px, 0.92cqw, 15px);
  line-height: 1.15;
}

.grm-offer-banner .grm-offer-action {
  display: inline-flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: var(--offer-action-height, 40px);
  box-sizing: border-box;
  padding: 5px 12px;
  border-radius: 12px;
  background: var(--offer-ink);
  color: var(--offer-surface);
  text-decoration: none;
  font-size: clamp(13px, 1.17cqw, 19px);
  font-weight: 680;
  white-space: nowrap;
}

.grm-offer-banner .grm-offer-action:hover {
  background: #233236;
  color: #b9fff7;
}

.grm-offer-action svg {
  width: 14px;
  height: 14px;
}

.grm-offer-dismiss {
  position: absolute;
  top: 50%;
  right: clamp(5px, 0.9cqw, 18px);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--offer-ink);
  cursor: pointer;
}

.grm-offer-dismiss:hover {
  background: #101a1d17;
}
.grm-offer-dismiss svg {
  width: 17px;
  height: 17px;
}
.grm-offer-banner :is(a, button):focus-visible {
  outline: 2px solid var(--offer-ink);
  outline-offset: 2px;
}

.grm-offer-banner[data-surface="workspace"] {
  --offer-surface: #4af0e9;
  --offer-row-height: 48px;
  --offer-amount-size: 42px;
  --offer-action-height: 36px;
}

@container (width >= 680px) {
  [data-surface="workspace"] .grm-offer-row {
    grid-template-columns:
      minmax(max-content, 257fr) minmax(max-content, 595fr)
      minmax(max-content, 270fr) minmax(max-content, 180fr);
    column-gap: clamp(12px, 3cqw - 9px, 52px);
    padding-block: 1px;
    padding-inline: clamp(20px, 3.3cqw, 60px) clamp(56px, 5.65cqw, 106px);
  }

  [data-surface="workspace"] .grm-offer-claim {
    padding-inline-end: 8px;
    border-inline-end: 1px solid #101a1d70;
  }
}

@container (width < 680px) {
  .grm-offer-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "pitch pitch"
      "clock action";
    row-gap: 0;
    padding: 4px max(12px, env(safe-area-inset-right)) 8px
      max(12px, env(safe-area-inset-left));
  }

  .grm-offer-pitch {
    grid-area: pitch;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-inline-end: 36px;
  }

  .grm-offer-event {
    padding-inline-end: 8px;
    font-size: clamp(10px, 2.8cqw, 14px);
  }

  .grm-offer-claim {
    gap: 6px;
  }

  .grm-offer-amount {
    font-size: clamp(24px, 6cqw, 30px);
  }

  .grm-offer-detail {
    font-size: clamp(11px, 3cqw, 14px);
    line-height: 1.15;
  }

  .grm-offer-clock {
    grid-area: clock;
  }

  .grm-offer-countdown {
    font-size: clamp(13px, 3.65cqw, 16px);
  }

  .grm-offer-banner .grm-offer-action {
    grid-area: action;
    min-height: 36px;
    padding-inline: 10px;
    border-radius: 8px;
    font-size: 12px;
  }

  .grm-offer-dismiss {
    top: 0;
    right: max(4px, env(safe-area-inset-right));
    transform: none;
  }

  [data-surface="workspace"] .grm-offer-row {
    padding-block: 0 4px;
  }

  .grm-offer-banner[data-surface="workspace"] .grm-offer-action {
    min-height: 34px;
  }
}
