/**
 * @file
 * Accordion styles.
 */

@import "../base/variables.pcss.css";

.accordion {
  color: var(--color-text);
  border: var(--details-border-size) solid var(--details-border-color);
  border-radius: var(--details-accordion-border-size-radius);
  background-color: var(--color-white);
  box-shadow: var(--details-box-shadow);
}

.accordion__item {
  margin: 0 -1px;
  border-radius: 0;

  &:first-child {
    margin-top: -1px;
    border-top-left-radius: var(--details-accordion-border-size-radius);
    border-top-right-radius: var(--details-accordion-border-size-radius);
  }

  & + .accordion__item {
    margin-top: -1px;
  }

  &:last-child {
    margin-bottom: -1px;
    border-bottom-right-radius: var(--details-accordion-border-size-radius);
    border-bottom-left-radius: var(--details-accordion-border-size-radius);
  }

  & .claro-details__summary .summary {
    display: block;
    color: var(--color-gray-800);
    font-weight: normal;
  }
}
