:host {
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

/*remove default marker*/
summary {
  list-style: none;
}

/*remove default marker in safari*/
details > summary::-webkit-details-marker {
  display: none;
  width: 0;
  height: 0;
  position: absolute;
  visibility: hidden;
}

summary {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  text-align: left;
  /*needed to fix problem where parent will override text-align*/
  align-items: center;
  border-radius: var(--radius-base, 3px);
  background-color: var(--color-background-surface-header, #172635);
  color: var(--color-text-interactive-default, #4dacff);
  padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
  box-shadow: 0 -1px 0 0 var(--color-background-base-default, #101923) inset;
  cursor: pointer;
}
summary:focus-visible {
  outline: var(--border-width-focus-default, 1px) solid var(--color-border-focus-default, #da9ce7);
  outline-offset: var(--spacing-focus-default, 0.125rem);
}

summary:hover slot[name=prefix]::slotted(*),
summary:hover .indicator--icon,
summary:hover .rux-accordion-item--title {
  color: var(--color-text-interactive-hover, #92cbff);
}

.rux-accordion-item {
  display: flex;
  font-family: var(--font-control-body-1-font-family, 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif);
  font-size: var(--font-control-body-1-font-size, 1rem);
  font-weight: var(--font-control-body-1-font-weight, 400);
  line-height: var(--font-control-body-1-line-height, calc(20 / 16));
  letter-spacing: var(--font-control-body-1-letter-spacing, 0.005em);
  text-align: left;
  /*needed to fix problem where parent will override text-align*/
  color: var(--color-text-primary, #ffffff);
  padding: var(--spacing-050, 0.125rem) var(--spacing-1, 0.25rem);
  /*when disabled*/
}
.rux-accordion-item--title {
  padding: var(--spacing-1, 0.25rem) var(--spacing-2, 0.5rem);
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}
.rux-accordion-item--content {
  padding: var(--spacing-4, 1rem);
  margin: var(--spacing-0, 0rem);
  font-size: var(--font-body-2-font-size, 0.875rem);
  line-height: var(--font-body-2-line-height, calc(20 / 14));
}
.rux-accordion-item--disabled {
  opacity: var(--opacity-disabled, 40%);
  cursor: not-allowed;
}
.rux-accordion-item--disabled > summary {
  cursor: not-allowed;
  pointer-events: none;
}
.rux-accordion-item--disabled .rux-accordion-item--content {
  pointer-events: none;
}

:host::part(indicator) {
  display: flex;
  width: 20px;
  height: 20px;
  padding: var(--spacing-1, 0.25rem);
}

.prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-0, 0rem) var(--spacing-1, 0.25rem);
}
.prefix.prefix--hidden {
  display: none;
}

.indicator--icon.open {
  -ms-transform: rotate(-180deg);
  transform: rotate(-180deg);
}

slot[name=prefix]::slotted(*) {
  display: flex;
}

slot[name=prefix]::slotted(rux-icon) {
  width: calc(var(--spacing-4, 1rem) + var(--spacing-1, 0.25rem));
  height: calc(var(--spacing-4, 1rem) + var(--spacing-1, 0.25rem));
}

slot[name=label]::slotted(*) {
  width: 100%;
  display: block;
}