/* Keep the shared class renderer and its details/stock behavior in a card grid. */
body.page-template-new-template-kids-clases .kids-classes-intro {
  padding-bottom: 40px;
}

body.page-template-new-template-kids-clases form.kids-class-filters {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid #91949a;
  background: #f6f6f7;
  font-size: 14px;
}

.kids-class-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kids-class-filter-select {
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  gap: 8px;
  min-width: 0;
  max-width: 500px;
}

body form.kids-class-filters label {
  flex-shrink: 0;
  margin-bottom: 0;
}

body form.kids-class-filters select {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid #5e6167;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
}

.kids-class-filter-submit {
  flex: 0 0 88px;
}

body form.kids-class-filters input[type="submit"] {
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 5px 10px;
  font-size: 13px;
  line-height: 20px;
}

body.page-template-new-template-kids-clases ul.products.kids-class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* WooCommerce clearfix pseudo-elements must not become grid items. */
body.page-template-new-template-kids-clases ul.products.kids-class-grid::before,
body.page-template-new-template-kids-clases ul.products.kids-class-grid::after {
  display: none;
}

body.page-template-new-template-kids-clases ul.products.kids-class-grid > li {
  float: none;
  clear: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.page-template-new-template-kids-clases .kids-class-grid .section-new {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  opacity: 1;
}

body.page-template-new-template-kids-clases .kids-class-grid :is(.img-new, .text-new) {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.page-template-new-template-kids-clases .kids-class-grid .img-wrap1 {
  border: 0;
  margin: 0;
  padding: 0;
}

body.page-template-new-template-kids-clases .kids-class-grid .img-top.new.top-1 {
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

body.page-template-new-template-kids-clases .kids-class-grid .section-new .img-top.new.top-1 h2 {
  overflow-wrap: anywhere;
}

body.page-template-new-template-kids-clases .kids-class-grid .section-new .Class-Type.new {
  margin: 0 0 14px;
  padding-left: 16px;
}

body.page-template-new-template-kids-clases .kids-class-grid .img-box.new.n1 {
  position: relative;
  width: 100%;
  height: 256px;
  margin: -1px 0 0;
  overflow: hidden;
}

body.page-template-new-template-kids-clases .kids-class-grid .img-box img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  transform: none;
}

body.page-template-new-template-kids-clases .kids-class-grid .text-new {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.page-template-new-template-kids-clases .kids-class-grid .fr-1 {
  margin: 14px 0 8px;
  padding: 0;
  text-align: left;
}

body.page-template-new-template-kids-clases .kids-class-grid .product-tags {
  margin-bottom: 12px;
  text-align: left !important;
}

/* The complete overview, menu and chef remain available in the details modal. */
body.page-template-new-template-kids-clases .kids-class-grid .accordion-list {
  display: none;
}

body.page-template-new-template-kids-clases .kids-class-grid .text-new > div:last-child:has(.btn-1) {
  margin-top: auto;
}

body.page-template-new-template-kids-clases .kids-class-grid .btn-1 {
  display: block;
  float: none;
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
}

@media (max-width: 991px) {
  body.page-template-new-template-kids-clases ul.products.kids-class-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.page-template-new-template-kids-clases ul.products.kids-class-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .kids-class-filter-fields {
    align-items: flex-end;
  }

  .kids-class-filter-select {
    display: block;
    flex: 1 1 0;
  }

  body form.kids-class-filters label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
  }

  body form.kids-class-filters select {
    width: 100%;
  }
}
