/* This CSS will be loaded in the editor in the back-office and on the front-office */
/* Style główne */
#product .product-description {
  margin: 20px;
}

#product .product-description,
.rte-content,
.category-description,
.blog-detail {
  line-height: 1.6;
  color: #333;
}

/* Nagłówek H1-H2 */
body > div > h1[data-arx-type],
#product .product-description h1:not(h1),
.rte-content h1,
.category-description h1,
#blogpage .blog-detail h1.blog-title,
.blog-detail h1 {
  font-size: 2em;
  line-height: 1.25em;
  color: #2c3e50;
  font-weight: bold;
  text-align: left;
  margin-bottom: 1em;
  padding-bottom: 0.3em;
}

body > div > h2[data-arx-type],
#product .product-description h2,
.rte-content h2,
.category-description h2,
.blog-detail h2 {
  font-size: 1.5em;
  line-height: 1.4em;
  color: #005daa;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-left: 5px solid #005daa;
  padding-left: 0.5em;
}

/* Nagłówek H3-H6 */
body > div > h3[data-arx-type],
#product .product-description > h3,
#product .product-description > *:not(:has(.pse-table--highlight)) h3,
#product .product-description h4,
#product .product-description h5,
#product .product-description h6,
.rte-content > h3,
.rte-content > *:not(.pse-table--highlight) h3,
.rte-content h4,
.rte-content h5,
.rte-content h6,
.category-description h6,
.blog-detail h6 {
  font-size: 1.1em;
  line-height: 1.5em;
  color: #005daa;
  font-weight: normal;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Akapit */
body > div > p[data-arx-type],
#product .product-description p,
.rte-content p,
.category-description p,
.blog-detail p {
  margin: 0.8em 0;
}

/* Lista */
body > div > ul[data-arx-type],
#product .product-description ul,
.rte-content ul,
.category-description ul,
.blog-detail ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

body > div > li[data-arx-type],
#product .product-description li,
.rte-content li,
.category-description li,
.blog-detail li {
  margin: 0.5em 0;
}

/* Specjalne style dla wyróżnień */
body > div > strong[data-arx-type],
#product .product-description strong,
.rte-content strong,
.category-description strong,
.blog-detail strong {
  font-weight: bold;
}

/* Tabela */
body > div > table[data-arx-type],
#product .product-description > table,
#product .product-description > *:not(:has(.pse-table--highlight)) table,
.rte-content > table,
.rte-content > *:not(.pse-table--highlight) table,
.category-description > table,
.category-description > *:not(:has(.pse-table--highlight)) table,
.blog-detail > table,
.blog-detail > *:not(.pse-table--highlight) table {
  min-width: 300px;
  max-width: 100%;
}

@media (max-width: 365px) {
  body > div > table[data-arx-type],
  #product .product-description > table,
  #product .product-description > *:not(:has(.pse-table--highlight)) table,
  .rte-contentdescription > table,
  .rte-contentdescription > *:not(:has(.pse-table--highlight)) table,
  .category-description > table,
  .category-description > *:not(:has(.pse-table--highlight)) table,
  .blog-detail > table,
  .blog-detail > *:not(.pse-table--highlight) table {
    width: 100%;
    min-width: auto;
  }
}

body > div > table[data-arx-type] tbody,
#product .product-description > table tbody,
#product .product-description > *:not(:has(.pse-table--highlight)) table tbody,
.rte-content > table tbody,
.rte-content > *:not(.pse-table--highlight) table tbody,
.category-description > table tbody,
.category-description > *:not(:has(.pse-table--highlight)) table tbody,
.blog-detail > table tbody,
.blog-detail > *:not(.pse-table--highlight) table tbody {
  border-spacing: 0px;
  padding: 0 2em 1em 0;
}

body > div > table[data-arx-type] tbody tr:first-child:not(:last-child),
#product .product-description > table tbody tr:first-child:not(:last-child),
#product
  .product-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  tr:first-child:not(:last-child),
.rte-content > table tbody tr:first-child:not(:last-child),
.rte-content
  > *:not(.pse-table--highlight)
  table
  tbody
  tr:first-child:not(:last-child),
.category-description > table tbody tr:first-child:not(:last-child),
.category-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  tr:first-child:not(:last-child),
.blog-detail > table tbody tr:first-child:not(:last-child),
.blog-detail
  > *:not(.pse-table--highlight)
  table
  tbody
  tr:first-child:not(:last-child) {
  border-color: #404040;
  background-color: #404040;
  color: #ffffff;
  font-weight: 700;
  height: 2em;
  text-align: left;
}

body > div > table[data-arx-type] tbody tr:first-child:not(:last-child) td,
#product .product-description > table tbody tr:first-child:not(:last-child) td,
#product
  .product-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  tr:first-child:not(:last-child)
  td,
.rte-content > table tbody tr:first-child:not(:last-child) td,
.rte-content
  > *:not(.pse-table--highlight)
  table
  tbody
  tr:first-child:not(:last-child)
  td,
.category-description > table tbody tr:first-child:not(:last-child) td,
.category-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  tr:first-child:not(:last-child)
  td,
.blog-detail > table tbody tr:first-child:not(:last-child) td,
.blog-detail
  > *:not(.pse-table--highlight)
  table
  tbody
  tr:first-child:not(:last-child)
  td {
  color: #ffffff;
}

body > div > table[data-arx-type] tbody tr:nth-child(2n + 1),
#product .product-description > table tbody tr:nth-child(2n + 1),
#product
  .product-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  tr:nth-child(2n + 1),
.rte-content > table tbody tr:nth-child(2n + 1),
.rte-content > *:not(.pse-table--highlight) table tbody tr:nth-child(2n + 1),
.category-description > table tbody tr:nth-child(2n + 1),
.category-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  tr:nth-child(2n + 1),
.blog-detail > table tbody tr:nth-child(2n + 1),
.blog-detail > *:not(.pse-table--highlight) table tbody tr:nth-child(2n + 1) {
  border-color: #f2f2f2;
  background-color: #f2f2f2;
}

body > div > table[data-arx-type] tbody td,
#product .product-description > table tbody td,
#product
  .product-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  td,
.rte-content > table tbody td,
.rte-content > *:not(.pse-table--highlight) table tbody td,
.category-description > table tbody td,
.category-description > *:not(:has(.pse-table--highlight)) table tbody td,
.blog-detail > table tbody td,
.blog-detail > *:not(.pse-table--highlight) table tbody td {
  padding: 2px 10px;
}

body > div > table[data-arx-type] tbody td:first-child:not(:last-child),
#product .product-description > table tbody td:first-child:not(:last-child),
#product
  .product-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  td:first-child:not(:last-child),
.rte-content > table tbody td:first-child:not(:last-child),
.rte-content
  > *:not(.pse-table--highlight)
  table
  tbody
  td:first-child:not(:last-child),
.category-description > table tbody td:first-child:not(:last-child),
.category-description
  > *:not(:has(.pse-table--highlight))
  table
  tbody
  td:first-child:not(:last-child),
.blog-detail > table tbody td:first-child:not(:last-child),
.blog-detail
  > *:not(.pse-table--highlight)
  table
  tbody
  td:first-child:not(:last-child) {
  font-weight: 700;
}
.pse-table--highlight table td,
th {
  border: none;
}
.pse-table--highlight {
  padding: 2rem;
  box-shadow: 0 5px 30px 0px rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.pse-table--fixed-width {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}