.avid-accordion {
  width: 100%;
  direction: rtl;
}

/* Each version */
.avid-accordion-item {
  width: 100%;
  margin-bottom: 5px;
  flex-direction: column;
}

/* Header */
.avid-accordion-header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 30px;
  border: 1px solid var(--e-global-color-ad3b089);
  border-radius: 15px;
  background: #ffffff;
  cursor: pointer;
  outline: none;
  text-align: right;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5em;
  color: var(--e-global-color-77cb80b);
  box-shadow: 0px 0px 30px 0px rgba(120, 41, 183, 0.1);
  transition:
    border-radius 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1;
}

.avid-accordion-header:hover,
.avid-accordion-header:focus {
  background: #ffffff;
  color: var(--e-global-color-77cb80b);
}

/* Version */
.avid-accordion-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

/* Arrow */
.avid-accordion-arrow {
  position: absolute;
  left: 31px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #111111;
  border-bottom: 2px solid #111111;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s ease;
}

/* Open arrow */
.avid-accordion-item.is-open .avid-accordion-arrow {
  transform: translateY(-30%) rotate(225deg);
}

/* Panel */
.avid-accordion-panel {
  width: calc(100% - 30px);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--e-global-color-ad3b089);
  border-radius: 0 0 15px 15px;
  transform: translateY(-15px);
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Open panel */
.avid-accordion-item.is-open .avid-accordion-panel {
  opacity: 1;
  visibility: visible;
}

/* Content */
.avid-accordion-content {
  padding: 26px 32px 30px;
  color: #394258;
  font-size: 16px;
  line-height: 2.05;
  text-align: right;
}

/* Headings */
.avid-accordion-content h2,
.avid-accordion-content h3,
.avid-accordion-content h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #394258;
  font-weight: 500;
}

.avid-accordion-content h3 {
  font-size: 19px;
}

/* Lists */
.avid-accordion-content ul {
  margin: 0 0 20px;
  padding-right: 22px;
  padding-left: 0;
}

.avid-accordion-content li {
  margin-bottom: 7px;
}

.avid-accordion-content p:last-child,
.avid-accordion-content ul:last-child {
  margin-bottom: 0;
}

/* Focus accessibility */
.avid-accordion-header:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
