.dist-drawer {
  margin-bottom: 30px;
}

/* Departments grid: show drawers in two columns on wide screens */
/* Needs to add the id "distribuidores" on the Elementor element */
#distribuidores > div > div > .e-n-accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
#distribuidores > div > div > .e-n-accordion > .dist-drawer {
  display: block;
  width: 100%;
}

@media (max-width: 768px) {
  #distribuidores > div > div > .e-n-accordion {
    grid-template-columns: 1fr;
  }
}

.dist-drawer__title {
  border-top: #000 1px solid;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25em;
  font-weight: 700;
  padding: 24px 0 16px;
  position: relative;
  margin-bottom: 0;
  transition: all 0.25s ease-out;
  list-style: none;
}

.dist-drawer__title::-webkit-details-marker {
  display: none;
}

.dist-drawer__title::after {
  content: "+";
  display: inline-block;
  font-size: 1.3em;
  line-height: 1;
  margin-left: 12px;
  font-weight: 400;
}

.dist-drawer[open] > .dist-drawer__title::after {
  content: "−";
  color: #e4002b;
}

.dist-drawer__content-wrapper {
  font-size: 1.25em;
  line-height: 1.4em;
  padding: 0 0 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 320ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease-in-out, padding 220ms ease-in-out;
}

.dist-drawer[open] > .dist-drawer__content-wrapper {
  max-height: 1200px;
  opacity: 1;
  padding: 8px 0 0;
}

.dist-drawer__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.dist-drawer__content-card {
  padding: 16px 18px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}

.dist-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.dist-item-media img {
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
}

.dist-item-media {
  flex: 0 0 190px;
}

.dist-item-info {
  flex: 1 1 auto;
}

.dist-drawer__title:hover {
  color: #4E4B52;
}

@media (max-width: 768px) {
  .dist-drawer__content-grid {
    grid-template-columns: 1fr;
  }
}

