/* Miniatúry šablón kartičky stáleho hosťa (templates/_settings_card_thumbs.html,
   looks.CARD_LOOKS). Používajú ich nastavenia (Vzhľad → Vernostná karta)
   aj objednávka (order.html, „Vzhľad kartičky“). */

/* klasická kartička */
.cl-mock { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 10px; background: #FCF9F2; }
.cl-hello { height: 7px; width: 62%; margin: 2px auto 2px; border-radius: 4px; background: #34302d; opacity: .75; }
.cl-box {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px;
    border-radius: 9px; background: #fff; border: 1.5px dashed #e0292b;
}
.cl-border-none .cl-box { border-color: transparent; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4); }
.cl-corner-on .cl-box { padding-top: 22px; }
.cl-name-on .cl-box { padding-bottom: 24px; }
.cl-line-sm { width: 46%; height: 4px; opacity: .7; }
.cl-center { align-self: center; }
.cl-out { align-self: center; font: 700 8.5px/1 inherit; color: #8a8178; }
.cl-out-name { align-self: flex-start; padding-left: 6px; color: #34302d; letter-spacing: .08em; font-weight: 800; }
.cl-gap { height: 10px; }
/* mini Wallet karta v šablónach */
.cl-pass {
    display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; min-height: 118px;
    background: var(--clp-bg); color: var(--clp-ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}
/* šablóna s fotkou na pozadí celej karty (bg_preset) a pruhmi pod textom */
.cl-pass.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.clp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
/* spodná časť mini karty (polia, QR, meno) ako jeden blok */
.clp-panel-bottom { display: flex; flex-direction: column; gap: 6px; }
/* dva matné panely pri fotke (ako na karte hosťa): hore a dole, mäkký vnútorný okraj */
.cl-pass.has-bg:not(.fade) :is(.clp-head, .clp-panel-bottom) { position: relative; }
.cl-pass.has-bg:not(.fade) :is(.clp-head, .clp-panel-bottom)::before {
    content: ""; position: absolute; z-index: -1;
    background: color-mix(in srgb, var(--clp-bg) 50%, transparent);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.cl-pass.has-bg:not(.fade) .clp-head::before {
    inset: -8px -8px -10px;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 10px), transparent); mask-image: linear-gradient(#000 calc(100% - 10px), transparent);
}
.cl-pass.has-bg:not(.fade) .clp-panel-bottom::before {
    inset: -10px -8px -8px;
    -webkit-mask-image: linear-gradient(transparent, #000 10px); mask-image: linear-gradient(transparent, #000 10px);
}
.clp-fields.clp-bottom { justify-content: flex-start; }
.clp-fields.clp-grid { justify-content: flex-start; gap: 10px; }
.clp-head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.clp-badge { width: 26px; height: 6px; border-radius: 999px; background: var(--clp-label); }
/* prechod fotky do farby karty (bg_style = fade) */
.cl-pass.fade .clp-bg { -webkit-mask-image: linear-gradient(#000 0 30%, transparent 58%); mask-image: linear-gradient(#000 0 30%, transparent 58%); }
.clp-strip.clp-clear { background: transparent; }
.clp-head, .clp-fields { display: flex; justify-content: space-between; align-items: flex-end; }
.clp-logo { width: 34px; height: 9px; border-radius: 3px; background: var(--clp-ink); opacity: .8; }
.clp-logo-img { max-height: 18px; max-width: 55px; object-fit: contain; }
.clp-field { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.clp-field i { width: 22px; height: 3px; border-radius: 2px; background: var(--clp-label); }
.clp-field b { font: 600 9px/1 inherit; color: var(--clp-ink); }
.clp-left { align-items: flex-start; }
.clp-strip {
    height: 44px; border-radius: 6px; overflow: hidden; display: grid; place-items: center;
    background: var(--clp-strip);
}
.clp-strip { position: relative; }
.clp-strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clp-strip .cl-dots { position: relative; }
.clp-strip { overflow: hidden; }
.clp-strip .cl-dots.on-img i:not(.on) { background: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .9); }
.clp-strip b { font: 800 13px/1 inherit; color: var(--clp-label); }
.clp-strip .cl-dots i { width: 9px; height: 9px; }
.clp-strip .cl-dots { grid-template-columns: repeat(4, 9px); gap: 4px; }
.clp-strip .cl-dots i.on { background: var(--clp-label); border-color: var(--clp-label); }
.clp-qr { align-self: center; width: 18px; height: 18px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px #222; }
/* mini karta v rozložení Google Wallet: logo v kruhu, nadpis, QR, polia, pás dole */
.cl-gpass { align-items: center; padding: 8px 8px 0; overflow: hidden; gap: 5px; }
.clg-logo { width: 18px; height: 18px; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center; }
.clg-logo img { width: 75%; height: 75%; object-fit: contain; }
.clg-title { width: 56%; height: 6px; border-radius: 3px; background: var(--clp-ink); }
.clg-grid { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; }
.clg-grid i { height: 3px; border-radius: 2px; background: var(--clp-ink); opacity: .7; }
.clg-grid i:nth-child(even) { justify-self: end; width: 70%; }
.cl-gpass .clp-strip { align-self: stretch; margin: 2px -8px 0; height: 36px; border-radius: 0; }
/* guličky, čiarky textu, počet, meno */
.cl-dots { display: grid; grid-template-columns: repeat(4, 12px); gap: 5px; }
.cl-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #d9d2c9; }
.cl-dots i.on { background: #e0292b; border-color: #e0292b; }
.cl-line { height: 5px; width: 70%; border-radius: 3px; background: #cfc8be; }
.cl-corner { position: absolute; top: 4px; right: 7px; font: 700 8.5px/1 inherit; color: #8a8178; }
.cl-name { position: absolute; left: 8px; bottom: 4px; font: 800 8.5px/1 inherit; letter-spacing: .08em; color: #34302d; }
/* mriežka polí v kartičke (šablóny Mriežka) */
.cl-grid { display: flex; gap: 4px; margin: 5px 6px 0; }
.cl-grid i { flex: 1; height: 3px; border-radius: 2px; background: #9b938b; opacity: .7; }
/* členský QR v kartičke (šablóny S QR kódom, Členská) */
.cl-qr { display: block; margin: 5px auto 0; width: 16px; height: 16px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px #222; }
