:root {
  /* accordion */
  --pdp-accordion-link-color: #0078b9;
  --pdp-accordion-link-color-hover: #036296;
  --pdp-accordion-link-font-size: 16px;
  --pdp-accordion-link-font-weight: 700;
  --pdp-accordion-icon-size: 16px;
  --pdp-accordion-icon-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M 8 12 l -8 -8 l 1.013 -1.007 l 6.973 7.009 l 7.014 -7.002 l 1.049 0.97 z' fill='%230078b9' /%3E%3C/svg%3E");
  --pdp-accordion-icon-animation-speed: .25s;
  --pdp-accordion-body-animation-speed: .5s;
  --pdp-accordion-body-width: 50%;

  /* backlink */
  --pdp-backlink-icon-source: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M 0 8 l 8 -8 l 1.546 1.537 l -6.523 6.49 l 6.426 6.491 l -1.55 1.517 z' fill='%230078b9' /%3E%3C/svg%3E");

  /* badge */
  --pdp-badge-background-color: #d5e0d1;
  --pdp-badge-font-color: #2b651b;
  --pdp-badge-font-size: 14px;
}

details {
  interpolate-size: allow-keywords;

  &::-webkit-details-marker,
  ::marker {
    display: none !important;
    content: "";
  }

  &::details-content {
    transition: block-size var(--pdp-accordion-body-animation-speed),
      content-visibility var(--pdp-accordion-body-animation-speed) allow-discrete;
    overflow: hidden;
    height: 0;
  }

  &[open]::details-content {
    height: auto;
  }

  &:not(:last-of-type) {
    padding-bottom: 12px;
  }

  summary {
    font-weight: var(--pdp-accordion-link-font-weight);
    font-size: var(--pdp-accordion-link-font-size);
    color: var(--pdp-accordion-link-color);
    cursor: pointer;
    user-select: none;

    &::after {
      content: "";
      position: absolute;
      display: inline-block;
      margin-left: 8px;
      margin-top: 4px;
      background-image: var(--pdp-accordion-icon-source);
      height: var(--pdp-accordion-icon-size);
      width: var(--pdp-accordion-icon-size);
      transform: rotate(0);
      transform-origin: center;
      transition: var(--pdp-accordion-icon-animation-speed) all ease-in-out;
    }

    &:hover {
      color: var(--pdp-accordion-link-color-hover);
    }
  }

  &[open] summary::after {
    transform: rotate(-180deg);
    margin-top: 2px;

  }

  & table,
  thead,
  tbody,
  tr,
  td,
  :not(.calc-result) td {
    background-color: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    max-width: none;
    line-height: 1.25;
    padding: 0.75rem 0;

    @media only screen and (min-width: 960px) {
      max-width: var(--pdp-accordion-body-width);
    }
  }

  & td,
  :not(.calc-result) td {
    display: table;

    &:first-of-type {
      font-weight: bold;
    }

    &:last-of-type {
      margin-bottom: 8px;
    }

    @media only screen and (min-width: 990px) {
      display: table-cell;

      &:first-of-type {
        font-weight: inherit;
      }

      &:last-of-type {
        margin-bottom: 0;
      }
    }
  }
}

.pdp-backlink {
  color: var(--pdp-accordion-link-color);
  text-decoration: none;
  font-size: var(--pdp-accordion-link-font-size);
  font-weight: var(--pdp-accordion-link-font-weight);
  padding-left: 24px;
  user-select: none;

  &::before {
    content: "";
    margin-left: -24px;
    margin-top: 4px;
    position: absolute;
    background-image: var(--pdp-backlink-icon-source);
    height: 16px;
    width: 16px;
  }

  &:hover {
    color: var(--pdp-accordion-link-color-hover);
  }
}

.betashield-badge,
.betashield-badge>a {
  display: inline-block;
  background-color: var(--pdp-badge-background-color);
  color: var(--pdp-badge-font-color);
  font-size: var(--pdp-badge-font-size);
  padding: 1px 5px;
  border-radius: 1.2em;
  user-select: none;
  text-decoration: none;
}

/* THIS LINE NEED TO BE REPLACED IN THE EXISTING STYLES */
.card-text {
  min-height: unset !important;
}

.row {
  &.filter-list {
    display: flex;
    flex-wrap: wrap;

    &>[class*='col-'] {
      display: flex;
      flex-direction: column;
    }

    &>[class*='col-']>* {
      flex: 1 1 auto;
    }

    & :before,
    & :after {
      display: block;
    }
  }
}
