/* Input clear button*/
.clear-input-container {
  position: relative;
  display: inline-block;
}

.clear-input-button {
  /* button position */
  position: absolute;
  right: 4px;
  top: 10px;
  bottom: 0;
  /* button appearane */
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  appearance: none;
  border: none;
  border-radius: 50%;
  background: gray;
  margin: 0;
  padding: 2px;
  color: white;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
}

.clear-input-button:hover {
  background: darkgray;
}

/* ----END -------------- */


/*Boostrap modal for main menu search bar*/
#searchModal.modal {
  width: 100%;
  position: absolute;
  height: fit-content;
  right: 0;
  left: auto;
  z-index: 999;
  padding-right: 0 !important;
  padding-left: 0 !important;

  .modal-dialog {
    margin: 0 !important;
    max-width: none;

    .modal-content {
      border-radius: 0 0 0 100px;

      @media only screen and (max-width: 767px) {
        border-radius: 0 0 0 0;
      }

      .modal-header {
        padding: 0 !important;
        border: none !important;
      }

      .modal-body {
        padding: 0;

        .header-bar-main {
          height: 40px;

          .form-row {
            div:first-child {
              position: relative;
              margin-top: -25px;
            }

            div:last-child {
              margin-top: -5px;
              position: relative;
            }

            #modalSearchButton {
              padding: 0.1rem 0.37rem
            }

            #closeButton {
              font-size: 1.7rem;
            }
          }

          input.border-bottom {
            border-bottom-width: 2px !important;
          }
        }
      }
    }
  }
}

/* ----END -------------- */

/*Boostrap modal for webcams */
#webcamModal.modal {
  overflow: hidden !important;

  .modal-dialog {
    height: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0.5rem;

    .modal-content {
      height: 100%;

      iframe {
        height: 100%;
        width: 100%;
        border: none;
      }
    }
  }
}

/* ----END -------------- */


.bg-color-grey {
  background: #ededed;
}

.add-on-button-container {
  justify-content: start !important;
}

.add-on-button {
  margin-bottom: -2px;
}

.add-on-tag-top-margin {
  margin-top: -30px;
}

@media only screen and (max-width: 767px) {
  .add-on-tag-top-margin {
    margin-top: -5px;
  }
}

/* dot loader css*/

.dot-loader {
  width: 15px;
  aspect-ratio: 1;
  background: #139df4;
  border-radius: 50%;
  animation: l6 0.5s infinite linear alternate;
  color: #139df4b3;
}

@keyframes l6 {
  0% {
    box-shadow: 15px 0, -25px 0
  }
  50% {
    box-shadow: 15px 0, -15px 0
  }
  100% {
    box-shadow: 25px 0, -15px 0
  }
}
/* END dot loader css*/


/* venue tickets css */
.add-ticket-button-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.ticket-button-disabled {
  pointer-events: none;
  opacity: 0.5;
}

:is(#maxTicketMessage, #maxTicketMessageMobile) {
  animation: tilt-shaking 0.15s;
}

@keyframes tilt-shaking {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

#date-input {
  min-width: 145px;
}


/* END venue tickets css */


/* Sales channel and venue switcher css */
:root {
  --container-w: 1600px;
  --gap-large: 210px;
  --gap-small: 20px;
}

.page-wrapper {
  max-width: var(--container-w);
  margin: 0 auto;
}

.sticky-toggles {
  z-index: 100;
  position: fixed;
  bottom: var(--gap-small);

  .sales-channel-switch-button {
   margin-right: 0;

    span {
      margin-right: 0;
    }
  }

  /*
    On wide screens → (100vw - 1600px)/2 − 40px  = 40px past your content’s right edge
    If that calc ever drops below 20px, it’ll use 20px instead
  */
  right: max(
    var(--gap-small),
    calc((100vw - var(--container-w)) / 2 - var(--gap-large))
  );

  display: flex;
  gap: 8px;
}
:is(.summerSalesChannelLink,.winterSalesChannelLink) {
  border: none !important;
}

:is(.summerSalesChannelLink:hover,.winterSalesChannelLink:hover) {
  background: #fbba00 !important;
  border: none !important;
  span {
    color: #ffffff !important;
    font-weight: 500 !important;
  }
  img {
    filter: brightness(0) invert(1) !important;
  }
}

.sales-channel-switch-icon-active {
  filter: brightness(0) invert(1);
}

:is(.summerSalesChannelLink, .winterSalesChannelLink):not(.active-sales-channel-switch-button) {
  background: #eeeded;
}

.sales-channel-switch-font {
  font-size: 20px;
  font-weight: 400;
}

.title-fit-content {
  width: fit-content;
  max-width: 100%;
}

.truncate-lines-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* END Sales channel and venue switcher css */

/* Sticky filter area on product listing page */
.products-filter-area {
  position: sticky;
  top: 100px;
}

/* PAGINATION  */
.items-per-page {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;

  & select {
    padding: 8px 32px 8px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all 0.2s ease;

    &:hover {
      border-color: #139df4;
    }

    &:focus {
      outline: none;
      border-color: #139df4;
      box-shadow: 0 0 0 3px rgba(91, 159, 211, 0.1);
    }
  }

  & i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #495057;
  }
}

.pagination-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.button-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 991px) {
    .button-container{
      flex: 0 0 100%;
    }

   .first-page-btn,
    .last-page-btn {
      flex: 0 0 calc(50% - 10px);
      order: 999;
    }

    .first-page-btn {
      order: 998;
    }
}

.results-info {
  text-align: center;
}

.pagination-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  @media (max-width: 640px) {
    gap: 10px;
  }

  @media (max-width: 480px) {
    gap: 8px;
  }
}

.page-numbers {
  display: flex;
  gap: 8px;

  @media (max-width: 640px) {
    gap: 6px;
  }

  @media (max-width: 480px) {
    gap: 4px;
  }
}

.page-control,
.page-number {
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  border: 1.5px solid #e0e0e0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

  @media (max-width: 640px) {
    min-width: 44px;
    height: 44px;
  }

  @media (max-width: 480px) {
    min-width: 40px;
    height: 40px;
  }
}

.page-control {
  &:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #139df4;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(91, 159, 211, 0.15);
  }

  &.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }

  &:active:not(.disabled) {
    transform: scale(0.95);
  }
}

.fast-forward-button {
  text-align: center;
  padding-inline: 10px;
}

.page-number {
  &:hover:not(.active) {
    background: #f8f9fa;
    border-color: #139df4;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  &.active {
    border: 3px solid #139df4;
    color: #424242;
    box-shadow: 0 4px 12px rgba(91, 159, 211, 0.3);
    transform: scale(1.05);
  }

  &:active {
    transform: scale(0.95);
  }
}
/* END PAGINATION  */

/* Mobile add to cart */
.app-int-resort .sticky-price-footer {
    background: #fff !important;
    border-color: #ededed !important;
}

/* END Mobile add to cart */
/* Styles for anchor tags without href attribute to look like links */
a:not([href]) {
  color: #139df4;
  cursor: pointer;
  text-decoration: none;
}

a:not([href]):hover {
  color: #424242;
}
/* END Styles for anchor tags without href attribute to look like links */