.aua-bf-overlay[hidden] { display: none !important; }
.aua-bf-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(0 0 0 / 60%);
}
.aua-bf, .aua-bf * { box-sizing: border-box; }
.aua-bf {
  --aua-bf-actions: 64px;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Szerokość dobrana tak, by grafika (1088×1445) i przyciski zmieściły się w oknie bez przewijania. */
  width: min(540px, 100%, calc((100dvh - 32px - var(--aua-bf-actions)) * 1088 / 1445));
  background: #2a0608;
  box-shadow: 0 18px 44px rgb(0 0 0 / 38%);
  font-family: Montserrat, sans-serif;
}
.aua-bf picture { display: block; }
.aua-bf-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1088 / 1445;
}
.aua-bf-actions {
  display: flex;
  gap: 8px;
  min-height: var(--aua-bf-actions);
  padding: 10px;
  background: #2a0608;
}
.aua-bf-copy, .aua-bf-shop {
  flex: 1 1 0;
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #f3e8d8;
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.aua-bf-copy { background: #f3e8d8; color: #2a0608; }
.aua-bf-copy:hover, .aua-bf-copy.is-copied { background: #fff; }
.aua-bf-shop, .aua-bf-shop:visited { background: transparent; color: #f3e8d8; }
.aua-bf-shop:hover { background: rgb(243 232 216 / 12%); color: #fff; }
.aua-bf-copy:focus-visible, .aua-bf-shop:focus-visible, .aua-bf-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.aua-bf-status {
  position: absolute;
  bottom: calc(var(--aua-bf-actions) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
.aua-bf-status:not(:empty) { padding: 8px 12px; background: rgb(20 3 4 / 88%); }
.aua-bf-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(20 3 4 / 55%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.aua-bf-close:hover { background: rgb(20 3 4 / 80%); }
body.aua-bf-open { overflow: hidden; }
@media (max-width: 480px) {
  .aua-bf-overlay { padding: 12px; }
  .aua-bf { width: min(100%, calc((100dvh - 24px - var(--aua-bf-actions)) * 1088 / 1445)); }
  .aua-bf-copy, .aua-bf-shop { font-size: 11px; letter-spacing: .08em; }
}
