/** Shopify CDN: Minification failed

Line 20:15 Unexpected "{"
Line 20:24 Expected ":"
Line 20:31 Unexpected "{"
Line 22:15 Unexpected "{"
Line 22:24 Expected ":"
Line 32:15 Unexpected "{"
Line 32:24 Expected ":"
Line 40:15 Unexpected "{"
Line 40:24 Expected ":"
Line 51:15 Unexpected "{"
... and 127 more hidden warnings

**/
/* =========================================================
   PRODUCT TABS (KROK #1–3)
   ========================================================= */

#product-tabs-{{ section.id }} { margin-top: 24px; }

#product-tabs-{{ section.id }} .product-tabs__nav {
  position: relative;
  display: flex;
  justify-content: flex-start;
  gap: 56px;
  padding-bottom: 10px;
  border-bottom: none;
}

/* grey underline */
#product-tabs-{{ section.id }} .product-tabs__nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #e5e5e5;
}

#product-tabs-{{ section.id }} .product-tabs__tab {
  border: none;
  background: none;
  padding: 0 0 4px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#product-tabs-{{ section.id }} .product-tabs__tab:not(.is-active):hover {
  opacity: .75;
}

/* small label “KROK #1” */
#product-tabs-{{ section.id }} .product-tabs__step {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #b1b1b1;
  margin-bottom: 2px;
}

/* big title */
#product-tabs-{{ section.id }} .product-tabs__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #111;
}

/* individual underline */
#product-tabs-{{ section.id }} .product-tabs__tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 3px;
  background: transparent;
}

/* active tab */
#product-tabs-{{ section.id }} .product-tabs__tab.is-active::after { background: #111; }
#product-tabs-{{ section.id }} .product-tabs__tab.is-active .product-tabs__step { color: #d63b3b; }

/* panes */
#product-tabs-{{ section.id }} .product-tabs__pane {
  display: none;
  padding-top: 28px;
}

#product-tabs-{{ section.id }} .product-tabs__pane.is-active { display: block; }

/* responsive */
@media (max-width: 446px) {
  #product-tabs-{{ section.id }} .product-tabs__nav { gap: 20px; }
  #product-tabs-{{ section.id }} .product-tabs__tab::after {
    right: auto;
    width: 120px;
  }
}


/* =========================================================
   GENERIC STEP STYLES
   ========================================================= */

.step__group,
.step__inline-group {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.step__inline-group {
  display: flex;
  align-items: center;
}

.step__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #1F1E20;
}

.step__inline-group .step__label {
  width: 140px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.step-input {
  width: 100%;
  color: #000000;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
}

.step-input--small  { max-width: 140px; }
.step-input--medium { max-width: 220px; }
.step-input--tiny   { max-width: 70px; }

.step__inline { display: flex; align-items: center; gap: 8px; }
.step__inline--3 > * { flex: 1; }

.step__suffix {
  font-size: 11px;
  text-transform: uppercase;
  color: #8d8d8d;
}


/* =========================================================
   TOGGLE BUTTONS
   ========================================================= */

.step__toggle {
  display: flex;
  background: #f7f7f7;
  border-radius: 3px;
  overflow: hidden;
  gap: 0;
}

.step-toggle {
  flex: 1;
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  background: #f7f7f7;
  color: #8f8f8f;
}

/* avoid double border */
.step__toggle .step-toggle + .step-toggle { margin-left: -1px; }

/* active state */
.step-toggle.is-active {
  background: #fff;
  border-color: #111;
  color: #111;
  z-index: 1;
}


/* =========================================================
   FOOTER (PRICE + BUTTON)
   ========================================================= */

.step-footer { margin-top: 32px; }

.step-footer__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.step-footer__price-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #777;
}

.step-footer__price-number {
  font-size: 16px;
  font-weight: 700;
  color: #d63b3b;
}

.step-footer__button { margin-bottom: 10px; }
.step-footer__submit { width: 100%; }

.step-footer__shipping {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  text-transform: uppercase;
  font-size: 11px;
}

@media (max-width: 768px) {
  .step-footer { margin-left: 0; max-width: none; }
}


/* =========================================================
   DATE SELECTS
   ========================================================= */

.step-select-wrapper { position: relative; }

.step-select {
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  padding: 10px 32px 10px 12px;
  font-size: 13px;
  background: #f3f3f3;
  appearance: none;
  line-height: 1.2;
}

.step-select-pismeno { width: 180px; }
@media (max-width: 1023px) { .step-select-pismeno { width: 240px; } }
@media (max-width: 767px)  { .step-select-pismeno { width: 160px; } }

.step-select--small  { max-width: 80px; }
.step-select--medium { max-width: 160px; }

.step-select-wrapper::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px; height: 5px;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #555;
  pointer-events: none;
}


/* =========================================================
   DRAWING GRID (KROK #1)
   ========================================================= */

.drawing-grid {
  display: grid;
  grid-template-columns: repeat(5, 88px);
  gap: 18px 24px;
  margin: 10px 0 28px;
}

@media (max-width: 1024px) { .drawing-grid { grid-template-columns: repeat(4, 88px); } }
@media (max-width: 720px)  {
  .drawing-grid {
    grid-template-columns: repeat(3, 88px);
    column-gap: 18px;
  }
}

.drawing-option {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.drawing-option__image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px; height: 78px;
  border-radius: 999px;
  border: 1px solid #e1e1e1;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, border-width .15s, transform .15s, box-shadow .15s;
}

.drawing-option__image img { width: 100%; height: 100%; object-fit: cover; }

.drawing-option__label {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.drawing-option:hover .drawing-option__image {
  border-color: #b5b5b5;
  transform: translateY(-1px);
}

.drawing-option.is-active .drawing-option__image {
  border-color: #111;
  border-width: 2px;
  box-shadow: 0 0 0 1px #111 inset;
}

.drawing-option.is-active .drawing-option__label {
  color: #111;
  font-weight: 600;
}

.drawing-option__date{
  display:block;
  margin-top:4px;
  font-size:10px;
  line-height:1.2;
  opacity:.65;
  letter-spacing:.06em;
}

.drawing-missing-note {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  color: #666;
}

.drawing-missing-note a {
  font-weight: 600;
  color: #111;
  text-decoration: underline;
}

.drawing-missing-note a:hover { text-decoration: none; }


/* =========================================================
   COLOR SWATCHES
   ========================================================= */

.step__options--colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e2e2;
  cursor: pointer;
}

.color-swatch.is-active {
  border: 2px solid #111;
  box-shadow: 0 0 0 1px #111 inset;
}

.color-swatch:focus-visible { outline: none; }


/* =========================================================
   FRAME SWATCHES (VARIANTA)
   ========================================================= */

.step__options--frames {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.step-frame {
  width: 53px; height: 53px;
  border-radius: 999px;
  border: 1px solid #dedede;
  background: #f7f7f7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.step-frame img {
  object-fit: cover;
  border-radius: inherit;
}

.step-frame:hover { transform: translateY(-1px); }

.step-frame.is-active {
  border-color: #111;
  box-shadow: 0 0 0 2px #111 inset;
}

.step-frame--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}


/* =========================================================
   POSTER PREVIEW (left side)
   ========================================================= */

.product__outer-narozeni-miminka { gap: 7.8rem !important; }

/* Split background: left = grey (#f4f4f4), right = white */
.bg-split {
  background: linear-gradient(
    to right,
    #f4f4f4 0%,
    #f4f4f4 52%,
    #ffffff 52%,
    #ffffff 100%
  );
}

.product__media-wrapper { background-color: #f4f4f4; }

.poster-preview {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* outer frame PNG */
.poster-preview__frame {
  position: relative;
  padding: 0;
  margin: 16px;
  background-color: #ffffff;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Show frame PNG above inner background when a frame is selected */
.poster-preview--has-frame .poster-preview__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: inherit;
  background-repeat: inherit;
  background-position: inherit;
  pointer-events: none;
  z-index: 2;
}

/* fixed aspect ratio */
.poster-preview__inner {
  position: relative;
  width: 100%;
  padding-top: 133.3%;
  box-shadow: 0 0 20px -5px #c5c5c5;
}

/* white paper */
.poster-preview__paper {
  position: absolute;
  inset: 4% 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: 2px solid var(--poster-outline-color, #000);
}

/* light-grey block (image area) */
.poster-preview__image-bg {
  width: 100%;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px 26px;
  margin: 0 auto;
  background-color: var(--poster-inner-bg-color, transparent);
  position: relative;      /* ✅ anchor pro vrstvy */
  overflow: hidden;        /* ✅ nic neleze ven */
}

.poster-preview__image {
  display: block;
  height: 85%;
  width: auto;
}

.poster-preview__image-line-art {
  display: block;
  height: 85%;
  width: 85%;
}

.poster-preview__image-mazlicci {
  display: block;
  height: 85%;
  width: 60%;
}

.poster-preview__meta {
  margin: auto;
  text-align: center;
  font-family: var(--font-heading-family);
}

.poster-preview__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.poster-preview__details {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.poster-preview__name,
.poster-preview__details {
  color: var(--poster-text-color, #000);
}

.poster-preview__extra{
  margin-top: 6px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .7;
  color: var(--poster-text-color, #000);
}

.poster-preview__specs {
  margin: 0;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8d8d8d;
}

/* grey strip under the poster */
.poster-preview__specs-bar {
  width: 80%;
  margin: 18px auto 18px;
  padding: 10px 20px;
  text-align: center;
}

.poster-preview--layout-ramecek .poster-preview__paper {
  outline: none;
  inset: 4% 6% 0%;
}

/* Klasický layout – bg to outline */
.poster-preview--layout-klasicky .poster-preview__inner {
  background-color: var(--poster-inner-bg-color, transparent);
}

.poster-preview--layout-klasicky .poster-preview__image-bg { background-color: transparent; }

/* size scaling */
.poster-preview--size-30x40 .poster-preview__frame { transform: scale(.9); }
.poster-preview--size-40x50 .poster-preview__frame { transform: scale(1); }
.poster-preview--size-50x70 .poster-preview__frame { transform: scale(1.1); }


/* =========================================================
   DARK/LIGHT LOGIC (image + blend)
   ========================================================= */

.poster-preview .poster-preview__image { mix-blend-mode: multiply; }

.poster-preview.poster-preview--dark-bg .poster-preview__image {
  mix-blend-mode: normal !important;
  filter: invert(1);
}

.poster-preview.poster-preview--dark-bg .poster-preview__frame::after { filter: none !important; }


/* =========================================================
   SVG COLOR MODE (generic)
   ========================================================= */

.poster-preview__image-line-art {
  filter: none;
  transition: filter 0.2s ease;
}

.poster-preview--invert-svg .poster-preview__image-line-art { filter: invert(1); }


/* =========================================================
   PAMÁTKY – (ponecháno)
   ========================================================= */

.poster-preview--pamatky .poster-preview__image-line-art { width: 95%; }

/* CÍLENÍ: jen KLASICKÝ + jen Památky */
.poster-preview--layout-klasicky .poster-preview__meta--pamatky {
  margin-top: 0;
  transform: translateY(-24px);
  text-align: center;
}

.poster-preview--layout-klasicky .poster-preview__meta--pamatky .poster-preview__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: 8px;
  line-height: 1.15;
}

.poster-preview--layout-klasicky .poster-preview__meta--pamatky .poster-preview__details {
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.25;
}

.poster-preview--layout-klasicky .poster-preview__meta--pamatky .poster-preview__line {
  width: 250px;
  height: 2px;
  background: var(--poster-line-color, #000);
  opacity: 1;
  margin: 12px auto;
  display: none;
}

.poster-preview--layout-klasicky .poster-preview__meta--pamatky.has-subtitle .poster-preview__line {
  display: block;
}

.poster-preview--layout-ramecek .poster-preview__meta--pamatky .poster-preview__line {
  display: none !important;
}

@media (max-width: 989px) {
  .poster-preview--pamatky.poster-preview--layout-klasicky .poster-preview__meta--pamatky { margin-top: 12px; }
  .poster-preview--pamatky.poster-preview--layout-klasicky .poster-preview__meta--pamatky .poster-preview__name {
    font-size: 14px;
    letter-spacing: .16em;
    margin-bottom: 4px;
  }
  .poster-preview--pamatky.poster-preview--layout-klasicky .poster-preview__meta--pamatky .poster-preview__details {
    font-size: 8px;
    letter-spacing: .18em;
  }
  .poster-preview--pamatky.poster-preview--layout-klasicky .poster-preview__meta--pamatky .poster-preview__line {
    width: 180px;
    height: 2px;
    margin: 8px auto;
  }
}


/* =========================================================
   PAMÁTKY – SCROLL KRESBY (ponecháno)
   ========================================================= */

.drawing-scroll-wrapper {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 12px;
}

.drawing-scroll-wrapper::-webkit-scrollbar { width: 6px; }
.drawing-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.drawing-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: #cfcfcf;
  border-radius: 6px;
}
.drawing-scroll-wrapper::-webkit-scrollbar-thumb:hover { background-color: #b5b5b5; }

.drawing-scroll-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #cfcfcf transparent;
}

@media (max-width: 767px) {
  .drawing-scroll-wrapper { max-height: 300px; }
}

.drawing-scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 24px;
  margin-right: -31px;
}

@media (max-width: 767px) {
  .drawing-scroll {
    max-height: 300px;
    padding-right: 14px;
    margin-right: 0;
    -webkit-overflow-scrolling: touch;
  }
}


/* =========================================================
   ZNAMENÍ – CLEAN CSS (RÁMEČEK + KLASICKÝ)
   VLOŽ NA KONEC SOUBORU a SMAŽ všechny staré "ZNAMENÍ fix/override" bloky
   ========================================================= */

/* --- ART LAYERS: držet se pouze v .poster-preview__image-bg (horní blok) --- */
.poster-preview--znameni .poster-preview__image-bg{
  position: relative;
  overflow: hidden;
}

/* wrapper pro vrstvy */
.poster-preview--znameni .poster-preview__art{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* hvězdy + konstelace jsou vrstvy přes sebe */
.poster-preview--znameni .poster-preview__stars,
.poster-preview--znameni .poster-preview__constellation{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.poster-preview--znameni .poster-preview__stars{ z-index: 1; }
.poster-preview--znameni .poster-preview__constellation{ z-index: 2; }

/* ikona pod kruhem (zůstává v horním bloku) */
.poster-preview--znameni .poster-preview__icon{
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  z-index: 3;
  pointer-events: none;
}

/* SVG do wrapperu */
.poster-preview--znameni .poster-preview__stars svg,
.poster-preview--znameni .poster-preview__icon svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* konstelace je IMG (z product.media) */
.poster-preview--znameni .poster-preview__constellation img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* --- BARVY hvězd (přes proměnnou) --- */
.poster-preview--znameni .poster-preview__stars svg *{
  fill: var(--star-color, #4D4C4C) !important;
  stroke: var(--star-color, #4D4C4C) !important;
}

/* --- IKONA invert na tmavém pozadí (už přidáváš class v JS) --- */
.poster-preview--invert-icon .poster-preview__icon svg{
  filter: invert(1);
}


/* =========================================================
   KLASICKÝ – kruh + ořez + centrování
   ========================================================= */

/* hvězdy + konstelace jsou oříznuté do kola */
.poster-preview--znameni.poster-preview--layout-klasicky .poster-preview__stars,
.poster-preview--znameni.poster-preview--layout-klasicky .poster-preview__constellation{
  width: 78%;
  aspect-ratio: 1 / 1;
  height: auto;
  left: 50%;
  top: 7%;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
}

/* kruh pod hvězdami (barva z JS přes --stars-circle-color) */
.poster-preview--znameni.poster-preview--layout-klasicky .poster-preview__stars::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--stars-circle-color, transparent);
  z-index: 0;
}

/* hvězdy nad kruhem */
.poster-preview--znameni.poster-preview--layout-klasicky .poster-preview__stars svg{
  position: relative;
  z-index: 1;
}

/* konstelace na střed kola + zmenšení */
.poster-preview--znameni.poster-preview--layout-klasicky .poster-preview__constellation{
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-preview--znameni.poster-preview--layout-klasicky .poster-preview__constellation img{
  width: 62%;
  height: 62%;
  object-fit: contain;
}



/* =========================================================
   RÁMEČEK – hvězdy + konstelace přes celý horní blok (NE přes celý papír)
   ========================================================= */

.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__stars,
.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__constellation{
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  overflow: hidden;
}

/* konstelace na střed + rozumná velikost */
.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__constellation{
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-9%);
}

.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__constellation img{
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* invert konstelace (pokud budeš chtít bílou) – volitelné */
.poster-preview--znameni.poster-preview--constellation-white .poster-preview__constellation img{
  filter: brightness(0) invert(1);
}


/* =========================================================
   ZNAMENÍ – TEXT (scoped)
   ========================================================= */

.poster-preview--znameni .poster-preview__meta{
  text-align: center;
  margin-top: -10px;
}

/* NADPIS největší */
.poster-preview--znameni .poster-preview__name{
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* PODNADPIS menší */
.poster-preview--znameni .poster-preview__details{
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  font-weight: 600;
}

/* DALŠÍ POPIS nejmenší (je to 3. řádek) */
.poster-preview--znameni .poster-preview__meta .poster-preview__details:last-child{
  font-size: 8px;
  letter-spacing: 0.22em;
  font-weight: 600;
  opacity: 0.9;
}

/* =========================================================
   Mobile jemné úpravy (volitelné)
   ========================================================= */
@media (max-width: 767px){
  .poster-preview--znameni .poster-preview__name{ font-size: 22px; }
  .poster-preview--znameni .poster-preview__details{ font-size: 11px; }
  .poster-preview--znameni .poster-preview__meta .poster-preview__details:last-child{ font-size: 9px; }
  .poster-preview--znameni .poster-preview__icon{ width: 32px; height: 32px; }
}

/* =========================================================
   ZNAMENÍ – TEXT: RÁMEČEK má menší typografii než KLASICKÝ
   (Klasický zůstává podle tvých současných pravidel)
   ========================================================= */

.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__meta{
  margin-top: 22px;   /* v rámečku o něco níž/klidně 8–18 */
}

.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__name{
  font-size: 14px;     /* menší jako u "Iniciály" vibe */
  line-height: 1.1;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__details{
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.22em;
  font-weight: 600;
}

/* třetí řádek (DALŠÍ POPIS) – ještě menší */
.poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__meta .poster-preview__details:last-child{
  font-size: 8px;
  letter-spacing: 0.24em;
  opacity: .85;
}

/* Mobile – ještě o chlup menší */
@media (max-width: 767px){
  .poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__name{
    font-size: 16px;
  }
  .poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__details{
    font-size: 9px;
  }
  .poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__meta .poster-preview__details:last-child{
    font-size: 7px;
  }
}

/* KLASICKÝ – když chceme z tmavé konstelace udělat bílou */
.poster-preview--constellation-invert .poster-preview__constellation img {
  filter: invert(1) brightness(2) contrast(1.1);
}

/* ================================
   TOGGLE – ZAPNUTO / VYPNUTO
   (HVĚZDY – DATUM A MÍSTO)
   ================================ */

.step--datum-a-misto .step__options--toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #f1f1f1;
  border-radius: 6px;
  padding: 2px;
  max-width: 100%;
}

.step--datum-a-misto .step__options--toggle .step-option {
  appearance: none;
  border: none;
  background: transparent;
  height: 36px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a7a;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

/* aktivní stav */
.step--datum-a-misto .step__options--toggle .step-option.is-active {
  background: #e0e0e0;
  color: #111;
}

/* hover – jemný, žádný bordel */
.step--datum-a-misto .step__options--toggle .step-option:hover {
  color: #111;
}

/* focus off */
.step--datum-a-misto .step__options--toggle .step-option:focus {
  outline: none;
}

/* ================================
   HVĚZDY – MÍSTO (label vlevo / input vpravo)
   ================================ */

.step--datum-a-misto .step__inline-group--place{
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  column-gap: 0px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.step--datum-a-misto .step__inline--place{
  width: 100%;
}

.step--datum-a-misto .step__inline--place .field__input{
  width: 100%;
  height: 40px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
}

.step--datum-a-misto .step__inline--place .field__input:focus{
  outline: none;
  border-color: #cfcfcf;
}

/* mobil: ať se label přesune nad input */
@media (max-width: 520px){
  .step--datum-a-misto .step__inline-group--place{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
}





/* =========================================================
   MOBILE TWEAKS (global)
   ========================================================= */

@media (max-width: 989px) {
  .bg-split { background: #ffffff; }
  .product__media-wrapper { background-color: #ffffff; }

  .poster-preview { max-width: 100%; margin: 0 auto; }
  .poster-preview__frame { margin: 12px auto; }

  .poster-preview__image {
    display: block;
    height: 85%;
    width: auto;
    max-width: 100%;
  }
}



/* =========================================================
   Poster preview text only – Montserrat
   (neovlivní editor UI ani zbytek webu)
   ========================================================= */

.poster-preview .poster-preview__meta,
.poster-preview .poster-preview__name,
.poster-preview .poster-preview__details,
.poster-preview .poster-preview__extra,
.poster-preview .poster-preview__specs {
  font-family: 'Montserrat', sans-serif !important;
}

/* =========================================================
   Poster preview – BIG LETTER (Montserrat Alternates)
   ========================================================= */

.poster-preview .poster-preview__letter {
  font-family: 'Montserrat Alternates', sans-serif !important;
  font-weight: 200;       /* 100 = ultra thin, 200–300 doporučuju */
  letter-spacing: -0.02em;
}


/* Star map zoom v preview */
#MainProduct-{{ section.id }} .poster-preview__canvas-holder {
  overflow: hidden;
}

/* canvas vložený z plani.js */
#MainProduct-{{ section.id }} #planicanvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.9);       /* 👈 tady měň hodnotu */
  transform-origin: center;
}

/* Výchozí barva SVG (světlé pozadí) */
.poster-preview svg,
.poster-preview img.svg-inline {
  color: #000000;
}

/* Tmavé pozadí → SVG bílé */
.poster-preview--invert-svg svg,
.poster-preview--invert-svg img.svg-inline {
  color: #ffffff;
}

/* defaultně černé jen mimo "Černý rámeček" */
.poster-preview--mapy:not(.poster-preview--layout-cerny-ramecek) .map-label__title,
.poster-preview--mapy:not(.poster-preview--layout-cerny-ramecek) .map-label__subtitle,
.poster-preview--mapy:not(.poster-preview--layout-cerny-ramecek) .map-label__coords{
  color: #000;
}


/* ================================
   MAPY – (jen mapy) dočesání renderu + odstranění pruhu
   ================================ */

/* papír: finální inset (bez natažení až dolů) */
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-ramecek .poster-preview__paper{
  inset: 3.9% 6.0% 3.9% !important;
}

/* meta u mapy nechceme */
#MainProduct-{{ section.id }} .poster-preview--mapy .poster-preview__meta{
  display: none !important;
}

/* image area */
#MainProduct-{{ section.id }} .poster-preview--mapy .poster-preview__image-bg{
  position: relative;
  overflow: hidden;

  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;

  padding: 14px 14px 14px !important;
}

/* RÁMEČEK: stejný label jako Minimalistický, jen text na střed */
.poster-preview--mapy.poster-preview--layout-ramecek .map-label{
  text-align: center !important;
}




/* ================================
   MAPY – ČERNÝ RÁMEČEK (CAPTURE SAFE)
   cílem je, aby i "plátno okolo" bylo černé
   ================================ */


/* frame = vnější plocha (už máš, nechávám + doplňuji) */
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .poster-preview__frame{
  background-color: #000 !important;
  box-shadow: none !important;
}

/* důležité: inner bývá často transparentní a pak v capture prosvítá bílé pozadí canvasu */
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .poster-preview__inner{
  background: #000 !important;
}

/* samotný "papír" + image-bg */
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .poster-preview__paper{
  background: #000 !important;
}

#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .poster-preview__image-bg{
  background: #000 !important;
}

/* ✅ label černý, text bílý + na střed */
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .map-label{
  background: #000 !important;
  color: #fff !important;
  text-align: center !important;
}

#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .map-label__title,
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .map-label__subtitle,
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .map-label__coords{
  color: #fff !important;
}

/* MAPY – ČERNÝ RÁMEČEK: vynutit bílý text labelu */
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .map-label__title,
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .map-label__subtitle,
#MainProduct-{{ section.id }} .poster-preview--mapy.poster-preview--layout-cerny-ramecek .map-label__coords{
  color: #fff !important;
}



/* ================================
   MAPBOX – větší zoom tlačítka
   ================================ */

#MainProduct-{{ section.id }} .mapboxgl-ctrl-top-left{
  top: 32px !important;
  left: 52px !important;
}

#MainProduct-{{ section.id }} .mapboxgl-ctrl-group button{
  width: 72px !important;
  height: 72px !important;
}

#MainProduct-{{ section.id }} .mapboxgl-ctrl-group button .mapboxgl-ctrl-icon{
  background-size: 52px 52px !important;
}

/* =================================================
   MAPY – 6 ROZVRŽENÍ (2×3 GRID)
   ================================================= */

#MainProduct-{{ section.id }} .step__toggle--map-layouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#MainProduct-{{ section.id }} .step__toggle--map-layouts .step-toggle {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

/* tablet */
@media (max-width: 900px) {
  #MainProduct-{{ section.id }} .step__toggle--map-layouts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobil */
@media (max-width: 520px) {
  #MainProduct-{{ section.id }} .step__toggle--map-layouts {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   MAPY – LABEL STYLY (6 variant)
   .label -> .map-label
   =================================== */

/* ✅ jediná base definice (už žádná druhá, co se pere) */
#MainProduct-{{ section.id }} .poster-preview--mapy .map-label{
  font-size: 1em;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  padding: 0.41379311em 3.5%;
  background: #fff;
  line-height: 1.6;

  transform: none;
  z-index: 6;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif !important;
}

/* Mobile sizing */
@media only screen and (max-width: 767px){
  #MainProduct-{{ section.id }} .poster-preview--mapy .map-label{
    font-size: 0.438625rem;
    padding: 0.1815rem 3.5% 0.57475rem;
  }
}

/* 1) circle-label-position */
#MainProduct-{{ section.id }} .poster-preview--mapy.map-label--circle .map-label{
  left: 50%;
  right: auto;
  width: auto;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  bottom: 3%;
  font-size: 1.10344829em;
  min-width: 58%;
  padding: 0.48275862em 1.37931036em 0.62068966em 1.37931036em;
  text-align: center;
  white-space: nowrap;
}

@media only screen and (max-width: 767px){
  #MainProduct-{{ section.id }} .poster-preview--mapy.map-label--circle .map-label{
    font-size: 0.484rem;
    padding: 0.21175rem 0.605rem 0.27225rem;
  }
}

/* 2) four-label-position */
#MainProduct-{{ section.id }} .poster-preview--mapy.map-label--four .map-label{
  width: auto;
  min-width: 58%;
  bottom: 3%;
  left: 50%;
  right: auto;
  transform: translate(-50%, 0);
  -webkit-transform: translate(-50%, 0);
  font-size: 1.10344829em;
  padding: 0.48275862em 1.37931036em 0.62068966em 1.37931036em;
  text-align: center;
  font-family: 'Montserrat', sans-serif !important;
  white-space: nowrap;
}

@media only screen and (max-width: 767px){
  #MainProduct-{{ section.id }} .poster-preview--mapy.map-label--four .map-label{
    font-size: 0.484rem;
    padding: 0.21175rem 0.605rem 0.27225rem;
  }
}

/* 3) two-label-position (invert) */
#MainProduct-{{ section.id }} .poster-preview--mapy.map-label--two .map-label{
  color: #fff;
  padding-top: 20px;
  padding-bottom: 1px;
  background: #000;
  
}

/* 4) three-label-position (right aligned strip) */
#MainProduct-{{ section.id }} .poster-preview--mapy.map-label--three .map-label{
  bottom: -1px;
  left: -1px;
  right: -1px;
  width: calc(100% + 2px);
  text-align: right;
}

/* 5) one-label-position */
#MainProduct-{{ section.id }} .poster-preview--mapy.map-label--one .map-label{
  text-align: left;
  padding: 0.5862069em 3.5% 0.7586207em 3.5%;
  border-top: 0.09578544em solid #000;
  z-index: 9;
}

#MainProduct-{{ section.id }} .poster-preview--mapy.map-label--one .map-label::before{
  content: "";
  height: 0.28735632em;

  background: #fff;
  left: 0;
  margin-bottom: 0.09578544em;
  bottom: 100%;
  position: absolute;
  width: 100%;
}

@media only screen and (max-width: 767px){
  #MainProduct-{{ section.id }} .poster-preview--mapy.map-label--one .map-label{
    padding: 0.257125rem 3.5% 0.33275rem;
    border-top-width: 0.04201389rem;
  }
}

/* ✅ prostor pro label (jen když label leží přes mapu) */
#MainProduct-{{ section.id }} .poster-preview--mapy{
  --label-space: 84px;
}

#MainProduct-{{ section.id }} .poster-preview--mapy:not(.poster-preview--layout-kulaty) .poster-preview__image-bg{
  padding-bottom: var(--label-space);
}

#MainProduct-{{ section.id }} .poster-preview--mapy:not(.poster-preview--layout-kulaty) .map-preview__stage{
  bottom: var(--label-space);
}

/* ================================
   MAPY – KLASICKÝ: odstranit outline
   ================================ */

#MainProduct-{{ section.id }}
.poster-preview--mapy.poster-preview--layout-klasicky
.poster-preview__paper{
  outline: none !important;
}

/* ================================
   MAPY – RÁMEČEK: centrovaný text
   ================================ */

#MainProduct-{{ section.id }}
.poster-preview--mapy.poster-preview--layout-ramecek
.map-label{
  text-align: center;
  padding-top: 20px;
  padding-bottom: 1px;
}

/* ================================
   MAPY – MINIMALISTICKÝ
   (stejný jako Rámeček, text vpravo)
   ================================ */

#MainProduct-{{ section.id }}
.poster-preview--mapy.poster-preview--layout-minimalisticky
.map-label{
  text-align: right !important;

  /* stejné vertikální chování jako Rámeček */
  padding-top: 20px;
  padding-bottom: 1px;
}

#MainProduct-{{ section.id }}
.poster-preview--mapy.poster-preview--layout-minimalisticky
.poster-preview__paper{
  outline: none !important;
}

/* ================================
   MAPY – KULATÝ (MASKA) – FIX: jen pro kulatý
   ================================ */

/* 0) maska defaultně VYPNUTÁ pro všechny layouty */
#MainProduct-{{ section.id }}
.poster-preview--mapy
.kulaty-mask{
  display: none !important;
}

/* 1) zapnout masku jen když je aktivní layout-kulaty */
#MainProduct-{{ section.id }}
.poster-preview--mapy.poster-preview--layout-kulaty
.kulaty-mask{
  display: block !important;

  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 3;          /* pod UI, nad mapou jen mimo kruh */
  pointer-events: none;

  -webkit-mask-image: radial-gradient(
    circle at 50% 42%,
    transparent 0,
    transparent 45%,
    #fff 45%
  );
  mask-image: radial-gradient(
    circle at 50% 42%,
    transparent 0,
    transparent 45%,
    #fff 45%
  );
}

/* 2) mapa + ovládání nad ostatními vrstvami */
#MainProduct-{{ section.id }}
.poster-preview--mapy .map-preview__stage{
  position: relative;
  z-index: 2;
}

#MainProduct-{{ section.id }}
.poster-preview--mapy .mapboxgl-control-container{
  position: relative;
  z-index: 10 !important;
}

/* 3) vypnutí outline (jen když je kulatý) */
#MainProduct-{{ section.id }}
.poster-preview--mapy.poster-preview--layout-kulaty{
  --poster-outline-color: transparent;
}

/* ================================
   MAPY – MOBIL FONTY (SHOPIFY SAFE)
   ================================ */

@media screen and (max-width: 749px){

  .poster-preview--mapy .map-label__title{
    font-size: 13px !important;
    letter-spacing: 0.18em;
  }

  .poster-preview--mapy .map-label__subtitle{
    font-size: 7px !important;
    letter-spacing: 0.14em;
  }

  .poster-preview--mapy .map-label__coords{
    font-size: 5px !important;
    letter-spacing: 0.1em;
  }
}

@media screen and (max-width: 749px){

  .poster-preview--mapy.poster-preview--layout-klasicky .map-label{
    padding-top: 1.6em !important;
    padding-bottom: 1.2em !important;
  }

}

/* ================================
   MAPY – VYHLEDÁVÁNÍ (MÍSTO)
   ================================ */

#MainProduct-{{ section.id }} .step--mesto-a-styl .field__input{
  height: 39px;
  border: 1px solid #e2e2e2;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: #fff;
  color: #111;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* placeholder */
#MainProduct-{{ section.id }} .step--mesto-a-styl .field__input::placeholder{
  color: #9a9a9a;
  font-weight: 400;
}

/* focus */
#MainProduct-{{ section.id }} .step--mesto-a-styl .field__input:focus{
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 1px #111 inset;
}

/* autocomplete wrapper */
#MainProduct-{{ section.id }} .place-ac__list{
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #e2e2e2;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  overflow: hidden;
}

/* položky v seznamu */
#MainProduct-{{ section.id }} .place-ac__item{
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.35;
  transition: background .15s ease;
}

/* hover */
#MainProduct-{{ section.id }} .place-ac__item:hover{
  background: #f5f5f5;
}

/* název místa */
#MainProduct-{{ section.id }} .place-ac__item strong{
  font-weight: 600;
  color: #111;
}

/* doplňující info */
#MainProduct-{{ section.id }} .place-ac__item small{
  font-size: 11px;
  color: #777;
}


/* ================================
   MOBIL – zmenšení gapu mezi sloupci
   ================================ */

@media screen and (max-width: 749px){

  .product__outer-narozeni-miminka{
    gap: 1rem !important;
  }

}

/* =========================================================
   ZNAMENÍ – MOBILE TYPO (menší)
   VLOŽ NA KONEC SOUBORU
   ========================================================= */

@media (max-width: 767px){

  /* výchozí (KLASICKÝ) */
  .poster-preview--znameni .poster-preview__name{
    font-size: 16px;
    letter-spacing: 0.14em;
    line-height: 1.08;
  }

  .poster-preview--znameni .poster-preview__details{
    font-size: 9px;
    letter-spacing: 0.18em;
    line-height: 1.25;
  }

  .poster-preview--znameni .poster-preview__meta .poster-preview__details:last-child{
    font-size: 7px;
    letter-spacing: 0.20em;
  }

  /* RÁMEČEK – ještě o chlup menší než klasický (nebo nech stejné, jak chceš) */
  .poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__name{
    font-size: 14px;
  }

  .poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__details{
    font-size: 8px;
  }

  .poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__meta .poster-preview__details:last-child{
    font-size: 6px;
  }
}
/* =========================================================
   ZNAMENÍ – RÁMEČEK – MOBILE margin fix
   ========================================================= */
@media (max-width: 767px){
  .poster-preview--znameni.poster-preview--layout-ramecek .poster-preview__meta{
    margin-top: 14px;
  }
}
/* =========================================================
   HVĚZDY – FORM (zadávání datumu) – MOBILE FIX
   aby se vešel i ROK
   ========================================================= */
@media (max-width: 520px){

  /* wrapper s 3 selecty (DEN / MĚSÍC / ROK) */
  .step--datum-a-misto .step__inline--3{
    flex-wrap: wrap;
    gap: 10px;
  }

  /* každý select/input ať má použitelnou šířku */
  .step--datum-a-misto .step__inline--3 > *{
    flex: 1 1 calc(50% - 10px);
    min-width: 140px; /* aby ROK nebyl miniaturní */
  }

  /* měsíc často potřebuje víc místa – dej mu celý řádek */
  .step--datum-a-misto .step__inline--3 > *:nth-child(2){
    flex-basis: 100%;
    min-width: 0;
  }

  /* selecty uvnitř wrapperů na 100% */
  .step--datum-a-misto .step-select{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* když je tam i input, tak taky */
  .step--datum-a-misto .step-input{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
/* =========================================================
   MOBIL – 3 pole vedle sebe (DEN / MĚSÍC / ROK, čas, apod.)
   Fix pro HVĚZDY + MIMINKO (a obecně všechny step řádky se .step__inline--3)
   ========================================================= */
@media (max-width: 520px){

  /* řádek se 3 položkami */
  .step__inline--3{
    flex-wrap: wrap;
    gap: 10px;
  }

  /* každá položka: 2 do řady, ať nic neutíká doprava */
  .step__inline--3 > *{
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }

  /* prostřední položka (typicky MĚSÍC) na celý řádek */
  .step__inline--3 > *:nth-child(2){
    flex-basis: 100%;
    min-width: 0;
  }

  /* vnitřní inputy/selecty ať mají 100% šířku */
  .step__inline--3 .step-select,
  .step__inline--3 .step-input{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
