/**
 * Contero Product Description Styles
 * Tyto styly jsou určené pro HTML popisky produktů exportované z Contero aplikace.
 * Použití: Přidejte <link rel="stylesheet" href="URL_K_TOMUTO_SOUBORU"> do hlavičky vaší stránky.
 */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

/* === ZÁKLADNÍ STYLY PRO SEKCE === */
section {
  padding:20px 0 !important;
}

section p {
  font-size: 18px !important;
  line-height: 25px !important;
  font-family: 'Ubuntu', sans-serif !important;
}

section h2 {
  font-size: 25px !important;
  line-height: 30px !important;
  margin: 0 0 20px 0 !important;
  font-weight: 600 !important;
  font-family: 'Ubuntu', sans-serif !important;
}

/* === IMAGE-TEXT BLOCK STYLY (RC komponenty) === */

/* Container*/

.rc-image-left,
.rc-image-right {
  display: flex;
  align-items: center;
  gap: 1.5%;
  margin: 1.5rem 0;
}

/* Default ratio: 60:40 (text:image) - adjust for 2% gap */
.rc-image-left__image,
.rc-image-right__image {
  flex: 0 0 40%;
  width: 40%;
  position: relative;
}

.rc-image-left__text,
.rc-image-right__text {
  flex: 1 1 60%;
  width: 60%;
  background: #f3f3f3;
  border-radius: 20px;
  z-index: 1;
  position: relative;
  padding: 0px 5px 0px 20px;
}

/* Ratio: 50:50 */
.rc-image-left[data-ratio="50:50"] .rc-image-left__image,
.rc-image-right[data-ratio="50:50"] .rc-image-right__image {
  flex: 0 0 50%;
  width: 50%;
}

.rc-image-left[data-ratio="50:50"] .rc-image-left__text,
.rc-image-right[data-ratio="50:50"] .rc-image-right__text {
  flex: 1 1 50%;
  width: 50%;
}

/* Ratio: 40:60 (more image) */
.rc-image-left[data-ratio="40:60"] .rc-image-left__image,
.rc-image-right[data-ratio="40:60"] .rc-image-right__image {
  flex: 0 0 60%;
  width: 60%;
}

.rc-image-left[data-ratio="40:60"] .rc-image-left__text,
.rc-image-right[data-ratio="40:60"] .rc-image-right__text {
  flex: 1 1 40%;
  width: 40%;
}

/* Ratio: 70:30 */
.rc-image-left[data-ratio="70:30"] .rc-image-left__image,
.rc-image-right[data-ratio="70:30"] .rc-image-right__image {
  flex: 0 0 30%;
  width: 30%;
}

.rc-image-left[data-ratio="70:30"] .rc-image-left__text,
.rc-image-right[data-ratio="70:30"] .rc-image-right__text {
  flex: 1 1 70%;
  width: 70%;
}

/* Images */
.rc-image-left__img,
.rc-image-right__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* === RESPONZIVNÍ DESIGN === */
@media (max-width: 768px) {
  section p {
    line-height: 25px !important;
    font-size: 18px !important;
  }

  section h2 {
    font-size: 25px !important;
    line-height: 27px !important;
  }

  /* FORCE column layout and full width on mobile - NO GAP */
  .rc-image-left,
  .rc-image-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0px !important;
  }

  /* FORCE full width for images and text on mobile */
  .rc-image-left__image,
  .rc-image-right__image {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 100% !important;
  }

  .rc-image-left__text,
  .rc-image-right__text {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        min-width: 100% !important;
        border-radius: 0px;
        margin-top: 0px !important;
        background: none !important;
    }

  /* FORCE full width for images themselves */
  .rc-image-left__img,
  .rc-image-right__img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* === DOPLŇKOVÉ UTILITY TŘÍDY === */
.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

/* Seznam se zaškrtnutím */
.checked-list {
  list-style: none;
  padding-left: 0;
}

.checked-list li::before {
  content: "✓ ";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}
