.pricing-modular {
  --card-padding: 20px;
}

.pricing-modular__card {
  min-height: 100%;
  overflow: hidden;
}
.pricing-modular__card:has(.pricing-modular__tag) {
  position: relative;
  overflow: visible
}
.pricing-modular__card,
.pricing-modular__content {
  border-radius: 20px;
}
.pricing-modular__content {
  background: var(--fifth-color);
}
.pricing-modular__section {
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 2px solid transparent;
}
.pricing-modular__header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pricing-modular__section.pricing-modular__header {
  padding: calc(var(--card-padding)*0.6) var(--card-padding) calc(var(--card-padding)*1.6);
}
.pricing-modular__tag {
  left: 16px;
  padding: 4px 10px;
  position: absolute;
  top: 0;
  font-size: var(--extra-small-font-size);
  line-height: var(--extra-small-line-height);
  font-weight: 600;
  border-radius: 6px;
  transform: translateY(-50%);
}
.pricing-modular__tag--first { color: var(--third-color); background: var(--first-color); }
.pricing-modular__tag--second { color: var(--white-color); background: var(--second-color); }
.pricing-modular__tag--third { color: var(--white-color); background: var(--third-color); }
.pricing-modular__tag--fourth { color: var(--white-color); background: var(--fourth-color); }
.pricing-modular__tag--fifth { color: var(--third-color); background: var(--fifth-color); }
.pricing-modular__tag--first-accent { color: var(--third-color); background: var(--first-accent-color); }
.pricing-modular__tag--second-accent { color: var(--white-color); background: var(--second-accent-color); }
.pricing-modular__tag--third-accent { color: var(--white-color); background: var(--third-accent-color); }
.pricing-modular__tag--fourth-accent { color: var(--white-color); background: var(--fourth-accent-color); }
.pricing-modular__tag--fifth-accent { color: var(--third-color); background: var(--fifth-accent-color); }
.pricing-modular__tag--dark-gray { color: var(--white-color); background: var(--dark-gray-color); }
.pricing-modular__tag--medium-gray { color: var(--third-color); background: var(--medium-gray-color); }
.pricing-modular__tag--light-gray { color: var(--third-color); background: var(--light-gray-color); }
.pricing-modular__tag--white { color: var(--third-color); background: var(--white-color); }

.pricing-modular__card:has(.pricing-modular__tag--first) .pricing-modular__section { border-color: var(--first-color); }
.pricing-modular__card:has(.pricing-modular__tag--second) .pricing-modular__section { border-color: var(--second-color); }
.pricing-modular__card:has(.pricing-modular__tag--third) .pricing-modular__section { border-color: var(--third-color); }
.pricing-modular__card:has(.pricing-modular__tag--fourth) .pricing-modular__section { border-color: var(--fourth-color); }
.pricing-modular__card:has(.pricing-modular__tag--fifth) .pricing-modular__section { border-color: var(--fifth-color); }
.pricing-modular__card:has(.pricing-modular__tag--first-accent) .pricing-modular__section { border-color: var(--first-accent-color); }
.pricing-modular__card:has(.pricing-modular__tag--second-accent) .pricing-modular__section { border-color: var(--second-accent-color); }
.pricing-modular__card:has(.pricing-modular__tag--third-accent) .pricing-modular__section { border-color: var(--third-accent-color); }
.pricing-modular__card:has(.pricing-modular__tag--fourth-accent) .pricing-modular__section { border-color: var(--fourth-accent-color); }
.pricing-modular__card:has(.pricing-modular__tag--fifth-accent) .pricing-modular__section { border-color: var(--fifth-accent-color); }
.pricing-modular__card:has(.pricing-modular__tag--dark-gray) .pricing-modular__section { border-color: var(--dark-gray-color); }
.pricing-modular__card:has(.pricing-modular__tag--medium-gray) .pricing-modular__section { border-color: var(--medium-gray-color); }
.pricing-modular__card:has(.pricing-modular__tag--light-gray) .pricing-modular__section { border-color: var(--light-gray-color); }
.pricing-modular__card:has(.pricing-modular__tag--white) .pricing-modular__section { border-color: var(--white-color); }

.pricing-modular__row {
  display: flex;
  flex-direction: column;
}
.pricing-modular__text ul {
  text-align: initial;
}
.pricing-modular__text ul li {
  position: relative;
  padding-left: 1lh;
}
.pricing-modular__text ul li:not(:last-child) {
  margin-bottom: 8px;
}
.pricing-modular__text ul li:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.5lh;
  height: 1lh;
  background-image: url("//4059422.fs1.hubspotusercontent-eu1.net/hubfs/4059422/raw_assets/public/swapn-2025/images/icons/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.pricing-modular__price-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: initial;
  gap: 20px;
}
.pricing-modular__price-text .pricing-modular__price {
  flex: none;
}
.pricing-modular__price__discount {
  font-weight: normal;
  text-decoration: line-through;
}
.pricing-modular__header .pricing-modular__price {
  font-size: var(--small-font-size);
  line-height: var(--small-line-height);
}
.pricing-modular__price-text .pricing-modular__price__number {
  font-size: var(--h2-font-size);
  line-height: var(--h2-line-height);
}
.pricing-modular__content .pricing-modular__price .pricing-modular__price__number {
  font-family: var(--display-font-family);
  font-size: var(--display-font-size);
  font-weight: var(--display-font-weight);
  line-height: var(--display-line-height);
}
.pricing-modular__img {
  margin: 0 auto;
  max-width: 100%;
}
.pricing-modular__img-rounded {
  border-radius: clamp(12px, 3vw, 16px);
}

.pricing-modular__section.bg-first { background: var(--first-color); }
.pricing-modular__section.bg-second { --body-font-color: var(--white-color); background: var(--second-color); }
.pricing-modular__section.bg-third { --body-font-color: var(--white-color); background: var(--third-color); }
.pricing-modular__section.bg-fourth { --body-font-color: var(--white-color); background: var(--fourth-color); }
.pricing-modular__section.bg-fifth { background: var(--fifth-color); }
.pricing-modular__section.bg-first_accent { background: var(--first-accent-color); }
.pricing-modular__section.bg-second_accent { --body-font-color: var(--white-color); background: var(--second-accent-color); }
.pricing-modular__section.bg-third_accent { --body-font-color: var(--white-color); background: var(--third-accent-color); }
.pricing-modular__section.bg-fourth_accent { --body-font-color: var(--white-color); background: var(--fourth-accent-color); }
.pricing-modular__section.bg-fifth_accent { background: var(--fifth-accent-color); }
.pricing-modular__section.bg-dark_gray { --body-font-color: var(--white-color); background: var(--dark-gray-color); }
.pricing-modular__section.bg-medium_gray { background: var(--medium-gray-color); }
.pricing-modular__section.bg-light_gray { background: var(--light-gray-color); }
.pricing-modular__section.bg-white { background: var(--white-color); }

@media screen and (min-width: 1200px) {
  .pricing-modular__card.align-lg-center { text-align: center; }
}
@media screen and (min-width: 992px) and (max-width: 1200px) {
  .pricing-modular__card.align-md-center { text-align: center; }
}
@media screen and (min-width: 992px) {
  .pricing-modular:has(.pricing-modular__section.pricing-modular__header) .pricing-modular__content {
    margin-top: calc(var(--card-padding)*-1);
  }
}
@media screen and (max-width: 992px) {
  .pricing-modular [class^="span"] { padding: 0!important; }
  .pricing-modular__card.align-xs-center { text-align: center; }
  .pricing-modular__card:has(.pricing-modular__section.pricing-modular__header) .pricing-modular__content {
    margin-top: calc(var(--card-padding)*-1);
  }
}

{# DROPDOWN #}
.pricing-modular__dropdown-trigger {
  padding-top: 12px;
  color: var(--body-font-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: var(--small-font-size);
  font-weight: 600;
  line-height: var(--small-line-height);
  cursor: pointer;
  border-top: 1px solid var(--medium-gray-color);
}
.pricing-modular__dropdown-trigger::-webkit-details-marker {
  display: none;
}
.pricing-modular__dropdown-trigger::after {
  content: "";
  width: 0.7lh;
  height: 0.7lh;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(0deg);
}
.pricing-modular__dropdown[open] > .pricing-modular__dropdown-trigger::after {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: no-preference) {
  .pricing-modular__dropdown-trigger::after {
    transition: transform 240ms ease;
  }
  @supports selector(::details-content) and (transition-behavior: allow-discrete) {
    .pricing-modular__dropdown::details-content {
      opacity: 0;
      overflow: clip;
      transition: none;
    }
    .pricing-modular__dropdown[open]::details-content {
      opacity: 1;
      transition: opacity 240ms ease, block-size 240ms ease, content-visibility 240ms allow-discrete;
    }
    @supports (interpolate-size: allow-keywords) {
      .pricing-modular__dropdown::details-content {
        interpolate-size: allow-keywords;
        block-size: 0;
      }
      .pricing-modular__dropdown[open]::details-content {
        block-size: auto;
      }
    }
  }
}