/* skijanjezlatibor.rs — account chip, coupon reminder and dialogs (nalog.js).
   Self-contained: every class starts with sz- and uses its own tokens, so it
   looks the same on the light home page and on the dark poklon.html. */

.sz-chip-wrap, .sz-coupon, .sz-dlg {
  --sz-navy: #003060;
  --sz-night: #021a36;
  --sz-blue: #1485c2;
  --sz-blue-d: #0f6fa3;
  --sz-ice: #e3f1fa;
  --sz-line: #d5e3ee;
  --sz-ink: #17293b;
  --sz-muted: #5b6f82;
  --sz-gold: #ffd166;
  --sz-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --sz-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-family: var(--sz-body);
}

/* ---------- Avatar ---------- */
.sz-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: inline-grid; place-items: center; }
.sz-av-txt { background: linear-gradient(140deg, #1aa0e0, #003060); color: #fff; font: 700 12px/1 var(--sz-head, "Montserrat", sans-serif); letter-spacing: .02em; }
.sz-av-l { width: 42px; height: 42px; font-size: 15px; }
.sz-av-xl { width: 84px; height: 84px; font-size: 28px; }

/* ---------- Header: gift link (signed out) and chip (signed in) ---------- */
.sz-gift-link svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sz-gift-link { color: #0f6fa3; }

.sz-chip-wrap { position: relative; flex: 0 0 auto; }
.sz-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .7rem .2rem .2rem; border: 1.5px solid var(--sz-line); border-radius: 999px;
  background: #fff; color: var(--sz-ink); font: 600 14px/1 var(--sz-body); cursor: pointer; }
.sz-chip:hover { border-color: var(--sz-blue); }
.sz-chip:focus-visible, .sz-btn:focus-visible, .sz-coupon-tab:focus-visible, .sz-x:focus-visible, .sz-menu a:focus-visible, .sz-menu button:focus-visible {
  outline: 3px solid #7fd0ff; outline-offset: 2px; }
.sz-chip-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sz-menu { position: absolute; inset-block-start: calc(100% + .5rem); inset-inline-end: 0; z-index: 60; min-width: 240px; padding: .4rem;
  background: #fff; color: var(--sz-ink); border-radius: 16px; box-shadow: 0 18px 50px rgba(2, 26, 54, .28), 0 0 0 1px rgba(2, 26, 54, .06); }
.sz-menu[hidden] { display: none; }
.sz-menu-who { display: flex; align-items: center; gap: .7rem; padding: .6rem .6rem .8rem; border-bottom: 1px solid var(--sz-line); margin-bottom: .3rem; }
.sz-menu-who strong { display: block; font: 700 15px/1.25 var(--sz-head); color: var(--sz-navy); }
.sz-menu-who span:not(.sz-av) { display: block; font-size: 12.5px; color: var(--sz-muted); word-break: break-all; }
.sz-menu > a, .sz-menu > button { display: block; width: 100%; padding: .65rem .7rem; border: 0; border-radius: 10px; background: none; color: inherit;
  font: 600 14.5px/1.2 var(--sz-body); text-align: start; text-decoration: none; cursor: pointer; }
.sz-menu > a:hover, .sz-menu > button:hover { background: var(--sz-ice); }

/* ---------- Coupon reminder, right edge ---------- */
.sz-coupon { position: fixed; inset-inline-end: 0; inset-block-start: 46%; z-index: 55; }
.sz-coupon-tab { display: grid; justify-items: center; gap: .15rem; padding: .7rem .55rem .75rem .65rem; border: 0; border-radius: 14px 0 0 14px;
  background: var(--sz-navy); color: #fff; cursor: pointer; box-shadow: -6px 8px 24px rgba(2, 26, 54, .35); transition: transform .2s ease; }
[dir="rtl"] .sz-coupon-tab { border-radius: 0 14px 14px 0; }
.sz-coupon-tab strong { font: 800 italic 19px/1 var(--sz-head); color: var(--sz-gold); }
.sz-coupon-tab span { font: 600 11px/1.15 var(--sz-body); max-width: 7ch; text-align: center; }
.sz-coupon-tab:hover { transform: translateX(-3px); }
.sz-coupon.is-open .sz-coupon-tab { visibility: hidden; }

.sz-coupon-card { position: absolute; inset-inline-end: .75rem; inset-block-start: 50%; transform: translateY(-50%); width: min(300px, calc(100vw - 1.5rem));
  padding: 1.25rem 1.25rem 1.1rem; border-radius: 20px; background: var(--sz-navy); color: #fff;
  box-shadow: 0 24px 60px rgba(2, 26, 54, .5), inset 0 0 0 1px rgba(191, 233, 255, .18); }
.sz-coupon-card[hidden] { display: none; }
.sz-coupon-eyebrow { font: 700 11.5px/1 var(--sz-head); letter-spacing: .14em; text-transform: uppercase; color: #9fd8f7; }
.sz-coupon-big { margin: .5rem 0 .8rem; font: 800 italic 22px/1.15 var(--sz-head); color: var(--sz-gold); }
.sz-coupon-code { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .7rem; padding: .55rem .8rem;
  border: 1.5px dashed rgba(191, 233, 255, .55); border-radius: 12px; font-size: 12.5px; color: #cfe9f8; }
.sz-coupon-code code { font: 700 16px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; color: #fff; }
.sz-coupon-how { margin: 0 0 .9rem; font-size: 13px; line-height: 1.45; color: #cfe9f8; }
.sz-coupon-card .sz-btn { width: 100%; }
.sz-coupon-card .sz-x { color: #cfe9f8; }

/* Note above the booking form's button on the home page */
.sz-form-coupon { margin: 0; padding: .6rem .8rem; border-radius: .5rem; background: #e3f1fa; color: #0b3d6b; font-size: 14px; }

/* ---------- Buttons ---------- */
.sz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.4rem; border: 1.5px solid transparent;
  border-radius: 999px; font: 700 15px/1.1 var(--sz-body); text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.sz-btn-primary { background: var(--sz-blue); color: #fff; }
.sz-btn-primary:hover { background: var(--sz-blue-d); }
.sz-btn-ghost { background: #fff; color: var(--sz-navy); border-color: var(--sz-line); }
.sz-btn-ghost:hover { border-color: var(--sz-blue); }
.sz-btn-s { min-height: 38px; padding: .45rem 1rem; font-size: 14px; }
.sz-btn:active { transform: translateY(1px); }
.sz-link { border: 0; background: none; padding: .3rem .2rem; color: var(--sz-muted); font: 600 13.5px/1 var(--sz-body); text-decoration: underline; cursor: pointer; }
.sz-x { position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none;
  color: var(--sz-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.sz-x:hover { background: rgba(127, 208, 255, .2); }

/* ---------- Dialogs ---------- */
.sz-dlg { width: min(94vw, 440px); max-height: min(92dvh, 860px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--sz-ink);
  box-shadow: 0 30px 90px rgba(1, 12, 28, .6); overflow: auto; }
.sz-dlg-wide { width: min(94vw, 540px); }
.sz-dlg::backdrop { background: rgba(1, 14, 32, .66); backdrop-filter: blur(5px); }
.sz-dlg[open] { animation: sz-rise .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes sz-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sz-dlg-body { position: relative; display: grid; gap: 1rem; padding: 1.5rem 1.5rem 1.4rem; }
.sz-dlg-head { display: flex; align-items: center; gap: .7rem; padding-inline-end: 2rem; }
.sz-dlg-title { margin: 0; font: 700 21px/1.2 var(--sz-head); color: var(--sz-navy); }
.sz-dlg-lead { margin: -.3rem 0 0; font-size: 14.5px; line-height: 1.5; color: var(--sz-muted); }
.sz-prov-ico { width: 30px; height: 30px; flex: 0 0 auto; color: #000; }
.sz-prov-ico svg { width: 100%; height: 100%; display: block; }
.sz-badge { margin-inline-start: auto; padding: .25rem .6rem; border-radius: 999px; background: #fff3cd; color: #7a5600; font: 700 11px/1 var(--sz-head);
  letter-spacing: .08em; text-transform: uppercase; }
.sz-dlg-head .sz-badge { margin-inline-end: -2rem; }

.sz-field { display: grid; gap: .35rem; min-width: 0; }
.sz-field > span, .sz-set legend { font: 700 13px/1.2 var(--sz-body); color: var(--sz-navy); }
.sz-field input { width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1.5px solid var(--sz-line); border-radius: 12px; background: #f7fbfe;
  color: var(--sz-ink); font: 400 16px/1.2 var(--sz-body); }
.sz-field input:focus { outline: 0; border-color: var(--sz-blue); box-shadow: 0 0 0 3px rgba(26, 160, 224, .22); background: #fff; }
.sz-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sz-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.sz-set legend { padding: 0; margin-bottom: .45rem; }
.sz-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.sz-pill { position: relative; cursor: pointer; }
.sz-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sz-pill span { display: block; padding: .5rem .9rem; border: 1.5px solid var(--sz-line); border-radius: 999px; background: #fff; font: 600 14px/1.1 var(--sz-body);
  color: var(--sz-ink); transition: background .12s ease, border-color .12s ease, color .12s ease; }
.sz-pill:hover span { border-color: var(--sz-blue); }
.sz-pill input:checked + span { background: var(--sz-navy); border-color: var(--sz-navy); color: #fff; }
.sz-pill input:focus-visible + span { outline: 3px solid #7fd0ff; outline-offset: 2px; }

.sz-photo { display: flex; align-items: center; gap: 1rem; }
.sz-photo-view { display: grid; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sz-line); }
.sz-photo-btns { display: grid; justify-items: start; gap: .2rem; }

.sz-err { margin: 0; padding: .6rem .8rem; border-radius: 10px; background: #fff0f0; color: #a12020; font-size: 14px; }
.sz-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; margin-top: .2rem; }

/* ---------- The gift page in a frame over the home page ---------- */
.sz-gift-pop { --h: min(94dvh, 940px); height: var(--h); width: min(96vw, calc(var(--h) * .684)); max-width: none; max-height: none; padding: 0; border: 0;
  border-radius: 26px; overflow: hidden; background: #021a36; box-shadow: 0 30px 100px rgba(1, 12, 28, .7), 0 0 0 1px rgba(191, 233, 255, .25); }
.sz-gift-pop::backdrop { background: rgba(1, 14, 32, .72); backdrop-filter: blur(6px); }
.sz-gift-pop[open] { animation: sz-rise .35s cubic-bezier(.2, .8, .2, 1); }
.sz-gift-pop iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) {
  .sz-gift-pop { width: 100vw; height: 100dvh; border-radius: 0; }
}

@media (max-width: 480px) {
  .sz-row { grid-template-columns: 1fr; }
  .sz-dlg-body { padding: 1.25rem 1.1rem 1.1rem; }
  .sz-actions .sz-btn { flex: 1 1 auto; }
  .sz-chip-name { display: none; }
  .sz-chip { padding: .2rem; }
  .sz-coupon-tab { padding: .55rem .4rem .6rem .5rem; }
  .sz-coupon-tab strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sz-dlg[open], .sz-gift-pop[open] { animation: none; }
  .sz-btn, .sz-coupon-tab { transition: none; }
}
