.pricing-summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  &__wrapper {
    overflow: hidden;
    overflow-y: auto;
    height: calc(100vh - 350px);
    @extend %scrollbar-thin;
  }

  &__group {
    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.6s ease-out forwards;

    // Use nth-child for delay
    // &:nth-child(1) {
    //   animation-delay: 0.1s;
    // }
    // &:nth-child(2) {
    //   animation-delay: 0.2s;
    // }
    // &:nth-child(3) {
    //   animation-delay: 0.3s;
    // }
  }

  &__property {
    color: var(--tide-booking-sidebar-body-label-color);
    font-size: var(--tide-booking-sidebar-body-label-font-size);
    font-weight: var(--tide-booking-sidebar-body-label-font-weight);
  }

  &__region {
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  &__region--pricing {
    position: sticky;
    bottom: 0;
    background: var(--tide-booking-sidebar-footer-background);
    border-radius: 0px 0px var(--tide-booking-sidebar-frame-radius) var(--tide-booking-sidebar-frame-radius);

    small {
      font-size: var(--tide-booking-sidebar-footer-small-font-size);
      color: var(--tide-booking-sidebar-footer-small-color);

      strong {
        color: var(--tide-booking-sidebar-footer-small-strong-color);
      }
    }

    .pricing-summary__row + .pricing-summary__row {
      margin-top: 0;
    }
  }

  &__region + &__region {
    border-top: var(--tide-booking-sidebar-body-border);
  }

  &__region + &__region--pricing {
    padding: 15px 0rem;
  }

  &__row {
    width: 100%;
    @include row;
    justify-content: space-between;
    font-size: var(--tide-booking-sidebar-body-font-size);
    font-family: var(--tide-booking-sidebar-body-font-family);
    line-height: 1.3;

    &--sub {
      padding-left: 1rem;

      .pricing-summary__property,
      .pricing-summary__value {
        font-size: calc(var(--tide-booking-sidebar-body-font-size) - 1px);
      }
    }
  }

  &__title {
    margin-bottom: 0;
    color: var(--tide-booking-sidebar-body-title-color);
    font-family: var(--tide-booking-sidebar-body-title-font-family);
    font-size: var(--tide-booking-sidebar-body-title-font-size);
    font-weight: var(--tide-booking-sidebar-body-title-font-weight);
  }

  &__value {
    margin-left: 15px;
    text-align: right;
    color: var(--tide-booking-sidebar-body-color);
    font-weight: var(--tide-booking-sidebar-body-font-weight);

    &--flight {
      font-weight: var(--tide-booking-sidebar-body-flight-font-weight);
      color: var(--tide-booking-sidebar-body-flight-color);
    }
  }

  &__social {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    @include column;
    @include flex--centerXY;
    text-align: center;
    box-sizing: border-box;
  }
}

.pricing-summary .pricing {
  @include media-lg {
    margin-top: -15px * 0.4;
  }
}

.pricing-summary__region--pricing {
  .pricing .pricing__price {
    font-size: var(--tide-booking-sidebar-footer-advance-font-size);
    font-weight: var(--tide-booking-sidebar-footer-advance-font-weight);
    color: var(--tide-booking-sidebar-footer-advance-color);
    margin-top: 0.3rem;
  }

  .pricing-summary__row--total-price {
    .pricing__price {
      //font-size: 1.8rem;(
      font-size: var(--tide-booking-sidebar-footer-total-font-size);
      font-weight: var(--tide-booking-sidebar-footer-total-font-weight);
      color: var(--tide-booking-sidebar-footer-total-color);
      line-height: 1.8;
    }
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-summary__region--fade-in {
  animation: fadeInUp 0.6s ease-out both;
}
