#bfc-notatnik[hidden] {
  display: none !important;
}

#bfc-notatnik {
  display: block;
  width: 100%;
  max-width: 896px;
  margin: 0 auto 20px;
}

#bfc-notatnik[data-bfc-view="tablica"] {
  max-width: 720px;
}

#bfc-notatnik:not([hidden])[data-bfc-view="tablica"] + #content .cm-center > .cm-banner {
  display: none !important;
}

.bfc-banner,
.bfc-banner * {
  box-sizing: border-box;
}

.bfc-banner {
  container-type: inline-size;
  display: block;
  width: 100%;
  max-width: 1060px;
  min-width: 0;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-bfc-wide] {
  padding-inline: 16px;
}

.bfc-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 12px;
  min-height: 37px;
  padding: 7px 18px;
  color: #fcf5e8;
  background: #111735;
  border-radius: 16px 16px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.bfc-count {
  display: inline-block;
  color: #ffd283;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bfc-count b {
  font-weight: 750;
  font-size: 15px;
}

.bfc-offer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, 35%);
  min-height: 164px;
  overflow: hidden;
  background: #fbf2e4;
  color: #111735;
  border-radius: 0 0 16px 16px;
  box-shadow: inset 0 0 0 1px #ead9b8;
}

.bfc-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 22px 6px 24px 23px;
  padding: clamp(14px, 2.8cqw, 24px) 5px clamp(15px, 3.1cqw, 26px) clamp(16px, 4.3cqw, 46px);
}

.bfc-banner .bfc-kicker {
  margin: 0 0 7px;
  color: #263d9b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.bfc-kicker span {
  margin-inline: 2px;
}

.bfc-banner .bfc-title {
  max-width: 19ch;
  margin: 0;
  color: #111735;
  font-size: 29px;
  font-size: clamp(19px, 4.1cqw, 35px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.bfc-banner .bfc-description {
  max-width: 44ch;
  margin: 8px 0 14px;
  color: #343b59;
  font-size: 14px;
  font-size: clamp(13px, 1.9cqw, 18px);
  line-height: 1.37;
}

.bfc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bfc-banner .bfc-action[hidden] {
  display: none;
}

.bfc-banner .bfc-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 9px 13px;
  color: #fff;
  background: #233ba1;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.22;
}

.bfc-action::after {
  content: '→';
  speak: never;
}

.bfc-banner .bfc-action:hover {
  color: #fff;
  background: #172976;
}

.bfc-banner .bfc-action:focus-visible {
  outline: 3px solid #111735;
  outline-offset: 3px;
}

.bfc-portrait {
  position: relative;
  border-radius: 0 0 16px 0;
  overflow: hidden;
}

.bfc-portrait::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 43%, #a57835 43.3%, #ffe2a1 44.3%, #323ca8 45.4%, #101e64 67%, #4866db 84%, #162260 98%),
    radial-gradient(ellipse at 70% 23%, #fbe5b7 1%, #f3d49a 45%, #fbf2e4 82%);
  content: '';
}

.bfc-portrait img {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: block;
  width: auto;
  max-width: none;
  height: 95%;
  object-fit: contain;
  transform: translateX(-50%);
}

@container (max-width: 440px) {
  .bfc-clock {
    padding-inline: 13px;
  }

  .bfc-offer {
    grid-template-columns: minmax(0, 1fr) minmax(90px, 34%);
    min-height: 158px;
  }

  .bfc-banner .bfc-kicker {
    font-size: 9px;
  }

  .bfc-portrait img {
    height: clamp(142px, 42cqw, 176px);
  }
}

.bfc-min-btn {
  margin-left: auto;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 131, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fcf5e8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.bfc-min-btn:hover {
  background: rgba(255, 210, 131, 0.2);
}
.bfc-banner.is-minimized .bfc-clock {
  border-radius: 14px;
}
.bfc-banner.is-minimized .bfc-offer {
  display: none;
}
@media (max-width: 639px) {
  .bfc-offer {
    min-height: 132px;
  }
  .bfc-copy {
    padding: 12px 6px 12px 14px;
  }
  .bfc-banner .bfc-description {
    margin: 5px 0 10px;
    font-size: 12px;
  }
  .bfc-banner .bfc-action {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }
}
