/* Arsham Promo — styles inside the promotion's own shadow root (the page's styles do not reach here). */
:host { display: block; font-family: inherit; }
:host([data-bar-off]) .bar, .bar[hidden] { display: none; }
* { box-sizing: border-box; }

/* Top bar */
.bar { position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg, var(--apromo-bg1, #9c1c21), var(--apromo-bg2, #d9502c)); font-size: 14px; line-height: 1.3; font-weight: 500; }
.bar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-100%); animation: shine 5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.in { position: relative; max-width: 1180px; margin: 0 auto; min-height: 42px; padding: 7px 52px 7px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.tag { flex: none; padding: 4px 9px; border-radius: 999px; background: #f5bd4f; color: #2a1a00; font-weight: 800; font-size: 13px; line-height: 1; }
.txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cd { flex: none; font-weight: 700; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; padding: 5px 9px; border-radius: 8px; background: rgba(0,0,0,.22); }
.cd:empty { display: none; }
.go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--apromo-bg1, #9c1c21); font-weight: 700; font-size: 13px; line-height: 1; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.go:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-family: inherit; font-size: 24px; line-height: 1; cursor: pointer; opacity: .85; }
.x:hover, .x:focus-visible { background: rgba(0,0,0,.2); opacity: 1; }
:focus-visible { outline: 3px solid #f5bd4f; outline-offset: 2px; }
@media (max-width: 720px) {
  .in { justify-content: flex-start; gap: 8px; padding: 6px 44px 6px 12px; min-height: 40px; font-size: 13px; }
  .cd { display: none; }
  .txt { flex: 1; }
  .go { padding: 6px 11px; font-size: 12.5px; }
  .go .arrow { display: none; }
  .x { right: 4px; }
}
@media (max-width: 380px) { .tag { display: none; } }

/* Pop-up card */
.pop { position: fixed; right: 24px; bottom: 96px; z-index: 100001; width: 344px; max-width: calc(100vw - 32px); border-radius: 18px; overflow: hidden; background: #fff; color: #17191d; box-shadow: 0 30px 70px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.06); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); }
.pop.on { opacity: 1; transform: none; }
.pop[hidden] { display: none; }
.img { position: relative; display: block; aspect-ratio: 16 / 9; background: #e9e7e1; }
.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seal { position: absolute; left: 14px; bottom: -22px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe2a0, #f5bd4f 45%, #c98a12); color: #2a1a00; font-weight: 900; font-size: 18px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); transform: rotate(-10deg); }
.bd { padding: 30px 20px 18px; }
.bd.noimg { padding-top: 22px; }
h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 12px; color: #565b62; font-size: 14px; line-height: 1.5; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.row:empty { display: none; }
.code { display: inline-flex; align-items: center; gap: 8px; padding: 5px 5px 5px 12px; border: 2px dashed #c98a12; border-radius: 999px; font-size: 13px; }
.code b { font-size: 15px; letter-spacing: .08em; }
.code button { border: 0; border-radius: 999px; padding: 6px 10px; background: #e9e7e1; color: #17191d; font-family: inherit; font-size: 12px; line-height: 1; font-weight: 600; cursor: pointer; }
.pcd { font-size: 12.5px; color: #565b62; }
.pcd b { display: block; color: var(--apromo-bg1, #9c1c21); font-size: 16px; line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.acts { display: flex; align-items: center; gap: 12px; }
.cta { flex: 1; display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 12px 18px; border-radius: 999px; background: var(--apromo-bg1, #c4252b); color: #fff; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; transition: filter .2s, transform .2s; }
.cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.later { border: 0; background: none; color: #565b62; font-family: inherit; font-size: 13px; line-height: 1; cursor: pointer; padding: 10px 4px; text-decoration: underline; text-underline-offset: 3px; }
.px { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-family: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.bd.noimg ~ .px, .pop:not(:has(.img)) .px { background: rgba(0,0,0,.08); color: #17191d; }
.px:hover, .px:focus-visible { background: rgba(0,0,0,.7); color: #fff; }
@media (prefers-color-scheme: dark) {
  .pop { background: #1c2026; color: #eef1f5; }
  p, .pcd, .later { color: #a9b1bc; }
  .code button { background: #2c3139; color: #eef1f5; }
}
@media (max-width: 760px) {
  .pop { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .img { aspect-ratio: 21 / 9; }
}
@media (prefers-reduced-motion: reduce) { .bar::before { animation: none; } .pop { transition: opacity .2s; transform: none; } }
