@font-face {
  font-display: swap;
  font-family: "GT Walsheim";
  src: url("../fonts/gt-walsheim-medium.woff") format("woff"), url("../fonts/gt-walsheim-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

.page-template-keto-calculator-preact .container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.page-template-keto-calculator-preact .js-main-nav {
  background-color: #fff !important;
}

.container__inner {
  max-width: 48rem;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

.content-wrapper > :last-child {
  margin-bottom: 0;
}

.calculator__heading {
  padding: 2.5rem 0;
  background-color: #F6F8F9;
  overflow: hidden;
}

.calculator__heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 68rem;
  margin: 0 auto;
}

.calculator__heading-content .content-wrapper {
  max-width: 32.1875rem;
}

.calculator__heading-content {
  flex: 1 1 auto;
}

.calculator__heading h1,
.calculator__heading h2 {
  margin-bottom: 1.25rem;
  font-size: 2.25rem;
  line-height: 1.333;
  font-weight: 700;
}

.calculator__heading-image {
  position: relative;
  flex: 0 0 44.11%;
  width: 44.11%;
}

.calculator__heading-image img {
  width: 100%;
}

.calculator__heading-image a:hover .calculator__play-btn {
  transform: scale(1.2) translate(-50%, -50%);
}

.calculator__play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: calc(50% - 1rem);
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center left;
  width: 5.5rem;
  height: 5.5rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  border-radius: 50%;
  transition: all 0.25s ease-in-out;
}

.calculator__play-btn-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 2.5rem);
  transform: translateX(-50%);
  padding: 0.625rem 2rem;
  background-color: #fff;
  white-space: nowrap;
  border-radius: 100px;
  font-size: 12px;
  line-height: 1.333;
  font-weight: 700;
}

.calculator__wrapper {
  padding: 3.75rem 0;
}

#perfectketo-calculator .clc-heading {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

#perfectketo-calculator .clc-heading h2 {
  display: none;
}

#perfectketo-calculator form h3:first-of-type {
  margin-top: 1.5rem;
}

@media screen and (width >= 768px) {
  #perfectketo-calculator form h3:first-of-type {
    padding-right: 12.5rem;
    margin-top: -1.5rem;
  }
}

.calculator__heading,
.section--how-to-use,
.section--faq {
  color: #4F5659;
}

.how-to-use__heading,
.faq__heading {
  padding: 5.625rem 0;
  background-color: #F6F8F9;
}

.how-to-use__heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 62.5rem;
  margin: 0 auto;
}

.how-to-use__heading-content {
  flex: 1 1 auto;
}

.how-to-use__heading-image {
  width: 48.25%;
  flex: 0 0 48.25%;
}

.how-to-use__heading-image img {
  width: 100%;
}

.calculator-content h2 {
  margin-bottom: 1.25rem;
  font-size: 2.25rem;
  line-height: 1.11;
  color: #202324;
}

.calculator-content h3 {
  margin-bottom: 2rem;
  font-size: 2rem;
  line-height: 1.25;
  color: #202324;
}

.calculator-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.333;
  color: #202324;
}

.calculator-content p + h4 {
  margin-top: 2rem;
}

.calculator-content p {
  margin-bottom: 1em;
}

.calculator-content ul,
.calculator-content ol {
  padding-left: 1.5em;
}

.how-to-use__heading .content-wrapper {
  max-width: 35rem;
}

.step-items {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.step-title {
  margin-bottom: 0.75em !important;
  padding: 4px 24px;
  display: inline-block;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 22px;
  white-space: nowrap;
  border-color: #00BA74;
  background-color: #DEFAEC;
}

.step-items,
.faq-wrapper {
  padding: 3.75rem 0;
}

.faq-item__wrapper {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item__title {
  display: flex;
  padding: 1.5rem 0;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #202324;
  list-style: none;
}

.faq-item__plus {
  position: relative;
  flex: 0 0 0.8125rem;
  width: 0.8125rem;
  height: 0.8125rem;
  margin-right: 0.125rem;
}

.faq-item__plus::after,
.faq-item__plus::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
  width: 100%;
  height: 0.1875rem;
  background-color: currentColor;
}

.faq-item__plus::after {
  transform: translate(-50%) rotate(90deg);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-item__plus::after {
  transform: translate(-50%) rotate(0deg);
}

.faq-item__title::marker,
.faq-item__title::-webkit-details-marker {
  content: "";
  display:none;
}

.faq-item__content {
  padding-bottom: 0;
  display: grid;
  transition-duration: 0.3s;
  grid-template-rows: 0fr;
}

.faq-item__content-body {
  overflow: hidden;
}

.faq-item[open] + .faq-item__content {
  grid-template-rows: 1fr;
  padding-bottom: 1.5rem;
}

.page-template-keto-calculator-preact .js-main-nav {
  display: block !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

#scrollspy-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.scrollspy-menu-item {
  padding: 18px 0;
  font-weight: 500;
  cursor: pointer;
}

.scrollspy-menu-item.active {
  color: #00BA74;
  border-bottom: 1px solid #00BA74;
}

//@supports (interpolate-size: allow-keywords) {
//  .faq-item::details-content {
//    transition: height 0.5s ease, content-visibility 0.5s ease allow-discrete;
//    height: 0;
//    overflow: clip;
//  }
//
//  :root {
//    interpolate-size: allow-keywords;
//  }
//
//  .faq-item[open]::details-content  {
//    height: auto;
//  }
//}

@media screen and (width < 1024px) {



  .calculator__heading,
  .calculator__wrapper,
  .how-to-use__heading,
  .faq__heading,
  .faq-wrapper,
  .step-items {
    padding: 2rem 0;
  }

  .calculator-content h2 {
    margin-bottom: 20px;
  }

  .how-to-use__heading .content-wrapper {
    max-width: 100%;
  }

  .faq-item[open] + .faq-item__content {
    padding-bottom: 1rem;
  }

  .faq-item__title {
    gap: 1rem;
    padding: 1rem 0;
  }
}

@media screen and (width < 768px) {
  .calculator__heading-row,
  .how-to-use__heading-row {
    display: block;
  }

  .calculator__heading-image {
    width: 480px;
    max-width: 100%;
    margin: 1.5rem auto 0;
  }

  .how-to-use__heading-image {
    width: 100%;
    margin-top: 1.5rem;
  }

  .calculator__heading h1,
  .calculator__heading h2 {
    margin-bottom: 0.875rem;
    font-size: 1.75rem;
  }

  .section--calculator .calculator__heading-image {
    display: none;
  }

  #perfectketo-calculator .clc-heading legend {
    display: none;
  }
}

//@media screen and (width < 480px) {
//  .calculator__heading-image {
//    margin-right: -15%;
//    margin-left: -15%;
//    max-width: none;
//    width: auto;
//  }
//}

@media screen and (width < 360px) {
  #scrollspy-menu {
    gap: 1rem;
  }
}

