/* CSS for workspace hotspot section - Used in single and multiple workspace hotspot section - HT */

.f-workspace-hotspot {
  .section {
    margin: 0 auto;
  }

  .page-btn {
    margin: 0;
    cursor: pointer;
    &:hover .img-thumb, &[aria-current="true"] .img-thumb {
      filter: saturate(1);
    }
    &:hover {
      .page-btn__line {
        background: transparent;
      }
      .text-thumb {
        color: rgb(var(--heading-color));
      }
      .disclossure__text-thumb {
        box-shadow: 0px 5px 0px rgb(var(--heading-color));
      }
    }
    .disclossure__text-thumb {
      box-shadow: 0px 5px 0px var(--color-gray-bar);
    }
    .text-thumb {
      color: var(--color-gray-text);
      text-transform: none;
    }
   .img-thumb {
      filter: saturate(0.2);
    }
  }

  .slideshow .container {
    padding: 0;
  }

  .page-btn__line {
    width: auto;
    height: auto;
    margin: 0;
    background-color: transparent;
    border-radius: 0;
  }

  [data-autoplay=false] [aria-current=true] {
    > .page-btn__line {
      background-color: transparent;
    }
    .text-thumb {
      color: rgb(var(--heading-color));
    }
    .disclossure__text-thumb {
      box-shadow: 0px 5px 0px rgb(var(--heading-color));
    }
  }

  .hotspot__card {
    border-radius: 10px;
    padding: 0.6rem;
    .flex {
      flex-direction: column;
      align-items: center;
    }

    img {
      object-fit: contain;
      object-position: center;
      width: 9rem;
      background-color: var(--bg-gray-color);
      margin-bottom: 1rem;
    }

    .price--bottom .price__current {
      font-size: var(--large-text);
      font-weight: var(--weight-semi-bold);
    }

    .wrapper__text {
      .flex {
        flex-direction: row;
      }

      .price__was .js-value,
      .price__current .js-value {
          line-height: 1;
          font-size: var(--regular-text);
      }

      .price__from {
        display: block;
        line-height: 1;
        font-size: var(--regular-text);
      }
    }
  }

  .slideshow-nav {
    top: 0;
    left: 0;
    margin: 10rem 0 0;
  }

  .slideshow__slide {
    padding-bottom: 0;
  }

  .section__buttons {
    justify-content: space-around;
    flex-direction: column;
    .btn {
      display: flex;
      width: 90%;
      margin-inline: auto;
      margin-block-end: 1rem;
      &.btn--secondary path {
        fill: rgb(var(--btn-alt-text-color));
      }
    }
  }
}

@media (min-width: 769px) {
  .f-workspace-hotspot {
    .hotspot__card--wide {
      width: 30rem;
      padding: 1rem 1rem 1rem 0;
      border-radius: 10px;
    }

    .hotspot__card {
      .flex {
        flex-direction: row;
      }

      img {
        margin-bottom: 0;
      }
    }

    .slideshow-pagination-wrapper {
      width: 80%;
    }

    .section__buttons {
      flex-direction: row;
      width: 80%;
      .btn {
        display: flex;
        width: 44%;
        max-width: 30rem;
      }  
    }
  }
}
