/*!
 * Steel Tongue Drum | Accordion (description and info panels) styles
 * Store: US   Product: STD
 * Source: Kiddospace-CDN / Stores/OTH/Product-STD/css/steeldrum-accordion.css
 * Maintained by Tulon S. Avi. Make changes in the repo, not in the theme.
 */

.drum-accordion {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
}

.drum-accordion__item {
  border: 1px solid #e3edf4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.drum-accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.drum-accordion__title {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1c2b36;
}

.drum-accordion__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drum-accordion__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Down arrow when closed, up arrow when open */
.drum-accordion__icon .drum-accordion__icon-down { display: block; }
.drum-accordion__icon .drum-accordion__icon-up { display: none; }
.drum-accordion__item.is-open .drum-accordion__icon-down { display: none; }
.drum-accordion__item.is-open .drum-accordion__icon-up { display: block; }

.drum-accordion__panel {
  height: 0;
  overflow: hidden;
  transition: height .25s ease;
}

.drum-accordion__body {
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #47565f;
}

.drum-accordion__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .drum-accordion__title { font-size: 15px; }
  .drum-accordion__body { font-size: 13px; }
}
