footer {
  background-color: var(--primary-main);
  top: 0px;
  position: relative;

  .footer .column:first-child {
    display: block;
  }

  &.footer-wrapper {

    .footer-text-medium,
    .footer-text-medium-xs {
      font-size: var(--body-s-nexa, var(--body-xs-arena));
      line-height: var(--lh-18px-nexa, var(--lh-18px-arena));
    }

    @media (width >=1200px) {
      .footer-text-medium {
        font-size: var(--body-xl-nexa, var(--heading-s-arena));
        line-height: var(--lh-24px-nexa, var(--lh-20px-arena));
      }
    }

    .footer-text-small {
      font-size: var(--body-xxs-nexa, var(--body-xxs-arena));
      font-style: italic;
      color: var(--tertiary-medium-grey);
      line-height: var(--lh-14px-nexa, var(--lh-16px-arena));
    }

    .footer-bot-link {
      font-size: var(--body-xxxs-nexa, var(--body-xxs-arena));
      line-height: var(--lh-20px-nexa, var(--lh-16px-arena));
      color: var(--tertiary-light-grey);
      text-transform: uppercase;
      float: left;

      @media (width >=1200px) {
        font-size: var(--body-s-nexa, var(--body-xs-arena));
        line-height: var(--lh-20px-nexa, var(--lh-20px-arena));
      }
    }

    .footer-rate {
      letter-spacing: calc(1em * 0.02);
      color: var(--tertiary-white);

      &.score {
        font-size: var(--heading-xl-nexa, var(--heading-xl-arena));
        line-height: var(--lh-36px-nexa, var(--lh-40px-arena));
      }

      &.total {
        font-size: var(--heading-xs-nexa, var(--heading-s-arena));
        line-height: var(--lh-20px-nexa, var(--lh-20px-arena));
      }
    }

    .scroll-text {
      font-size: var(--body-xs-nexa);
      color: var(--grayish-blue);
      line-height: var(--lh-14px-nexa);

      @media (width >=1024px) {
        font-size: var(--heading-xs-nexa);
        line-height: var(--lh-25_3px-nexa);
      }
    }
  }

  @media (width <1200px) {
    .top-title {
      display: none;
    }

    .footer-rating[style*="visibility: hidden"] {
      margin-bottom: 0;
    }
  }

 .footer-rating {   
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    @media (width >=1200px){
      margin-top: 0;
    }
    .google-icon{
      width: 24px;
      height: 24px;
    }
  }

  .download-app-wrp {
    margin-top: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    @media (width >=1200px) {
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .download-app-heading {
      font-size: 14px;
      font-weight: 500;
      margin-bottom: 8px;
      @media (width >=1200px) {
        font-size: 16px;
      }
    }

    .download-app-badges {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
    }

    .store-badge {
      display: inline-flex;
      line-height: 0;
    }

    .store-badge img {
      display: block;
      height: auto;
      width: 130px;
      object-fit: contain;
      @media (width >=1200px) {
        width: 90px;
      }
    }
  }

  .social-icon {
    margin-top: 16px;
    margin-bottom: 16px;
    order: 2;
    @media (width >=1200px) {
      margin-bottom: 0;
    }

    .text-medium {
      color: var(--tertiary-white);
      font-weight: var(--fw-500);
      @media (width >=1024px) {
        font-weight: var(--fw-400);
        color: var(--tertiary-white);
      }
    }

    a {
      display: flex;
      flex-direction: column;
      @media (width >=1200px){
        flex-direction: row;
      }
    }

    img {
      width: 18px;
      height: 18px;
      margin-left: 8px;
      margin-top: 10px;

      @media (width >=1024px) {
        margin-left: 5px;
        margin-top: 0;
      }
    }
  }
}

footer .footer>div {
  margin: auto;
}

footer .footer p {
  margin: 0;
}

footer .default-content-wrapper :is(h1, h2, h3, h4, h5, h6),
footer .default-content-wrapper p,
footer .columns-wrapper p,
footer .row,
footer .link-column-wrapper {
  margin: 0;
  padding: 0;
}

footer .footer {
  margin: 0;
  padding: 16px 20px 20px 20px;

  @media(width >=768px) {
    padding: 16px 56px 38px 56px;
  }

  @media(width >=1024px) {
    padding: 24px 56px 24px;
  }
}

footer .footer .footer__columns {
  padding-top: 0;
}

.footer-address,
.footer-rating,
.download-app-wrp {
  border-bottom: 0.5px solid rgb(255 255 255 / 0.5);
  margin-bottom: 16px;
  position: relative;

  @media (width >=1200px) {
    border-bottom: none;
    margin-bottom: 0;
  }
}

footer .footer .footer-top-section .accordian-content--expanded {
  margin-top: 0 !important;
  margin-bottom: 16px;
}

footer .accordian-content:not(.collpsable) {
  margin-bottom: 16px;
}

footer .footer__columns .column {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}

footer .footer .column {
  border-bottom: 0.5px solid rgb(255 255 255 / 0.5);

  &:last-child {
    @media (width >=1200px) {
      border-bottom: none;
    }
  }
}

footer .footer__columns .column:not(:first-of-type) {
  padding-top: 16px;
}

footer .footer__columns .column__heading {
  margin: 0;
  padding: 0;
  padding-bottom: 1rem;
  position: relative;
}

footer .footer__columns .default-content-wrapper p {
  padding-right: 0px;
}

footer .footer__columns .default-content-wrapper p:has(strong) {
  padding: 0;
}

footer .footer__columns .default-content-wrapper p strong {
  display: block;
  font-weight: 400;
}

.contact-wrapper.user__contact__icons {
  height: 1.25rem;
}

footer .footer__columns .column-0 .column__heading {
  padding-top: 0;
}


footer .footer__columns .user__contact .user__contact__icons a {
  padding: 0;
}

footer .footer__columns .column.contact-section .user__contact .user__contact__icons a {
  height: 24px;

  img {
    width: 24px;
    height: 24px;
  }
}

footer .row .link-grid-column.link-column-vertical .links-container li a:hover {
  color: var(--tertiary-white);
}

footer .footer__columns .column.contact-section {
  padding: 0;
  display: flex;
  flex-direction: column-reverse;
}


footer .user__contact .user__contact__icons {
  align-items: center;
}

footer .footer .footer-bottom-section {
  display: flex;
  flex-direction: column;
  width: 100%;

  .accordian-item {
    &::after {
      content: none;
    }
  }
}

footer .footer-bottom-section>* {
  flex-basis: 100%;
  flex-grow: 1;
}

.footer .footer-bottom-section .columns .footer__two-column-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;

  div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
}

.link-column .link-grid-column .links-container li {
  height: 20px;
}

.footer .contact-wrapper:has(.contact) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  padding-top: 32px;

  @media(width >=1366px) {
    padding-top: 44px;
  }
}

@media(width <1366px) {
  .footer .contact-wrapper:has(.contact) {
    height: auto !important;
  }
}


.footer .footer__columns .default-content-wrapper {
  display: flex;

}

.footer .footer-bottom-section .columns .footer__two-column-section div:first-child p:first-child {
  margin-bottom: 4px;
}

.footer .footer__columns .column.contact-section .user__contact .user__contact__icons {
  gap: 36.4px;
  justify-content: space-between;
}

footer .footer__columns .accordian-item {
  padding-bottom: 0;
}

footer .footer__columns .accordian-item--expanded {
  transition: all 0.3s ease-in-out;
}

footer .footer-top-section .accordian-item::after,
footer .link-column-vertical:has(ul li) .accordian-item::after {
  content: "";
  position: absolute;
  right: 0;
  height: 20px;
  width: 20px;
  background-image: url("../../icons/collapes.svg");
}

footer .footer-top-section .accordian-item--expanded::after,
footer .link-column-vertical:has(ul li) .accordian-item--expanded::after {
  content: "";
  position: absolute;
  right: 0;
  height: 20px;
  width: 20px;
  transform: rotate(180deg);
}

footer .accordian-content {
  overflow: hidden;
  padding-top: 0;
  visibility: hidden;
  height: 0;
  transition: all 0.3s ease-in-out;
}

footer .accordian-content--expanded {
  margin-top: 16px !important;
  visibility: visible;
}

footer .row .link-grid-column.link-column-horizontal .link-column__heading {
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

footer .footer-bottom-section .columns-wrapper {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--tertiary-medium-dark-grey);
  width: 100%;
  padding-top: 2rem;

  @media (width >=1200px) {
    border-bottom: none;
    padding-top: 0;
  }
}

footer .footer-bottom-section .link-column-wrapper {
  padding-top: 32px;
}

footer .row .link-grid-column.link-column-horizontal .accordian-content {
  overflow: auto;
  visibility: visible;
  height: fit-content;
}

footer .footer-bottom-section .link-column-horizontal .links-container {
  gap: 4px 26px;
  margin: 0;
}

footer .row .link-grid-column.link-column-horizontal .accordian-content.links-container {
  overflow: hidden;
}

footer .footer-bottom-section .accordiant-item.link-column__heading {
  padding-bottom: 0;
}

footer .footer-bottom-section .link-column-horizontal {
  gap: 16px;
}

footer .footer .footer-top-section {
  padding-bottom: 0;
  padding-top: 0;
}

@media (width >=1200px) {
  footer.footer-wrapper .footer {
    margin: 0;
    padding-top: 0;
  }

  footer .footer-top-section {
    display: block;
    padding-bottom: 4rem;
  }

  .footer .footer__columns .default-content-wrapper {
    display: block;
    margin-top: 0;
  }

  .footer .footer__columns .column.contact-section .user__contact .user__contact__icons {
    gap: 16px;
  }

  footer .footer-top-section :is(h1, h2, h3, h4, h5, h6) {
    display: block;
    max-width: 24.375rem;
  }

  footer .footer__columns {
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    display: flex;
  }

  footer .footer__columns--collapsed,
  footer .footer__columns--collapsed .column {
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  footer .accordian-content {
    visibility: visible;
    height: fit-content;
  }

  footer .footer__columns .column {
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  footer .footer__columns .column__heading {
    padding-top: 0;
    padding-bottom: 20px;
  }

  footer .footer__columns .default-content-wrapper {
    margin: 0;
  }

  footer .footer__columns .default-content-wrapper p,
  footer .footer__columns .default-content-wrapper a {
    display: block;
  }

  footer .footer__columns .default-content-wrapper a {
    padding-top: 4px;
  }

  .footer .footer-bottom-section .columns .footer__two-column-section {
    flex-direction: row;
    gap: 193px;
  }

  footer .footer__columns .column:not(:last-of-type) {
    border-bottom: none;
  }

  footer .footer__columns .column:not(:first-of-type) {
    padding-top: 0;
  }

  footer .accordian-item::after,
  footer .accordian-item--expanded::after {
    display: none;
  }

  footer .footer__columns .column.contact-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;

    .user__contact {
      gap: 1rem;
    }
  }

  footer .footer__columns .column.contact-section .column__heading,
  footer .footer__columns .column.contact-section .user__contact :is(h1, h2, h3, h4, h5, h6) {
    display: block;
  }

  footer .footer__columns .user__contact :is(h1, h2, h3, h4, h5, h6) {
    padding: 0;
  }

  footer .user__contact .user__contact__icons {
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 0;
  }

  footer .footer-bottom-section {
    padding-top: 20px;
  }

  footer .footer-bottom-section .columns-wrapper {
    display: block;
  }

  footer .footer-bottom-section .columns-wrapper .columns>div {
    gap: 24px;
    align-items: stretch;
    flex-direction: row;
    justify-content: space-between;
  }

  footer .footer-bottom-section .columns-wrapper .columns>div>div {
    display: flex;
    flex-direction: column;
  }

  footer .footer-bottom-section .columns-wrapper .columns>div>* {
    flex-basis: auto;
  }

  footer .footer-bottom-section .columns-wrapper .columns>div>div>*:last-of-type {
    margin-top: 0;
  }

  footer .footer-bottom-section .columns-wrapper .columns>.footer__two-column-section>div:first-of-type {
    width: calc((var(--grid-formula) * 7) + (var(--grid-gutter-width) * (7 - 1)));
  }

  footer .footer-bottom-section .columns-wrapper .columns>.footer__two-column-section>div:last-of-type {
    width: calc((var(--grid-formula) * 3.5) + (var(--grid-gutter-width) * (3.5 - 1)));
  }

  .link-column .link-grid-column .links-container {
    gap: 0.688rem;
  }

  .contact-section {
    width: 100%;
    border-top: 1px solid var(--tertiary-medium-dark-grey);
  }

  footer .footer__separator {
    height: 1px;
    width: 100%;
    background: var(--tertiary-medium-dark-grey);
    position: relative;
    margin-top: 2.688rem;
    margin-bottom: 1.5rem;
  }

  footer .footer__separator::after {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    background-color: var(--tertiary-white);
    background-image: url("../../icons/footer-expand.svg");
    left: 50%;
    top: -10px;
    margin-left: -10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
  }

  footer .footer__separator--collapsed::after {
    transform: rotate(180deg);
  }

  footer .collpsable {
    transition: all 0.3s ease-in-out;
    visibility: visible;
    opacity: 1;
  }

  footer .collpsable.hide__section {
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
  }

  footer .footer-bottom-section .link-column-horizontal .link-column__heading {
    margin: 0;
    padding: 0;
  }

  footer .footer-bottom-section .link-column-horizontal .links-container {
    column-gap: 36px;
  }

  footer .footer__columns .column.contact-section .user__contact .user__contact__icons a {
    scale: 1;
    opacity: 1;
    height: auto;
  }

  .footer .footer-bottom-section .columns-wrapper {
    padding-bottom: 16px;
  }

  footer .row .link-grid-column.link-column-horizontal .accordian-content.links-container {
    overflow: auto;
  }

  footer .footer__columns .column.contact-section .user__contact .user__contact__icons a[title="X"] {
    scale: 1;
    height: auto;
  }

  footer .footer-bottom-section .link-column-horizontal {
    gap: unset;
  }
}

.footer-wrapper {
  .footer__link-grid-container {
    flex-wrap: wrap;
    overflow: unset;
  }

  .contact-wrapper {
    width: 100%;

    .user__contact {
      display: block;

      .footer-text-medium-xs {
        color: var(--tertiary-white);
        margin-bottom: 11px;
      }

      .user__contact__icons {
        @media (width >=1200px) {
          flex-wrap: nowrap;
          gap: 16px;
          padding-top: 16px;
          padding-bottom: 0;
        }

        .user__contact--icon {
          display: flex;
          flex-direction: row;
        }
      }
    }
  }

  .footer-top-section> :is(h1, h2, h3, h4, h5, h6) {
    display: none;
  }

  @media (width>=1200px) {
    .footer-top-section> :is(h1, h2, h3, h4, h5, h6) {
      display: block;
    }
  }

  .footer-address {
    &>div {
      gap: 16px;
      display: flex;
      flex-direction: column;
    }

    .address-line-3 {
      margin-top: var(--m-16px);
    }

    .address-line:last-child {
      margin-top: 16px;
    }
  }

  .colon {
    @media (width < 1200px) {
      display: none;
    }
  }

  .footer-rating {
    @media (width < 1200px){
      margin-bottom: 0;
    }
    .footer-rating-title {
      margin-bottom: 16px;
      line-height: var(--lh-20px-arena);
      display: none;
    }
    .accordian-content {
      p{
        display: none;
      }
      .btn.btn-lg{
        margin-top: 0;
        padding: 12px;
        column-gap: 6px;
      }
    }

    .button {
      margin-top: 16px;
      width: fit-content;
      @media (width >=1200px){
        margin-top: 32px;
      }
    }

  }

  @media (width >=1200px) {
    .footer {
      .footer-top-section {
        display: flex;
        padding: 0 0 4.313rem;
        margin: 0;
        gap: 24px;

        .g-xl-6 {
          width: calc((var(--grid-formula) * 6) + (var(--grid-gutter-width) * (6 - 1)));
        }

        .g-xl-4 {
          width: calc((var(--grid-formula) * 4) + (var(--grid-gutter-width) * (4 - 1)));
        }

        .g-xl-2 {
          width: calc((var(--grid-formula) * 2) + (var(--grid-gutter-width) * (2 - 1)));
        }
      }

      .footer-top-section :is(h1, h2, h3, h4, h5, h6) {
        max-width: 446px;
      }

      >div {
        &:nth-last-child(1) {
          padding: 0;
          padding-top: 44px;
          border-top: 1px solid var(--tertiary-medium-dark-grey);

          .link-column-wrapper {
            padding: 0;
          }
        }

        &:nth-last-child(2) {
          padding-bottom: 44px;
        }
      }
    }
  }

  @media (width >=1366px) {
    .footer-top-section {
      padding: 0 0 4rem;
      justify-content: space-between;
    }
  }

  @media (width >=1920px) {
    .footer {
      .footer-top-section {
        display: flex;
        padding: 0 0 4.313rem;
        margin: 0;
      }

      .footer-top-section :is(h1, h2, h3, h4, h5, h6) {
        max-width: 446px;
      }

      .footer-rating-column {
        margin-left: 176px;
      }

      .footer-bottom-section .columns .footer__two-column-section {
        gap: 328px;
      }

      .footer-bottom-section .columns-wrapper .columns>.footer__two-column-section>div:first-of-type {
        width: calc((var(--grid-formula) * 5) + (var(--grid-gutter-width) * (5 - 1)));
      }

      .footer-bottom-section .columns-wrapper .columns>.footer__two-column-section>div:last-of-type {
        width: calc((var(--grid-formula) * 5) + (var(--grid-gutter-width) * (5 - 1)));
      }
    }
  }
}

body.nexa.appear:has(.get-quote-sticky, .shadow-footer.navbar-nexa) .footer-bottom-section .link-column-wrapper {
  @media (width < 1200px) {
    padding-bottom: 80px;
  }

  @media (width < 1024px) {
    padding-bottom: 55px;
  }
}

body.arena {
  &.appear:has(.get-quote-sticky, .shadow-footer.navbar-nexa) .footer-bottom-section .link-column-wrapper {
    padding-bottom: 55px;
    @media (width >=1200px) {
      padding-bottom: 0px;
    }
  }
  footer {
    background: var(--dark-blue);

    .footer {
      padding-bottom: 24px;

      @media (width >=1024px) {
        padding-bottom: 32px;
      }

      .footer-top-section {
        @media (width >=1200px) {
          padding-bottom: 64px;
        }
      }

      .contact-wrapper:has(.contact) {
        @media (width >=1366px) {
          padding-top: 40px;
        }
      }
    }

    &.footer-wrapper {
      .footer-text-medium {
        font-weight: var(--fw-500);
      }

      .footer-text-small {
        font-weight: var(--fw-400);
      }

      .contact-wrapper {
        .user__contact {
          .footer-text-medium-xs {
            margin-bottom: 8px;
          }

        }
      }
    }

    .footer-bottom-section .columns-wrapper {
      border-bottom: 0.5px solid rgb(255 255 255 / 0.3);
    }

    .social-icon{
      .text-medium {
        font-size: var(--heading-s-arena);
        font-weight: var(--fw-400);
        line-height: var(--lh-24px-arena);
      }
    }
  }

  .footer-address,
  .footer-rating,
  .download-app-wrp,
  .footer .column:not(:last-of-type) {
    border-bottom: 0.5px solid rgb(255 255 255 / 0.3);

    @media (width >=1200px) {
      border-bottom: 0;
    }
  }

  .footer .footer-bottom-section .columns .footer__two-column-section div:first-child p:first-child {
    margin-bottom: 0;
  }

  .address-line {

    &.footer-text-medium,
    &.text-medium {
      @media (width >=1200px) {
        font-size: var(--heading-s-arena);
        line-height: var(--lh-20px-arena);
      }
    }
  }

  .footer-address {
    &>div {
      gap: 20px;
    }

    .address-line-3 {
      @media (width >=1200px) {
        margin-top: 24px;
      }
    }
  }

  .footer-rating {
    .btn {
      &.btn-secondary {
        &:hover {
          background-color: var(--Primary-main-arena);
          color: var(--tertiary-white);
        }
      }

      &.btn-lg{
        padding: 12px 24px;
        font-size: var(--heading-s-arena);
        color: var(--Primary-main-arena);
        line-height: var(--lh-18px-arena);
      }
    }
  }

  @media (width >=1200px) {
    .footer .footer__columns .column.contact-section .user__contact .user__contact__icons {
      padding-top: 0;
      gap: 36px;
    }

    footer .footer__columns {
      gap: 40px;
    }

    .footer-wrapper .footer {
      &>div {
        &:nth-last-child(1) {
          padding-top: 24px;
          border-top: 0;
        }

        &:nth-last-child(2) {
          padding-bottom: 0px;
        }
      }
    }

    footer .footer-bottom-section .link-column-horizontal {
      padding-top: 16px;
    }

    .footer-bottom-section .link-column-horizontal .footer-text-medium-xs {
      line-height: var(--lh-20px-arena);
      text-transform: uppercase;
    }

    .footer-wrapper .link-grid-column .links-container li a {
      text-decoration: none;
    }
  }
}

body.hypercommercial {
  footer{
    background: var(--com-text-color-dark-body);
  }

  .download-app-wrp {
    display: none;
  }
  @media (width >= 1200px){
    footer.footer-wrapper .footer { 
      padding-top: 80px;
    }
  }
  .shadow-footer{
    *{
      color: var(--tertiary-black);
    }
    .nav-hamburger-icon{
      content: url(../../icons/com-handburger_icon.svg);
    }
    .nav-call-icon {
      content: url(../../icons/call-icon-com.svg);
      filter: none;
    }
  }
}

body.landing-page {
  &:not(.nexa){
    footer {
      background: var(--Primary-main-arena);
    }
  }
  footer {
    .footer {
      padding-block: 22px;
    }
  }

  .footer-wrapper .footer>div:nth-child(1) {
    padding-top: 0;
    border-top: none;
  }
                  
  footer .accordian-content {
    display: none;
  }

  .accordian-item {
    font-size: var(--fs-16px);
    font-weight: var(--fw-300);
    line-height: var(--lh-20px-arena);
  }
}
