.envira-ai-modal {
  display: none;

  .envira-ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9991;
  }

  .envira-ai-upsell-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding-left: 30px;
    border-radius: 16px;
    z-index: 9992;
    max-width: 535px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    overflow-y: auto;

    .close-envira-ai-upsell {
      position: absolute;
      top: 0px;
      right: 10px;
      background: transparent;
      border: none;
      font-size: 30px;
      text-decoration: none;
      color: #000;
      outline: none;
      border: none;
      cursor: pointer;
      background: none;
      &:focus,
      &:active {
        outline: none;
        border: none;
        box-shadow: none;
      }
    }
  }

  .upsell-content-container {
    width: 100%;
    padding-top: 30px;

    h3 {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
      margin-top: 5px;
    }

    .upsell-two-column {
      display: flex;
      justify-content: space-between;
      padding-top: 15px;

      .upsell-left-column {
        width: 55%;
        .top-content {
          h4 {
            font-size: 15px;
            font-weight: 600;
            margin: 0;
          }
          ul {
            list-style-type: disc;
            padding-left: 20px;
            li {
              line-height: 1;
              &::marker {
                color: #7cc148;
                font-size: 1.5em;
              }
            }
          }
        }

        .bottom-content {
          padding-top: 25px;
          padding-bottom: 18px;

          .gift-text {
            font-size: 12px;
						margin-top: 12px;

            .offer-text {
              font-weight: 700;
            }

            .gift-icon {
              vertical-align: middle;
              margin-right: 2px;
							margin-top: -5px;
            }
          }
        }
      }

      .upsell-right-column {
        width: 45%;
        flex: 1;
        border-bottom-right-radius: 16px;
        overflow: hidden;

        img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }

	/**
	 * Responsive.
	 */
  @media (max-width: 782px) {
    .upsell-content-container {
      .upsell-two-column {
        .upsell-left-column {
          .bottom-content {
            .button {
              line-height: 38px;
            }
          }
        }
      }
    }
  }

  @media (min-width: 481px) and (max-width: 588px) {
    .envira-ai-upsell-modal-content {
      width: 85vw;
    }
  }

  @media (max-width: 480px) {
    .envira-ai-upsell-modal-content {
      max-width: 75%;
      padding: 15px;
      max-height: 85vh;
      top: 10%;
      transform: translate(-50%, 0);
      overflow-y: auto;
    }

    .upsell-content-container {
      padding-top: 20px;

      h3 {
        font-size: 16px;
      }

      .upsell-two-column {
        flex-direction: column;

        .upsell-left-column,
        .upsell-right-column {
          width: 100%;
        }

        .upsell-right-column {
          img {
            display: none;
          }
        }
      }
    }

    .close-envira-ai-upsell {
      font-size: 25px;
    }
  }
}
