/**
 * Theme extras (featured product image fit). Loaded after main.css.
 */

.alpha-featured-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 14rem;
  padding: 0.75rem;
  background-color: #f8fafc;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .alpha-featured-product-media {
    min-height: 16rem;
  }
}

@media (min-width: 768px) {
  .alpha-featured-product-media {
    min-height: 20rem;
    padding: 1rem;
  }
}

.alpha-featured-product-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 13rem;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 640px) {
  .alpha-featured-product-media img {
    max-height: 15rem;
  }
}

@media (min-width: 768px) {
  .alpha-featured-product-media img {
    max-height: 18rem;
  }
}

#alpha-contact-form-message[hidden] {
  display: none;
}

#alpha-contact-form-message.is-success {
  color: hsl(142 76% 36%);
}

#alpha-contact-form-message.is-error {
  color: hsl(0 72% 51%);
}
