/* Kuponka modal — CLEAN (2025-10) */
:root{--card:#fff;--ink:#111827;--muted:#667085;--border:#e5e7eb;--overlay:rgba(17,24,39,.55);--green:#34a853;--green-ink:#fff;--shadow:0 18px 48px rgba(17,24,39,.2);--ring:#ccebd4}

/* Shell / overlay / dialog */
.kpnk-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:1000;opacity:0;pointer-events:none}
.kpnk-modal.is-open{display:flex;opacity:1;pointer-events:auto}
.kpnk-modal__overlay{position:absolute;inset:0;background:var(--overlay);backdrop-filter:saturate(120%) blur(4px);opacity:0;transition:opacity .18s ease-out}
.kpnk-modal.is-open .kpnk-modal__overlay{opacity:1}
.kpnk-modal__dialog{position:relative;background:rgba(255,255,255,.86);backdrop-filter:saturate(120%) blur(8px);color:var(--ink);width:min(720px,94vw);border-radius:18px;border:1px solid rgba(2,6,23,.06);box-shadow:0 10px 30px rgba(22,26,29,.12),0 2px 10px rgba(22,26,29,.06);padding:22px clamp(16px,3vw,28px);transform:translateY(8px);opacity:0;transition:transform .22s ease-out,opacity .22s ease-out}
.kpnk-modal.is-open .kpnk-modal__dialog{transform:none;opacity:1}

/* Close */
.kpnk-modal__close{position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:10px;border:1px solid var(--border);background:rgba(15,23,42,.06);cursor:pointer;line-height:0}
.kpnk-modal__close::before{content:"×";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:#111}
.kpnk-modal__close:hover{background:rgba(15,23,42,.1)}
.kpnk-modal__close:focus-visible{outline:0;box-shadow:0 0 0 3px var(--ring)}

/* Header */
.kpnk-modal__body{display:flex;flex-direction:column;gap:18px}
.kpnk-head{display:grid;grid-template-columns:48px 1fr;gap:14px;align-items:center}
.kpnk-head__logo img{width:48px;height:48px;object-fit:contain;border:1px solid var(--border);border-radius:12px;background:#fff;padding:6px}
#couponStore{color:#6b7280;font:600 .95rem/1.2 system-ui}
.kpnk-title{margin:2px 0 0;font-weight:800;font-size:clamp(18px,2.2vw,22px);line-height:1.3;word-break:break-word}

/* Row: chip/pill + actions */
.kpnk-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:4px}
.kpnk-chip{background:linear-gradient(180deg,#f8fafc,#f1f5f9);border:1.5px dashed #cbd5e1;border-radius:14px;padding:10px 14px;box-shadow:0 2px 10px rgba(20,83,45,.06)}
.kpnk-chip__code{font:800 22px/1.1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.1em;color:#0f172a;outline:0}
#couponCode.is-highlight{animation:kpnkPulse .9s ease}
@keyframes kpnkPulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.35)}100%{box-shadow:0 0 0 14px rgba(34,197,94,0)}}

.kpnk-actions{display:flex;gap:12px;width:100%}
.kpnk-btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:14px 18px;border-radius:12px;border:1.5px solid transparent;font:700 1rem/1 system-ui;cursor:pointer;transition:transform .06s,filter .2s,background .2s}
.kpnk-btn:active{transform:translateY(1px)}
.kpnk-btn--green{background:linear-gradient(180deg,#22c55e,#16a34a);color:var(--green-ink)}
.kpnk-btn--green:hover{filter:brightness(1.05)}
.kpnk-btn--green.is-copied{background:#b8e3b2 !important;color:#1f3d12 !important;border-color:#b8e3b2 !important;filter:none !important}
.kpnk-btn--hollow{background:#fff;border-color:#d1fae5;color:#065f46}
.kpnk-btn--hollow:hover{background:#ecfdf5}

/* Divider */
.kpnk-divider{height:1px;border:0;background:linear-gradient(90deg,#e5e7eb,transparent);margin:10px 0}

/* Terms */
.kpnk-terms{display:flex;flex-direction:column;gap:8px}
.kpnk-terms__toggle{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;color:#111827;font-weight:700;cursor:pointer;padding:4px 0}
.kpnk-terms__toggle svg{transition:transform .2s}
.kpnk-terms__toggle.is-open svg{transform:rotate(180deg)}
.kpnk-terms__panel{font-size:14px;color:#374151}

/* Survey */
.kpnk-survey{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.kpnk-meta{font-size:13px;color:var(--muted)}
.kpnk-survey__btns{display:flex;gap:8px}
.kpnk-vote{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;font-weight:700}
.kpnk-vote--yes.is-on{background:#ecfdf5;border-color:#a7f3d0}
.kpnk-vote--no.is-on{background:#fef2f2;border-color:#fecaca}

/* Deal helpers */
.kpnk-info{display:none}
.kpnk-note{display:flex;align-items:center;gap:10px;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;border-radius:12px;padding:10px 12px;font-weight:600}
.kpnk-note::before{content:"";flex:0 0 18px;width:18px;height:18px;background:currentColor;-webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20Zm0 7.5a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5Zm1.4 8h-2.8v-1.8h0.8V12h-0.8v-1.8h2.8V16.7h0.8V17.5Z"/></svg>') center/18px 18px no-repeat;mask:var(--mask)}
.kpnk-modal.is-deal .kpnk-info{display:flex}
.kpnk-modal.is-deal .js-kpnk-copy{display:none !important}
.kpnk-modal.is-deal .kpnk-actions{margin:8px 0;gap:12px}

/* Validity */
.kpnk-validity{font-weight:600;margin-top:4px;color:#1f6c2f}
.kpnk-validity.invalid{color:#b91c1c}

/* Mobile */
@media (max-width:560px){
  .kpnk-modal__dialog{width:calc(100% - 20px);margin:10px auto}
  .kpnk-head{grid-template-columns:44px 1fr}
  .kpnk-head__logo img{width:44px;height:44px}
  .kpnk-title{font-size:1rem;line-height:1.25}
  .kpnk-chip{width:100%;text-align:center}
  .kpnk-actions{flex-direction:column}
  .kpnk-actions .kpnk-btn{width:100%}
  .kpnk-modal.is-deal .kpnk-actions #btnOpenAff{width:100%;min-height:48px}
}

/* Desktop inline layout */
@media (min-width:768px){
  .kpnk-row{flex-wrap:nowrap}
  .kpnk-chip{flex:0 0 auto;white-space:nowrap}
  .kpnk-actions{margin-left:auto;flex:0 0 auto}
  .kpnk-actions .kpnk-btn{min-width:140px;min-height:56px}
  .kpnk-modal.is-deal .kpnk-note{white-space:nowrap}
  .kpnk-modal.is-deal .kpnk-actions #btnOpenAff{flex:0 0 auto;min-width:220px;min-height:56px}
}



/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .kpnk-modal__overlay,.kpnk-modal__dialog{transition:none !important}
}

/* --- Kuponka modal: minimal hot-fix patch (safe to append) --- */

/* 1) Hide “Zkopírováno” inside the code chip (keep the Copy button text) */
.kpnk-chip .kpnk-chip__tag,
#codeStatus { display:none !important; }

/* 2) Deal modal: desktop button should NOT stretch full width */
@media (min-width: 768px){
  .kpnk-modal.is-deal .kpnk-actions{
    display:flex !important;
    align-items:center;
    gap:12px;
    flex-wrap:nowrap;
    margin:8px 0;               /* 3) smaller margins */
  }
  .kpnk-modal.is-deal .kpnk-actions #btnOpenAff{
    flex:0 0 auto !important;
    width:auto !important;
    min-width:220px;            /* same feel as coupon buttons */
    min-height:48px;
  }
}

/* Mobile: keep the deal button full-width */
@media (max-width: 767.98px){
  .kpnk-modal.is-deal .kpnk-actions #btnOpenAff{
    flex:1 1 auto;
    width:100%;
  }
}





/* --- Fix: kpnk-note icon sizing/alignment --- */
.kpnk-note{
  display:flex;
  align-items:center;
  gap:10px;
  line-height:1.25;
  white-space:nowrap;
}

.kpnk-note::before{
  content:"";
  display:inline-block;
  width:18px;
  height:18px;
  min-width:18px;
  border-radius:999px;
  background:#EAF7EF;                 /* light halo */
  box-shadow:inset 0 0 0 1px rgba(30,142,62,.15);
  background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<path fill='%231e8e3e' d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 6h-2V6h2v2zm0 8h-2V9h2v7z'/>\
</svg>");
  background-repeat:no-repeat;
  background-position:center;
  background-size:12px 12px;
}

/* Ensure compact spacing on desktop deal variant too */
@media (min-width:768px){
  .kpnk-modal.is-deal .kpnk-note{ margin:4px 0; }
}




/* --- Fix: vote buttons pointer + hover --- */
#voteYes, #voteNo,
.kpnk-vote button,
.kpnk-vote .kpnk-chip {
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

#voteYes:hover, #voteNo:hover,
.kpnk-vote button:hover,
.kpnk-vote .kpnk-chip:hover {
  transform: translateY(-1px);
  filter: brightness(.96);
}

#voteYes.is-on, #voteNo.is-on,
.kpnk-vote .kpnk-chip.is-on {
  box-shadow: 0 0 0 2px rgba(30,142,62,.15) inset;
}

/* safety: if disabled, don’t show pointer */
#voteYes[disabled], #voteNo[disabled],
.kpnk-vote button[disabled],
.kpnk-vote .kpnk-chip[aria-disabled="true"] {
  cursor: not-allowed;
  filter: none;
  transform: none;
  opacity: .6;
}











