/* Rychlý potisk /potisk: jedna fotka na kartu. Mobil první, od 900 px náhled vlevo a kroky vpravo. */

.potisk-stranka { padding-top: var(--m-5); padding-bottom: var(--m-6); }
.potisk-tlumene { color: var(--inkoust-2); font-weight: 400; }

.potisk { display: grid; gap: 20px; }
.potisk__nahled { position: sticky; top: var(--hlava-v); z-index: 5; margin: 0 -16px; padding: 10px 16px 12px; background: rgba(255, 250, 242, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linka); }
.potisk-karty { display: grid; grid-template-columns: 3fr 1.2fr; gap: 12px; align-items: end; }
.potisk-karta { margin: 0; }
.potisk-karta[hidden], .potisk-sada[hidden] { display: none; }
.potisk-karty:has(.potisk-karta--rub[hidden]) { grid-template-columns: minmax(0, 360px); justify-content: center; }
.potisk-karta figcaption { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--inkoust-2); text-align: center; }
.potisk-karta__plocha { position: relative; width: min(100%, calc(62vh * var(--pomer-cislo, 1.585))); margin-inline: auto; aspect-ratio: var(--pomer, 85.6 / 54); border-radius: var(--zaobleni, 3.7% / 5.9%); background: #fff; box-shadow: var(--stin-m); overflow: hidden; -webkit-mask: var(--maska, none) center / 100% 100% no-repeat; mask: var(--maska, none) center / 100% 100% no-repeat; }
.potisk-karta__plocha canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.potisk-karta__plocha canvas[tabindex="0"] { cursor: grab; }
.potisk-karta__plocha--tah canvas { cursor: grabbing; }
.potisk-karta__plocha canvas:focus-visible { outline: 3px solid var(--akcent); outline-offset: -3px; }
.potisk-karta__prazdna { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 12px; text-align: center; font-weight: 800; color: var(--inkoust-2); background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fff7ea 12px, #fff7ea 24px); pointer-events: none; }
.potisk-karta__prazdna[hidden] { display: none; }
.potisk-orez { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.potisk-orez[hidden] { display: none; }
.potisk-orez__zoom { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; font-weight: 800; font-size: 15px; }
.potisk-orez__zoom input { flex: 1; accent-color: var(--akcent); }
.potisk-orez__tip { flex: 1 0 100%; margin: 0; font-size: 13px; color: var(--inkoust-2); }
@media (max-width: 899.98px) {
  .potisk-orez { margin-top: 6px; }
  .potisk-orez__tip { display: none; }
  .potisk-karta figcaption { margin-top: 2px; font-size: 12px; }
}

.potisk-krok { padding: 18px 16px; border-radius: var(--radius); background: var(--bila); box-shadow: var(--stin-m); }
.potisk-krok + .potisk-krok { margin-top: 16px; }
.potisk-krok__nadpis { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 14px; }
.potisk-krok__cislo { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--slunce); font-size: 19px; }

.potisk-nahrani__plocha { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 14px; border: 2px dashed var(--linka); border-radius: var(--radius-m); background: var(--papir); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.potisk-nahrani__plocha:hover, .potisk-nahrani--pretahovani .potisk-nahrani__plocha { border-color: var(--akcent); background: #fff4ee; }
#potisk-foto:focus-visible + .potisk-nahrani__plocha { outline: 3px solid var(--akcent); outline-offset: 2px; }
.potisk-nahrani__text { font: 800 19px var(--pismo); color: var(--akcent-tmavy); }
.potisk-nahrani__napoveda { font-size: 14px; color: var(--inkoust-2); }
.potisk-nahrani__stav { margin: 8px 0 0; font-weight: 700; }
.potisk-nahrani__stav:empty { display: none; }
.potisk-nahrani--nacita .potisk-nahrani__stav::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 2px solid var(--akcent); border-right-color: transparent; border-radius: 50%; animation: tocit .7s linear infinite; vertical-align: -2px; }

.potisk-styly { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.potisk-styl { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 5px; border: 2px solid var(--linka); border-radius: 14px; background: var(--bila); cursor: pointer; transition: border-color .15s, transform .15s; }
.potisk-styl:hover { transform: translateY(-2px); border-color: var(--slunce); }
.potisk-styl:has(input:checked) { border-color: var(--akcent); box-shadow: 0 0 0 2px var(--akcent); }
.potisk-styl:has(input:focus-visible) { outline: 3px solid var(--nebe); outline-offset: 2px; }
.potisk-styl__nahled { display: block; width: 100%; height: auto; aspect-ratio: var(--pomer, 85.6 / 54); border-radius: 6px; background: repeating-linear-gradient(135deg, #f6efe3, #f6efe3 8px, #fbf6ee 8px, #fbf6ee 16px); }
.potisk-styl__nazev { font-size: 14px; font-weight: 800; text-align: center; line-height: 1.2; }

.potisk-parametry { margin-top: 14px; padding: 14px; border-radius: var(--radius-m); background: var(--papir); display: flex; flex-direction: column; gap: 12px; }
.potisk-parametry[hidden] { display: none; }
.potisk-parametry__popis { margin: 0; color: var(--inkoust-2); }
.potisk-parametry__nadpis { margin: 0 0 -6px; font-weight: 800; }
.potisk-parametry__stav { margin: 0; font-weight: 700; }
.potisk-parametry__stav:empty { display: none; }
.potisk-parametry__stav--bezi::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 2px solid var(--akcent); border-right-color: transparent; border-radius: 50%; animation: tocit .7s linear infinite; vertical-align: -2px; }
.potisk-parametry__stav--chyba { color: var(--varovani); }
.potisk-parametry .prepinac { align-self: flex-start; flex-wrap: wrap; }
.potisk-parametry > .tlacitko { align-self: flex-start; }

.potisk-posuvnik { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.potisk-posuvnik label { font-weight: 800; }
.potisk-posuvnik input { grid-column: 1 / -1; grid-row: 2; width: 100%; accent-color: var(--akcent); }
.potisk-posuvnik__hodnota { font-weight: 700; color: var(--inkoust-2); font-size: 15px; }

.potisk-palety { display: flex; flex-wrap: wrap; gap: 8px; }
.potisk-paleta { display: inline-flex; align-items: stretch; height: 34px; min-width: 64px; padding: 3px; border: 2px solid var(--linka); border-radius: 10px; background: var(--bila); cursor: pointer; }
.potisk-paleta[aria-pressed="true"] { border-color: var(--inkoust); }
.potisk-paleta__barva { flex: 1; min-width: 14px; }
.potisk-paleta__barva:first-child { border-radius: 6px 0 0 6px; }
.potisk-paleta__barva:last-child { border-radius: 0 6px 6px 0; }
.potisk-paleta__text { align-self: center; padding: 0 8px; font: 800 14px var(--pismo); color: var(--inkoust); }
.potisk-barvy-stylu { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.potisk-barva { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.potisk-barva input { width: 40px; height: 32px; padding: 2px; border: 2px solid var(--linka); border-radius: 8px; background: var(--bila); cursor: pointer; }

.potisk-barvy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.potisk-barvy__vzor { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(34, 34, 59, .18); cursor: pointer; }
button.potisk-barvy__vzor[aria-pressed="true"], .potisk-barvy__volba:has(input:checked) .potisk-barvy__vzor { box-shadow: 0 0 0 3px var(--bila), 0 0 0 5px var(--inkoust); }
.potisk-barvy__volba:has(input:focus-visible) .potisk-barvy__vzor { outline: 3px solid var(--nebe); outline-offset: 4px; }
.potisk-doplnky { display: flex; flex-wrap: wrap; gap: 8px; }
.potisk-doplnek { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--linka); border-radius: 999px; background: var(--bila); font-weight: 700; cursor: pointer; }
.potisk-doplnek:has(input:checked) { border-color: var(--inkoust); background: #fff4d6; }
.potisk-doplnek input { accent-color: var(--akcent); }

.potisk-predvolby { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.potisk-predvolba { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--linka); border-radius: 12px; background: var(--bila); cursor: pointer; }
.potisk-predvolba:has(input:checked) { border-color: var(--akcent); box-shadow: 0 0 0 2px var(--akcent); }
.potisk-predvolba:has(input:focus-visible) { outline: 3px solid var(--nebe); outline-offset: 2px; }
.potisk-predvolba__ukazka { flex: 0 0 38px; font-size: 24px; line-height: 1; text-align: center; }
.potisk-predvolba__nazev { font-weight: 700; font-size: 15px; line-height: 1.2; }

.potisk-sada { margin: 0 0 16px; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.potisk-sada legend { margin-bottom: 8px; padding: 0; font-weight: 800; font-size: 18px; }
.potisk-rub { align-self: flex-start; }
.potisk-sada .pole { margin-bottom: 0; }
.potisk-produkty { display: flex; flex-direction: column; gap: 8px; }
.potisk-produkt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--linka); border-radius: 12px; background: var(--bila); cursor: pointer; }
.potisk-produkt:has(input:checked) { border-color: var(--akcent); box-shadow: 0 0 0 2px var(--akcent); }
.potisk-produkt:has(input:focus-visible) { outline: 3px solid var(--nebe); outline-offset: 2px; }
.potisk-produkt__tvar { flex: 0 0 48px; background: linear-gradient(135deg, var(--slunce), var(--akcent)); }
.potisk-produkt__text { display: flex; flex-direction: column; line-height: 1.3; }
.potisk-produkt__text span { font-size: 15px; color: var(--inkoust-2); }
.potisk-kontrola { margin: 0; font-size: 15px; color: var(--inkoust-2); }

@media (min-width: 560px) {
  .potisk-predvolby { grid-template-columns: repeat(4, 1fr); }
  .potisk-predvolba { flex-direction: column; text-align: center; gap: 4px; }
}

@media (min-width: 900px) {
  .potisk { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .potisk__nahled { top: calc(var(--hlava-v) + 16px); margin: 0; padding: var(--m-5); border-radius: var(--r-l); background: radial-gradient(circle at 50% 40%, var(--slunce-svetle), var(--papir-2) 75%); backdrop-filter: none; border: 0; }
  .potisk-karty { grid-template-columns: 1fr; gap: 16px; }
  .potisk-karta--rub { width: 58%; justify-self: center; }
  .potisk-krok { padding: 22px 24px; }
  .potisk-styly { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .potisk-styl, .potisk-nahrani__plocha { transition: none; }
  .potisk-styl:hover { transform: none; }
}
