html:has(.black-friday[open]) {
  overflow: hidden;
}

.black-friday {
  box-sizing: border-box;
  width: min(430px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: clamp(24px, 7vh, 38px) 16px;
  overflow: auto;
  border: 1px solid #ad864b;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 100%, #42121e 0%, #1e1016 48%, #100c10 82%);
  box-shadow: 0 24px 70px #0009, inset 0 0 0 5px #d1a96516;
  color: #fff5e3;
  font-family: system-ui, sans-serif;
  text-align: center;
}

.black-friday::backdrop {
  background: #0b070ac2;
}

.black-friday-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e8c27d66;
  border-radius: 50%;
  background: #ffffff0c;
  color: #fff5e3;
  font: 24px/1 system-ui, sans-serif;
  cursor: pointer;
}

.black-friday-logo {
  display: block;
  width: 120px;
  height: 68px;
  margin: 0 auto 18px;
}

.black-friday-title {
  margin: 0;
  color: #efd095;
  font-size: clamp(19px, 5vw, 24px);
  font-weight: 700;
}

.black-friday-offer {
  margin: 12px 0 8px;
  line-height: 1;
  font-size: 19px;
  font-weight: 700;
}

.black-friday-offer strong {
  display: block;
  margin-bottom: 4px;
  color: #f5d99c;
  font: 600 clamp(74px, 23vw, 112px)/.84 "Cormorant Garamond", Georgia, serif;
}

.black-friday-discount {
  display: inline-block;
  margin: 10px 0 0;
  padding: 8px 16px;
  border: 1px solid #e1a4a7;
  border-radius: 999px;
  background: #86192c;
  font-size: 15px;
  font-weight: 700;
}

.black-friday-details {
  margin: 16px 0;
  font-size: 14px;
}

.black-friday-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 46px;
  padding: 8px 20px;
  border-radius: 8px;
  background: #f1d297;
  color: #24121a;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.black-friday :is(button, a):focus-visible {
  outline: 2px solid #fff5e3;
  outline-offset: 3px;
}
