@import url("../../../inati/_palette-ySWM8g-.css");

[data-controller~="inati--coloc-display--main-coloc-display"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;


  .section-title {
    align-self: start;
    padding-left: .5rem;

    @media (min-width: 360px) {
      padding-left: 2rem;
      font-size: 1.2rem;
    }

    @media (min-width: 500px) {
      font-size: 1.5rem;
    }

    h1 {
      margin-bottom: .4rem;
      color: black;
      font-size: 1.5em;
    }
  }

  .highlight {
    display: none;

    @media (min-width: 750px) {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .image-container {
      display: flex;
      justify-content: center; /* Centers the image horizontally */
      align-items: center;
      margin: 1rem;
      overflow: hidden; /* Ensures the cropped image doesn't overflow the container */
      width: 500px; /* Set the width of the container */
      height: 320px; /* Set the height of the container */
      border-radius: 2rem; /* Rounded corners for the container */
      max-width: 50vw;


      img {
        width: 520px; /* Make the image fill the width of the container */
        height: 350px; /* Make the image fill the height of the container */
        object-fit: cover; /* Crops the image while maintaining its aspect ratio */
        object-position: center; /* Centers the cropped portion of the image */    }
    }

    .description {
      font-size: 1.2rem;
      position: relative;
      margin: .5rem 0;
      max-width: 95vw;
      padding: 1rem;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: .5rem;

      .background-rectangle {
        position: absolute;
        z-index: -1;
        width: 40rem;
        height: 30rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 10rem;

        &.background-green {
          background-color: var(--inati-green-lightest);
        }

        &.background-orange {
          background-color: var(--inati-orange-lighter);
        }
      }

      .content {
        display: flex;
        justify-content: space-between;
        align-items: start;
        flex-direction: column;
        gap: 1rem;

        div {
          display: flex;
          flex-direction: column;
        }

        h2, h3, p, ul {
          width: 100%;
          margin: 0;
        }

        h3 {
          color: rgba(var(--inati-rgb-orange), 70%);
          font-size: 1.2em;
        }

        h4 {
          color: rgba(var(--inati-rgb-orange), 90%);
          font-size: 1em;
          margin: 0;
        }

        p.from {
          font-size: 1em;
        }

        ul {
          margin-left: 1rem;
        }

        a {
          transition: 0.5s ease;
          font-weight: bold;
          color: white;
          background-color: var(--inati-orange);
          text-decoration: none;
          font-size: 1em;
          border-radius: .5rem;
          text-align: center;
          padding: .75rem 1.25rem;
          margin-top: 1rem;

          &:hover, &:active {
            transform: scale(1.1);
          }
        }

        p.price-conditions {
          font-size: .6em;
        }
      }
    }
  }
}
