footer {
  --footer-link-color: #6C6F6C;
  --footer-link-color-hover: #0076D6;
  --footer-items-margin-top: 12px;
  --footer-category-margin-top: 16px;
  margin-top: 0;
}

footer [data-hs-cos-type="logo"] svg path,
footer [data-hs-cos-type="logo"] img path {
  width: 110px;
  height: auto;
  fill: #fff;
}

.footer-main .logo,
.footer-main .footer-nav-section {
  margin: 0;
  height: auto;
  /*background-color: blue;*/
}

.footer-main .footer-nav-section ul {
  list-style-type: none;
  margin-top: 6px;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  list-style-image: none;
}

.footer-main .footer-nav-section ul li {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 190%;
  color: #4f5871;
}

.footer-main .footer-nav-section ul li:not(:first-of-type) {
  padding-top: 0;
}

.footer-main .footer-nav-section {
  padding-bottom: 24px;
}

.footer-nav-section label {
  color: var(--Primary-Dark-Grey, #6C6F6C);

  /* H4 */
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 140% */
}

.footer-main .footer-legend-bottom,
.footer-main .footer-legend-bottom p {
  text-align: left;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 190%;
  margin-top: 0;
  color: #99a5be !important;
  justify-content: flex-start;
  align-self: start;
  flex: 1;
  display: flex;
  gap: 32px;
  flex: 0 1 50%;
}

.footer-main .footer-legend-bottom div:first-of-type {
  margin-right: 20px;
}

.footer-main .footer-legend-bottom div {
  color: #99a5be;
}

.footer-main .footer-legend-bottom a:hover {
  text-decoration-color: #99a5be;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
}

.footer-legend-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 0;
}

.footer-legend-socials {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-right: 32px;
  padding-bottom: 0;
}

.footer-legend-socials label {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 190%;
  color: #99a5be;
}

.footer-legend-socials img {
  width: 20px !important;
  height: auto !important;
}

.footer-legend-socials:last-of-type {
  margin-right: 0;
}

.footer-legend-socials a {
  text-decoration: none;
}

.footer-legend-socials a:hover {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: #99a5be;
  text-decoration-thickness: 1px;
}

.footer-legend-socials a label {
  cursor: pointer;
}

.footer-nav-items li.divider {
  border-top: 1px solid #dee2e9;
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.footer-main {
  max-width: 1240px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 0;
}

.footer-main .footer-nav-section .footer-nav-items a {
  color: var(--footer-link-color);

  /* Copy Small */
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 166.667% */
}

.footer-main .footer-nav-section .footer-nav-items a:hover {
  color: var(--footer-link-color-hover);
}

.footer-main .logo {
  margin-right: auto !important;
}

.footer-main .footer-nav-section {
  //width: max(150px, 100% / 6) !important;
  margin-right: 0 !important;
}
.footer-nav-section__categories-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap onto the next line on smaller screens */
}

.footer-nav-section__categories {
    flex: 1; /* Allows the items to grow to fill the container */
    /*min-width: 248px;*/ /* Minimum width of each category */
}

/* Media query for screens wider than 1240px */
@media (min-width: 1240px) {
    .footer-nav-section__categories {
        flex-basis: 20%; /* Set the flex basis to 20% for larger screens */
    }
}

/* Adjustments for smaller screens can be added with additional media queries */
/* For example, for screens smaller than 768px: */
@media (max-width: 768px) {
    .footer-nav-section__categories {
        flex-basis: 50%; /* Each category takes up half the width on smaller screens */
    }
}

.footer-nav-section__categories span, .footer-nav-items {
    display: block; /* Ensure these elements are block-level for proper sizing */
}

.footer-nav-section__categories span {
  color: var(--Primary-Black, #2D312D);

  /* Copy Small Bold */
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px; /* 166.667% */
  margin-top: var(--footer-category-margin-top);
}

.footer-nav-items {
    list-style: none; /* Optional: Removes default list styling */
    padding: 0; /* Optional: Removes default padding */
}

.footer-main .wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 equal columns */
    grid-gap: 0; /* Adjust the gap between grid items as needed */
}

.footer-main .wrapper .col-span-1 {
    grid-column: span 1;
}

.footer-main .wrapper .col-span-2 {
    grid-column: span 2;
}

.footer-main .wrapper .col-span-3 {
    grid-column: span 3;
}

.footer-main .wrapper .col-offset-2 {
    grid-column-start: 3;
}

.footer-main .wrapper .col-span-marketplace {
  // grid-area: marketplace;
}

.footer-main .wrapper .col-span-others {
  //grid-area: others;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .footer-main .wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }

    .footer-nav-section:first-child {
        grid-column: span 1; /* First section spans 1 column on smaller screens */
    }
}

.footer-nav-section__categories {
  margin-top: 0;
}

.footer-event-page {
  margin-top: 0;
}

.footer__additional-section {
  display: flex;
  margin-bottom: 70px;
}

.footer__additional-section__left,
.footer__additional-section__right {
  flex: 1;
}

.footer__additional-section__left {
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.footer__additional-section__left p:last-of-type {
  color: #4f5871;
}

.footer__additional-section__right__container__text {
  margin-bottom: 24px;
}

.footer__additional-section__right__container__text p {
  color: var(--temedica-blue-grey, #4f5871);
  /* Desktop/Body */
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.footer__additional-section__right__container__form
  input[type="submit"].hs-button {
  border: 2px solid #c1cadc !important;
  background: #fff !important;
  color: #020d2c !important;
  line-height: initial;
}

.footer__additional-section__right__container__form
  input[type="submit"].hs-button:hover {
  border-radius: 50px !important;
  background: var(
    --temedica-secondary-button-gradient,
    linear-gradient(270deg, #c1cadc 0%, #99a5be 100%)
  ) !important;
  color: #fff !important;
  line-height: initial;
}

.footer__additional-section__right__container__form input[type="email"] {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding-left: 0;
  border-bottom: 1px solid #99a5be;
}

.legal-consent-container .hs-form-booleancheckbox-display input {
  margin-top: 7px;
}

.legal-consent-container .hs-form-booleancheckbox-display > span p {
  margin-left: 0 !important;
}

.footer__additional-section__right__container__form input[type="email"]:focus,
.footer__additional-section__right__container__form
  input[type="email"]:focus-visible {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #99a5be;
}

.legal-consent-container p {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #99a5be;
}

form .hs-richtext p {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #99a5be;
}

form .hs-richtext a {
  color: #1250ef;
  line-height: 150%;
  text-decoration: underline;
  text-underline-offset: 2px;
}

form .hs-richtext a:hover {
  text-underline-offset: 2px;
}

form .hs-form-required {
  color: #ef6b51;
  margin-left: 2px;
}

@media (min-width: 1240px) {
  .footer-main {
    padding-left: 0;
    padding-right: 0;
  }
}

.footer-main-mobile {
  display: none;
}

.footer-legend__copy span {
    text-align: left; color: var(--primary-dark-grey, #6c6f6c); /* copy small */ font-family: Inter; font-size: 12px; font-style: normal; font-weight: 400; line-height: 20px;
  }

.footer-main .footer-nav-section ul li.footer-nav-title {
  color: var(--Primary-Dark-Grey, #6C6F6C);

  /* H4 */
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 140% */
}

@media (max-width: 980px) {
  footer {
    margin-top: 0;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 9999;
    position: relative;
  }

  .footer-main {
    display: none;
  }

  .footer-main-mobile {
    display: block;
  }

  .footer-main-mobile .logo {
    height: auto;
    margin-bottom: 47px;
    width: 110px;
  }

  .footer-main-mobile .logo img {
    max-width: 106px !important;
  }

  .footer-main-mobile .footer-nav-section label {
    padding-top: 16px;
    padding-bottom: 19px;
    border-top: 1px solid #dee2e9;
    display: block;
   
    color: var(--Primary-Dark-Grey, #6C6F6C);

    /* H4 */
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 140% */
  }

  .footer__container.content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-main-mobile .footer-nav-section:last-of-type label {
    border-bottom: 1px solid #dee2e9;
  }

  .footer-main-mobile .footer-nav-items ul {
    list-style-type: none;
    list-style-image: none;
  }

  .footer-main-mobile .footer-nav-section label.collapsed:before {
    content: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='11' width='16' height='1' fill='%2399A5BE'/%3E%3Crect x='11' y='20' width='16' height='1' transform='rotate(-90 11 20)' fill='%2399A5BE'/%3E%3C/svg%3E%0A");
    color: #99a5be;
    font-size: 30px;
    line-height: 120%;
    font-weight: 300;
    float: right;
    -moz-transition: -moz-transform 0.3s ease-in-out;
    -o-transition: -o-transform 0.3s ease-in-out;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    position: relative;
    margin-top: -5px;
    font-style: normal;
  }

  .footer-main-mobile .footer-nav-section label:not(.collapsed):before {
    content: url("data:image/svg+xml,%3Csvg width='16' height='1' viewBox='0 0 16 1' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='16' height='1' fill='%2399A5BE'/%3E%3C/svg%3E%0A");
    color: #99a5be;
    line-height: 120%;
    font-weight: 300;
    float: right;
    -moz-transition: -moz-transform 0.3s ease-in-out;
    -o-transition: -o-transform 0.3s ease-in-out;
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    position: relative;
    margin-top: -6px;
    font-style: normal;
    margin-right: 2px;
  }

  .footer-main-mobile
    .footer-nav-section:has(> label.collapsed)
    .footer-nav-items {
    display: none;
  }

  .footer-main-mobile
    .footer-nav-section:not(> label.collapsed)
    .footer-nav-items {
    display: block;
  }

  .footer-main-mobile .footer-nav-section .footer-nav-items {
    padding-top: 7px;
    padding-left: 0;
    list-style-type: none;
    list-style-image: none;
    margin: 0;
  }

  .footer-main-mobile .footer-nav-section .footer-nav-items li {
    margin-top: 12px;
  }

  .footer-main-mobile .footer-nav-section .footer-nav-items a {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 190%;
    color: #fff;
    width: 100%;
    display: block;
  }

  .footer-main-mobile .footer-legend-container {
    margin-top: 0;
    justify-content: flex-start;
  }

  .footer-main-mobile .footer-legend-bottom {
    display: flex;
    flex-direction: row;
    gap: 32px;
    width: 100%;
  }

  .footer-main-mobile .footer-legend-bottom a {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 190%;
    color: #99a5be;
    white-space: nowrap;
  }

  .footer-main-mobile .footer-legend-bottom > div {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 190%;
    color: #99a5be;
  }

  .footer-main-mobile .footer-legend-bottom.year-legend-text {
    margin-top: 16px;
    margin-bottom: 71px;
  }

  .footer-main-mobile .footer-legend-container .footer-legend-socials {
    margin-left: 0;
    margin-right: 32px;
  }

  .footer__additional-section__left {
    margin-bottom: 48px;
  }

  .footer__additional-section {
    flex-direction: column;
    margin-bottom: 60px;
  }

  .footer-main-mobile .footer-nav-section .footer-nav-items a {
    color: var(--footer-link-color);

    /* Copy Small */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 166.667% */
  }

  .footer-main-mobile .footer-nav-section .footer-nav-items a:hover {
    color: var(--footer-link-color-hover);
  }

  .footer-nav-items__sub-categories {
    padding-left: 0;
  }

  .footer-nav-items__category-label {
    margin-top: 16px;
    margin-bottom: 16px;
    color: var(--Primary-Black, #2D312D) !important;

    /* Copy Small Bold */
    font-family: Inter;
    font-size: 12px !important;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 20px; /* 166.667% */
    text-transform: uppercase;
  }

  .footer:not(.footer-landing-page) .dnd-section.footer-row-0-padding, 
  .footer:not(.footer-landing-page) .dnd-section.footer-row-1-padding {
    --border-bottom-offset: 0;
  }
}
