/* ================= Faqet ligjore në dyqan (public/js/legal-shop.js), për të dy dizajnet =================
   Fundi i faqes (lidhjet e politikave + subjekti + logot e kartave), kutia e pranimit në porosi, njoftimi për cookies. */

/* ---------- Fundi i faqes ---------- */
.foot-legal { padding-bottom: 16px; }
.foot-legal-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0 0 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
footer .foot-legal-nav a, .foot-legal-nav a { display: inline-block; margin: 0; padding: 7px 0; font-size: 14.5px; color: #efe7de; }
.foot-legal-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer .foot-legal p, .foot-legal p { max-width: none; margin: 0 0 8px; font-size: 13.5px; line-height: 1.55; }
.foot-legal-id { color: #d6ccc2; overflow-wrap: anywhere; }
/* Logot e kartave (Visa, Mastercard…) + foto zyrtare nga banka, kur është ngarkuar */
footer .foot-legal .foot-legal-cards, .foot-legal-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.foot-legal-cards[hidden] { display: none; }
.foot-legal-cards .cards-lbl { font-size: 13px; letter-spacing: .02em; color: #d6ccc2; }
.foot-legal-cards .cards-row { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-legal-cards .card-b { display: block; width: 48px; height: 32px; border-radius: 4px; }
.foot-legal-cards .cards-kit { max-height: 40px; width: auto; background: #fff; padding: 5px 9px; border-radius: 2px; }

/* ---------- Kutia e pranimit të kushteve (porosia) ---------- */
.consent { margin: 16px 0 4px; }
.consent-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; min-height: 44px; padding: 4px 0;
  font-size: 15px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: 0; color: inherit; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #141110; cursor: pointer; }
.consent-check a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.consent-check a:hover { text-decoration-thickness: 2px; }
.consent-err { margin: 6px 0 0; font-size: 14px; color: #8f2a1d; }
.consent-err:empty { display: none; }
.consent.invalid .consent-check input { outline: 2px solid #8f2a1d; outline-offset: 2px; }

/* ---------- Cookies: dritarja e pëlqimit ---------- */
.cookie-note { position: fixed; left: 16px; bottom: 16px; z-index: 95; max-width: 400px; display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px; background: #141110; color: #efe7de; border: 1px solid #36302c; box-shadow: 0 6px 24px rgba(20, 17, 16, .25);
  font-size: 14px; line-height: 1.5; }
.cookie-note p { margin: 0; }
.cookie-note .ck-t { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.cookie-note a, .ck-box a { color: inherit; text-decoration: underline; text-decoration-color: #d8ae96; text-underline-offset: 3px; }
.ck-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 4px; }
.cookie-ok, .cookie-alt, .cookie-link { min-height: 44px; padding: 8px 16px; border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-ok { background: #faf7f3; color: #141110; border: 1px solid #faf7f3; }
.cookie-ok:hover { background: #fff; }
.cookie-alt { background: transparent; color: #faf7f3; border: 1px solid #faf7f3; }
.cookie-alt:hover { background: rgba(255, 255, 255, .08); }
.cookie-link { background: none; border: 0; padding-left: 4px; padding-right: 4px; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.cookie-note :focus-visible, .ck-box :focus-visible { outline: 2px solid #d8ae96; outline-offset: 2px; }

/* ---------- Cookies: dritarja "Cilësimet e cookies" ---------- */
.ck-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 17, 16, .55); }
.ck-box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; background: #faf7f3; color: #141110;
  border: 1px solid #e3dad1; box-shadow: 0 12px 40px rgba(20, 17, 16, .3); font-size: 15px; line-height: 1.55; }
.ck-box h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.ck-intro { margin: 0 0 14px; color: #5a4f48; }
.ck-row { padding: 12px 0; border-top: 1px solid #e3dad1; }
.ck-row-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ck-row p { margin: 4px 0 0; font-size: 14px; color: #5a4f48; }
.ck-row code { font-size: 13px; }
.ck-always { font-size: 13px; color: #2f6b3a; font-weight: 700; white-space: nowrap; }
.ck-switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex: none; cursor: pointer; }
.ck-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ck-switch span { position: absolute; inset: 0; border-radius: 14px; background: #c9bfb6; transition: background .2s; pointer-events: none; }
.ck-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ck-switch input:checked + span { background: #141110; }
.ck-switch input:checked + span::after { transform: translateX(20px); }
.ck-switch input:focus-visible + span { outline: 2px solid #9a6a52; outline-offset: 2px; }
.ck-box .ck-acts { margin-top: 16px; padding-top: 4px; }
.ck-box .cookie-ok { background: #141110; color: #faf7f3; border-color: #141110; }
.ck-box .cookie-ok:hover { background: #2b2421; }
.ck-box .cookie-alt { color: #141110; border-color: #141110; }
.ck-box .cookie-alt:hover { background: rgba(20, 17, 16, .06); }
@media (prefers-reduced-motion: reduce) { .ck-switch span, .ck-switch span::after { transition: none; } }
@media (max-width: 600px) {
  .cookie-note { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }
  .cookie-note .cookie-ok, .cookie-note .cookie-alt { flex: 1 1 100%; }
  .ck-box { padding: 20px 16px; }
}
@media print { .cookie-note, .ck-modal { display: none; } }
