/*
 * Bizzmatiq One Page Checkout
 * Forma nema svoju pozadinu, ubacuje se u kontejner landinga.
 * Boje: promenljive ispod (.bzq-theme-muski je osnova, .bzq-theme-zenski menja samo ono što je drugačije).
 */
.bzq-checkout {
  --bzq-text: #20261a;
  --bzq-label: #5f6755;
  --bzq-line: rgba(32, 38, 26, .14);
  --bzq-field: #efeee4;
  --bzq-ph: #b9b8a3;
  --bzq-icon: #b9b8a3;
  --bzq-brand: #4a563f;
  --bzq-focus: rgba(74, 86, 63, .14);
  --bzq-btn: #e0a43c;
  --bzq-btn-text: #20261a;
  --bzq-btn-shadow: 0 0 0 3.243px rgba(224, 164, 60, .4), 0 13.081px 36.325px rgba(224, 164, 60, .48);
  --bzq-btn2: rgba(224, 164, 60, .2);
  --bzq-btn2-border: rgba(224, 164, 60, .5);
  --bzq-btn2-text: #20261a;
  --bzq-btn2-shadow: 0 8px 24px rgba(224, 164, 60, .2);
  --bzq-danger: #c4452c;
  --bzq-cream: #fbfaf4;

  position: relative;
  width: 100%;
  background: transparent;
  color: var(--bzq-text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.bzq-checkout {
  --bzq-tile: #4a563f;        /* sličica dodatne ponude */
  --bzq-tile-text: #e4e3d4;
  --bzq-check: #e0a43c;       /* okvir kvadratića za čekiranje */
}
/* Ženski: dugmad u prašnjavo rozoj (nisu crvena, da ne liče na grešku) */
.bzq-theme-zenski {
  --bzq-focus: rgba(190, 146, 143, .25);
  --bzq-btn: #be928f;
  --bzq-btn-text: #ffffff;
  --bzq-btn-shadow: 0 0 0 3.243px rgba(190, 146, 143, .4), 0 13.081px 36.325px rgba(190, 146, 143, .48);
  --bzq-btn2: rgba(190, 146, 143, .63);
  --bzq-btn2-border: #805957;
  --bzq-btn2-text: #4a3130;
  --bzq-btn2-shadow: 0 13.081px 36.325px rgba(190, 146, 143, .48);
  --bzq-tile: #e5a9a5;
  --bzq-tile-text: #6e4f4d;
}
.bzq-checkout *, .bzq-checkout *::before, .bzq-checkout *::after { box-sizing: border-box; }
.bzq-checkout .bzq-ico { display: block; flex: none; }

.bzq-checkout .bzq-form { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; }

/* Zaglavlje */
.bzq-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bzq-line);
  font-weight: 700; font-size: 16px; line-height: 25.6px;
}
.bzq-head .bzq-ico { color: var(--bzq-brand); }

/* Polja */
.bzq-checkout .bzq-field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; font-weight: 400; }
.bzq-checkout .bzq-label {
  font-size: 13px; line-height: 20.8px; font-weight: 700;
  letter-spacing: .78px; text-transform: uppercase;
  color: var(--bzq-label);
}
.bzq-checkout .bzq-input {
  display: flex; align-items: center; gap: 8px;
  height: 52px;
  padding: 0 12px;
  background: var(--bzq-field);
  border: 1px solid var(--bzq-line);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
  cursor: text;
}
.bzq-checkout .bzq-input .bzq-ico { color: var(--bzq-icon); }
.bzq-checkout .bzq-input:focus-within,
.bzq-checkout .bzq-input.is-focus { border-color: var(--bzq-brand); box-shadow: 0 0 0 3px var(--bzq-focus); }
.bzq-checkout .bzq-input.is-invalid { border-color: var(--bzq-danger); box-shadow: 0 0 0 3px rgba(196, 69, 44, .12); }
.bzq-checkout .bzq-input input {
  flex: 1; min-width: 0;
  height: 100%;
  margin: 0; padding: 0;
  border: 0; outline: 0; box-shadow: none;
  background: transparent;
  font: inherit; font-size: 16px; line-height: normal;
  color: var(--bzq-text);
  -webkit-appearance: none; appearance: none;
}
.bzq-checkout .bzq-input input::placeholder { color: var(--bzq-ph); opacity: 1; }
.bzq-checkout .bzq-stripe { flex: 1; min-width: 0; display: block; }
.bzq-checkout .bzq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bzq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Order bump */
.bzq-bumps { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.bzq-checkout .bzq-bump {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  margin: 0;
  padding: 12px;
  background: var(--bzq-field);
  border: 1px solid var(--bzq-line);
  border-radius: 16px;
  cursor: pointer;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.bzq-checkout .bzq-bump:hover { border-color: rgba(32, 38, 26, .28); }
.bzq-checkout .bzq-bump.is-checked { border-color: var(--bzq-brand); box-shadow: 0 0 0 1px var(--bzq-brand); }
.bzq-bump__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bzq-bump__img {
  position: relative;
  flex: none;
  width: 128px; height: 128px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bzq-tile);
  box-shadow: 0 8px 16px rgba(32, 38, 26, .15);
}
.bzq-checkout .bzq-bump__img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.bzq-checkout .bzq-bump__img.has-badge { justify-content: flex-start; padding-top: 12px; }
.bzq-checkout .bzq-bump__img.has-badge img { width: 96px; height: 80px; object-fit: contain; margin-top: auto; margin-bottom: 7px; }
.bzq-bump__badge {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500; font-size: 28px; line-height: 28px;
  color: var(--bzq-tile-text);
  white-space: nowrap;
}
.bzq-bump__badge b { font-weight: 500; }
.bzq-bump__badge small { font-weight: 400; font-size: 20px; line-height: 20px; }
.bzq-bump__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bzq-bump__title { font-size: 16px; line-height: 25.6px; font-weight: 700; color: var(--bzq-text); }
.bzq-bump__price {
  font-size: 13px; line-height: 20.8px; font-weight: 400;
  letter-spacing: .52px; text-transform: uppercase;
  color: var(--bzq-label);
}
.bzq-bump__price b { font-weight: 600; }
.bzq-bump__price s { margin-left: 6px; color: var(--bzq-label); opacity: .8; }
.bzq-bump__desc { margin-top: 6px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--bzq-label); }
.bzq-bump__check {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--bzq-check);
  border-radius: 8px;
  color: var(--bzq-brand);
  box-shadow: 0 13px 18px rgba(224, 164, 60, .48);
}
/* bounce dok ponuda nije čekirana, da privuče pažnju */
.bzq-bump:not(.is-checked) .bzq-bump__img { animation: bzq-bounce 2.6s ease-in-out infinite; }
.bzq-bump:not(.is-checked) .bzq-bump__check { animation: bzq-bounce 2.6s ease-in-out .12s infinite; }
@keyframes bzq-bounce {
  0%, 62%, 100% { transform: translateY(0); }
  70% { transform: translateY(-7px); }
  78% { transform: translateY(0); }
  84% { transform: translateY(-3px); }
  90% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bzq-bump:not(.is-checked) .bzq-bump__img, .bzq-bump:not(.is-checked) .bzq-bump__check { animation: none; }
}
.bzq-bump__check .bzq-ico { opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.bzq-bump__input:checked ~ .bzq-bump__check { border-color: var(--bzq-brand); box-shadow: none; }
.bzq-bump__input:checked ~ .bzq-bump__check .bzq-ico { opacity: 1; transform: none; }
.bzq-bump__input:focus-visible ~ .bzq-bump__check { outline: 3px solid var(--bzq-focus); outline-offset: 2px; }

/* Dugmad */
.bzq-actions { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 32px 0 0; }
.bzq-checkout .bzq-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 1000px;
  font: inherit;
  font-size: 16px; line-height: 25.6px; font-weight: 700;
  letter-spacing: .64px; text-transform: uppercase;
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform .15s, filter .15s, opacity .15s;
}
.bzq-checkout .bzq-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.bzq-checkout .bzq-btn:active { transform: translateY(0); }
.bzq-checkout .bzq-btn:disabled { cursor: default; opacity: .7; transform: none; }
.bzq-checkout .bzq-btn--primary { background: var(--bzq-btn); color: var(--bzq-btn-text); box-shadow: var(--bzq-btn-shadow); }
.bzq-checkout .bzq-btn--secondary { background: var(--bzq-btn2); color: var(--bzq-btn2-text); border-color: var(--bzq-btn2-border); box-shadow: var(--bzq-btn2-shadow); }
.bzq-pay__sep { opacity: .55; }
.bzq-checkout .bzq-btn.is-busy > * { visibility: hidden; }
.bzq-checkout .bzq-btn.is-busy::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border: 3px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: bzq-spin .7s linear infinite;
}
@keyframes bzq-spin { to { transform: rotate(360deg); } }

/* Apple Pay / Google Pay (prvi, vide se samo kad su dostupni).
   Kontejner nije display:none dok se učitava, jer tada Stripe ne prikaže dugmad. */
.bzq-express-wrap { position: relative; visibility: hidden; height: 0; overflow: hidden; margin-bottom: -16px; }
.bzq-express-wrap.is-ready { visibility: visible; height: auto; overflow: visible; margin-bottom: 0; }
.bzq-express { min-height: 55px; }
.bzq-checkout .bzq-or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bzq-label);
}
.bzq-or::before, .bzq-or::after { content: ""; flex: 1; height: 1px; background: var(--bzq-line); }
.bzq-checkout .bzq-express-hint { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff6e0; border: 1px dashed #e0a43c; font-size: 12.5px; line-height: 1.45; color: #6b4f12; }
.bzq-checkout .bzq-pp-ico { display: block; width: 26px; height: 26px; margin: 0 4px 0 0; }
.bzq-paypal { min-height: 55px; position: relative; z-index: 0; }
.bzq-paypal[hidden] { display: none; }

/* Rok i napomena */
.bzq-checkout .bzq-deadline {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0; padding-top: 8px;
  font-size: 16px; line-height: 25.6px; font-weight: 600; color: var(--bzq-text);
  text-align: center;
}
.bzq-dot {
  flex: none;
  width: 12px; height: 12px; border-radius: 6px;
  background: var(--bzq-danger);
  box-shadow: 0 0 0 3px var(--bzq-cream), 0 0 0 4.6px rgba(196, 69, 44, .6);
  animation: bzq-pulse 2s ease-in-out infinite;
}
@keyframes bzq-pulse { 50% { box-shadow: 0 0 0 3px var(--bzq-cream), 0 0 0 6px rgba(196, 69, 44, .25); } }
.bzq-checkout .bzq-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: -4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--bzq-label); opacity: .85;
}

/* Greška */
.bzq-checkout .bzq-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbe4df;
  border: 1px solid rgba(196, 69, 44, .25);
  color: #9b3320;
  font-size: 14.5px; line-height: 1.5;
}
.bzq-checkout .bzq-error[hidden] { display: none; }

.bzq-checkout.is-test::before {
  content: "TEST MOD";
  position: absolute; top: -10px; right: 0;
  padding: 2px 10px; border-radius: 99px;
  background: #ffb020; color: #1a1a1a; font: 700 11px/18px system-ui, sans-serif; letter-spacing: .05em;
  z-index: 2;
}
.bzq-checkout.is-busy .bzq-field, .bzq-checkout.is-busy .bzq-bumps { pointer-events: none; opacity: .75; }

/* Modal (uplatnica, PayPal) */
html.bzq-modal-open, html.bzq-modal-open body { overflow: hidden; }
.bzq-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bzq-modal[hidden] { display: none; }
.bzq-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 24, 16, .6); }
.bzq-modal__box {
  position: relative;
  width: 100%; max-width: 760px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--bzq-cream);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 32px 40px rgba(0, 0, 0, .3);
}
.bzq-modal__content { display: flex; flex-direction: column; gap: 16px; }
.bzq-checkout .bzq-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; padding: 0; margin: 0;
  border: 1px solid var(--bzq-line); border-radius: 50%;
  background: #fff; color: var(--bzq-text);
  font-size: 22px; line-height: 34px; text-align: center;
  cursor: pointer;
}
.bzq-checkout .bzq-modal__title {
  margin: 0; padding-right: 44px;
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400; font-size: 34px; line-height: 1.1;
  color: var(--bzq-text);
  text-transform: none; letter-spacing: 0;
}
.bzq-checkout .bzq-modal__lead { margin: 0; font-size: 16px; color: var(--bzq-label); }
.bzq-checkout .bzq-modal__lead strong { color: var(--bzq-text); }
.bzq-checkout .bzq-modal__note { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bzq-field); font-size: 14.5px; line-height: 1.55; }
.bzq-slip { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--bzq-line); background: #fff; }
.bzq-slip svg { display: block; width: 100%; height: auto; }
.bzq-bank-data { margin: 0; border: 1px solid var(--bzq-line); border-radius: 12px; overflow: hidden; background: #fff; }
.bzq-bank-data > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--bzq-line); align-items: center; }
.bzq-bank-data > div:first-child { border-top: 0; }
.bzq-bank-data dt { margin: 0; color: var(--bzq-label); font-size: 14px; font-weight: 500; }
.bzq-bank-data dd { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; word-break: break-word; }
.bzq-checkout .bzq-copy {
  flex: none; margin: 0; padding: 4px 12px;
  border: 1px solid var(--bzq-line); border-radius: 999px;
  background: var(--bzq-field); color: var(--bzq-text);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: 0;
}

@media (max-width: 560px) {
  .bzq-checkout .bzq-btn { padding: 14px 20px; font-size: 15px; }
  .bzq-bump__img { width: 88px; height: 88px; }
  .bzq-checkout .bzq-bump__img.has-badge { padding-top: 8px; }
  .bzq-checkout .bzq-bump__img.has-badge img { width: 66px; height: 55px; margin-bottom: 5px; }
  .bzq-bump__badge { font-size: 21px; line-height: 22px; }
  .bzq-bump__badge small { font-size: 15px; }
  .bzq-checkout .bzq-bump { gap: 12px; align-items: center; padding-right: 44px; }
  .bzq-bump__check { position: absolute; top: 10px; right: 10px; }
  .bzq-modal { padding: 0; align-items: flex-end; }
  .bzq-modal__box { max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 24px 16px 20px; }
  .bzq-checkout .bzq-modal__title { font-size: 28px; }
  .bzq-bank-data > div { grid-template-columns: 1fr; gap: 2px; }
}
