/* Product facts inherit the storefront typography. */
.atomx-product-facts {
  color: #1d232b;
}

.atomx-facts-details {
  border: 1px solid #d8dee6;
  border-radius: 8px;
  background: #fff;
}

.atomx-facts-summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-radius: inherit;
  list-style: none;
  color: #111820;
  font-weight: 700;
  cursor: pointer;
}

.atomx-facts-summary::-webkit-details-marker {
  display: none;
}

.atomx-facts-summary::after {
  width: .5rem;
  height: .5rem;
  flex: 0 0 .5rem;
  margin: -.2rem .2rem 0 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: '';
}

.atomx-facts-summary:hover,
.atomx-facts-details[open] > .atomx-facts-summary {
  background: #f5f6f8;
}

.atomx-facts-details[open] > .atomx-facts-summary::after {
  margin-top: .2rem;
  transform: rotate(225deg);
}

.atomx-facts-summary:focus-visible,
.atomx-facts-search:focus-visible,
.atomx-facts-table-wrap:focus-visible {
  outline: 2px solid #244f98;
  outline-offset: 2px;
}

.atomx-facts-content {
  padding: 1rem;
  border-top: 1px solid #d8dee6;
}

.atomx-facts-filter {
  margin-bottom: .75rem;
}

.atomx-facts-filter-label {
  display: block;
  max-width: 28rem;
  margin-bottom: 0;
  font-size: .875rem;
  font-weight: 600;
}

.atomx-facts-search {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-top: .25rem;
  padding: .5rem .65rem;
  border: 1px solid #7b8796;
  border-radius: 6px;
  background: #fff;
  color: #111820;
  font-size: 1rem;
}

.atomx-facts-status {
  margin: .35rem 0 0;
  color: #495563;
  font-size: .875rem;
}

.atomx-facts-status:empty {
  margin: 0;
}

.atomx-facts-table-wrap {
  max-height: min(55vh, 25rem);
  overflow: auto;
}

.atomx-facts-table-wrap .atomx-product-variants {
  margin-bottom: 0;
}

.atomx-product-variants thead th {
  position: sticky;
  top: 0;
  background: #f5f6f8;
}

.atomx-product-variants tbody th a {
  color: #244f98;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.atomx-product-facts [hidden] {
  display: none;
}

@media (max-width: 575px) {
  .atomx-facts-content {
    padding: .75rem;
  }
}
