@font-face {
  font-family: UBFPopIran;
  src: url("assets/iransans.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: UBFPopDisplay;
  src: url("assets/kalameh.woff") format("woff");
  font-display: swap;
}
dialog.ubf-pop {
  --ubf-brand: #0fafa2;
  --ubf-action: #047b6e;
  --ubf-action-hover: #005d55;
  --ubf-ink: #182626;
  --ubf-secondary: #435b58;
  --ubf-hairline: #bddcd8;
  position: fixed;
  inset: 0;
  width: min(810px, calc(100% - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: transparent;
  color: var(--ubf-ink);
  font: 400 16px/1.55 UBFPopIran, Tahoma, sans-serif;
  text-align: start;
  color-scheme: light;
}
dialog.ubf-pop:not([open]), .ubf-pop [hidden] { display: none; }
dialog.ubf-pop[open] { display: block; }
dialog.ubf-pop::backdrop { background: rgba(11, 26, 26, .74); backdrop-filter: blur(4px); }
.ubf-pop *, .ubf-pop *::before, .ubf-pop *::after { box-sizing: border-box; }
.ubf-pop-layout {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 51% 49%;
  padding: 70px 0 20px;
}
.ubf-pop-paper {
  position: absolute;
  inset: 48px 6px 8px 25px;
  z-index: -2;
  overflow: hidden;
  border: 1px solid var(--ubf-hairline);
  border-radius: 10px 26px 10px 105px;
  background: linear-gradient(112deg, #ccebe6, #f2fbf8 55%, #fff 85%);
}
.ubf-pop-paper::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #cce5e1;
  border-radius: 6px 20px 6px 97px;
}
.ubf-pop-stage {
  position: absolute;
  inset: 7px auto 8px 8px;
  width: 46%;
  pointer-events: none;
}
.ubf-pop-arch {
  position: absolute;
  inset: 66px 0 0 26px;
  overflow: hidden;
  border: 1px solid #8ce2d4;
  border-radius: 52% 52% 18px 96px;
  background: radial-gradient(ellipse at 38% 28%, #72dfce 0%, var(--ubf-brand) 36%, #067e76 68%, #123e3d 100%);
}
.ubf-pop-arch::before, .ubf-pop-arch::after {
  position: absolute;
  content: "";
  left: -18%;
  width: 136%;
  border: 1px solid #e2fff675;
  border-radius: 50%;
  transform: rotate(-23deg);
}
.ubf-pop-arch::before { top: 19%; height: 58%; }
.ubf-pop-arch::after { top: 26%; height: 66%; opacity: .42; }
.ubf-pop-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 15%;
  bottom: 12%;
  width: 70%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #063d40a6, transparent 70%);
}
.ubf-pop img.ubf-pop-art {
  position: absolute;
  z-index: 2;
  top: 1%;
  left: 0;
  display: block;
  width: 102%;
  height: 88%;
  max-width: none;
  object-fit: contain;
  object-position: center top;
  transform: scale(-.95, .95);
  filter: drop-shadow(0 6px 5px #004a4d38);
}
.ubf-pop-copy, .ubf-pop-details {
  position: relative;
  grid-column: 1;
  padding-inline: clamp(22px,4vw,46px) 12px;
}
.ubf-pop-brand { display: flex; align-items: center; gap: 13px; }
.ubf-pop img.ubf-pop-logo { display: block; width: 106px; height: auto; object-fit: contain; }
.ubf-pop-event {
  padding-inline-start: 13px;
  border-inline-start: 1px solid var(--ubf-hairline);
  color: var(--ubf-secondary);
  font: 700 1.05rem/1.2 UBFPopDisplay, UBFPopIran, sans-serif;
}
.ubf-pop h2 {
  margin: 15px 0 0;
  color: var(--ubf-ink);
  font: 700 1rem/1.1 UBFPopDisplay, UBFPopIran, sans-serif;
  text-align: start;
}
.ubf-pop-amount { display: flex; align-items: baseline; gap: .27em; color: var(--ubf-action-hover); white-space: nowrap; font-size: 1.65rem; }
.ubf-pop-up-to { font-size: .78em; }
.ubf-pop-amount strong { color: var(--ubf-action); font: 700 clamp(5rem,9vw,7.3rem)/.96 UBFPopDisplay, UBFPopIran, sans-serif; }
.ubf-pop-unit { font-size: 1.25em; }
.ubf-pop-offer { display: block; margin-top: -.05em; font-size: clamp(2.2rem,4vw,3.2rem); }
.ubf-pop-details { padding-bottom: 12px; }
.ubf-pop-timer {
  display: grid;
  gap: 5px;
  margin: 13px 0 12px;
}
.ubf-pop-deadline { display: flex; align-items: center; gap: 8px; color: var(--ubf-secondary); font-size: .66rem; line-height: 1.4; }
.ubf-pop-deadline::after { content: ""; flex: 1; height: 1px; background: var(--ubf-hairline); }
.ubf-pop-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  padding: 5px 0 4px;
  border: 1px solid var(--ubf-hairline);
  border-radius: 6px;
  background: #eff8f6;
}
.ubf-pop-clock > span { position: relative; display: grid; justify-items: center; }
.ubf-pop-clock > span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: var(--ubf-hairline);
}
.ubf-pop-clock b { font: 700 2.55rem/1 UBFPopDisplay, UBFPopIran, sans-serif; color: var(--ubf-ink); font-variant-numeric: tabular-nums; transform: translateY(.095em); }
.ubf-pop-clock small { color: var(--ubf-secondary); font: 400 .68rem/1.4 UBFPopIran, sans-serif; }
.ubf-pop a.ubf-pop-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 9px 18px;
  border-radius: 5px;
  background: var(--ubf-action);
  color: white;
  text-decoration: none;
  font: 600 .95rem/1.5 UBFPopIran, Tahoma, sans-serif;
}
.ubf-pop a.ubf-pop-action:hover { background: var(--ubf-action-hover); color: white; }
.ubf-pop-arrow { position: relative; width: 22px; height: 1px; background: currentColor; }
.ubf-pop-arrow::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(45deg); }
.ubf-pop-choice { display: flex; align-items: center; width: fit-content; min-height: 34px; gap: 7px; margin: 4px 0 0; color: var(--ubf-secondary); font-size: .74rem; cursor: pointer; }
.ubf-pop-choice input { appearance: auto; margin: 0; width: 15px; height: 15px; accent-color: var(--ubf-action); cursor: pointer; }
.ubf-pop button.ubf-pop-close {
  position: absolute;
  inset: 0 6px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ubf-hairline);
  border-radius: 50%;
  background: var(--ubf-ink);
  color: white;
  cursor: pointer;
  font: 400 30px/1 Arial, sans-serif;
}
.ubf-pop button.ubf-pop-close:hover { background: var(--ubf-action-hover); }
.ubf-pop :is(button, a, input):focus-visible { outline: 2px solid var(--ubf-action-hover); outline-offset: 2px; }
.ubf-pop button.ubf-pop-close:focus-visible { outline-offset: -5px; outline-color: white; }
@media (max-width: 600px) {
  dialog.ubf-pop { width: min(425px, calc(100% - 14px)); }
  .ubf-pop-layout { grid-template-columns: 55% 45%; padding: 46px 0 12px; }
  .ubf-pop-paper { inset: 27px 4px 4px 7px; border-radius: 7px 22px 8px 39px; }
  .ubf-pop-paper::after { inset: 5px; border-radius: 4px 17px 4px 34px; }
  .ubf-pop-stage { position: relative; grid-row: 1; grid-column: 2; inset: auto; width: auto; margin: -41px 0 0; }
  .ubf-pop-arch { inset: 32px 1px 0 15px; border-radius: 50% 50% 5px 32px; }
  .ubf-pop-copy { grid-row: 1; padding: 8px 20px 6px 1px; }
  .ubf-pop-brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ubf-pop img.ubf-pop-logo { width: 84px; }
  .ubf-pop h2 { margin: 0 0 6px; }
  .ubf-pop-event { padding: 0; border: 0; font-size: clamp(.92rem,4.1vw,1.15rem); line-height: 1.1; }
  .ubf-pop-amount { font-size: clamp(1rem,4.1vw,1.2rem); gap: .17em; }
  .ubf-pop-amount strong { font-size: clamp(3.55rem,15.8vw,4.65rem); }
  .ubf-pop-offer { font-size: clamp(1.64rem,7.7vw,2.2rem); }
  .ubf-pop-details { grid-column: 1 / -1; padding: 0 20px 4px 23px; }
  .ubf-pop-timer { margin: 12px 0 10px; }
  .ubf-pop-clock b { font-size: 2.125rem; }
  .ubf-pop a.ubf-pop-action { min-height: 45px; font-size: .91rem; }
  .ubf-pop-choice { margin-top: 3px; }
  .ubf-pop button.ubf-pop-close { top: 0; right: 5px; }
}
