/* === Bílé hvězdičky ve formuláři pro recenze === */
/* výchozí stav: bílé obrysy, průhledná výplň */
span.stars button svg path {
  stroke: #ffffff !important;
  fill: none !important;
  stroke-width: 1.5 !important;
  transition: all 0.2s ease-in-out;
}

/* při hoveru (najetí myší nebo klávesové zvýraznění) */
span.stars button.is-hovered svg path {
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

/* po kliknutí (trvale vybrané hvězdičky) */
span.stars button.is-selected svg path {
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

/* Styl tlačítka "Zobrazit košík" – 1:1 jako "Procházet produkty" */
.wp-block-woocommerce-product-button span[data-wp-bind--hidden] a.added_to_cart.wc_forward {
    display: inline-block !important;
    background-color: transparent !important;
    color: #dcdcdc !important; /* světle šedý text */
    border: 1px solid #dcdcdc !important; /* světle šedý outline */
    padding: 10px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out !important;
    margin-top: 12px !important;
    cursor: none !important; /* 🧠 místo pointer */
    width: fit-content !important;
}

/* Hover efekt – bílý podklad, černý text */
.wp-block-woocommerce-product-button span[data-wp-bind--hidden] a.added_to_cart.wc_forward:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* Zarovnání do středu */
.wp-block-woocommerce-product-button span[data-wp-bind--hidden] {
    display: flex !important;
    justify-content: center !important;
}

/* Skrytí tlačítka, dokud WooCommerce neodstraní hidden */
.wp-block-woocommerce-product-button span[data-wp-bind--hidden][hidden] {
    display: none !important;
}

/* === Zcela průhledný autofill === */
.wpcf7 input:-webkit-autofill,
.wpcf7 textarea:-webkit-autofill,
.wpcf7 select:-webkit-autofill {
  background: transparent !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

.wpcf7 input:-webkit-autofill:focus,
.wpcf7 textarea:-webkit-autofill:focus,
.wpcf7 select:-webkit-autofill:focus {
  background: transparent !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* === Barva blikajícího kurzoru (caret) === */
.wpcf7 input,
.wpcf7 textarea {
  caret-color: #0693e3 !important;
}

.cmplz-categories {
  color: #ffffff !important;
}

h4 a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .wp-block-woocommerce-accordion-group,
  .wp-block-woocommerce-accordion-item,
  .wp-block-woocommerce-accordion-panel {
    max-width: 95% !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Roztáhnutí středového bloku na mobilech a tabletech */
@media (max-width: 1024px) {
  .wp-block-group.alignwide,
  .wp-block-columns.alignwide {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .wp-block-group.alignwide,
  .wp-block-columns.alignwide {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* 📱 Skrytí popisu na mobilech a tabletech */
@media screen and (max-width: 1024px) {
  .eb-gallery-img-description {
    display: none !important;
  }

  /* pro jistotu — nech nadpis vždy viditelný */
  .eb-gallery-img-caption {
    display: block !important;
  }
}

.eb-gallery-img-caption,
.eb-gallery-img-description {
  white-space: normal !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

@media screen and (max-width: 1024px) {
  .eb-img-gallery-filter-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    padding: 10px;
    list-style: none;
    margin: 0 auto;
    text-align: center;
  }

  .eb-img-gallery-filter-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: #0b0b0b;
    color: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #222;
    transition: all 0.25s ease;

    min-height: 60px;                /* 🟢 základní výška */
    height: auto;                    /* 🟢 může se zvětšit, když je text delší */
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: keep-all;            /* 🟢 nedělit slova uvnitř */
    white-space: normal;             /* 🟢 umožní víc řádků */
  }

  .eb-img-gallery-filter-item:hover,
  .eb-img-gallery-filter-item.is-checked {
    background: #0693e3;
    color: #fff;
    transform: scale(1.05);
  }
}

/* 📱 na malých mobilech */
@media screen and (max-width: 480px) {
  .eb-img-gallery-filter-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .eb-img-gallery-filter-item {
    min-height: 55px;
  }
}

/* Vytvoříme pevný čtvercový box pro každou ikonu */
.wp-block-fse-pro-icons .fse-pro-icons {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* SVG uvnitř boxu – nastavíme jako menší ikonu */
.wp-block-fse-pro-icons svg {
    width: 100% !important;   /* přizpůsobíš podle vzhledu */
    height: 100% !important;
    display: block !important;
}












@media (max-width: 1024px) {
    .wp-container-core-group-is-layout-72d38984 {
        text-align: center !important;
    }
}

@media (max-width: 992px) {
    .wc-block-product-gallery {
        margin-top: -80px !important;
    }
}

@media (max-width: 992px) {
    /* Posun Add-to-Cart bloku nahoru */
    .wc-block-components-notices.alignwide {
        order: -1 !important;
    }

    /* Pokud parent není flex, posuneme ho fyzicky */
    .wc-block-components-notices.alignwide {
        margin-top: -40px !important;
        display: block;
    }
}

/* Zmenšení hlavního obrázku v galerii – mobil + tablet */
@media (max-width: 1024px) {
    .wc-block-product-gallery-large-image__container img {
        max-width: 250px !important;  /* uprav velikost podle potřeby */
        margin: 0 auto;
        display: block;
    }

    /* Zmenšit i wrapper, aby nepřetékala výška */
    .wc-block-product-gallery-large-image {
        max-width: 250px !important;
        margin: 0 auto;
    }
}
