/**
 * Amarillo Banner Consumidor UE - Front
 *
 * @author José Carlos Amarillo
 */

.amarillo-banner-ue-source[hidden] {
  display: none !important;
}

.amarillo-banner-ue-trigger-wrap {
  display: inline-block;
  margin: 0.25rem 0;
}

.amarillo-banner-ue-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.amarillo-banner-ue-trigger:hover,
.amarillo-banner-ue-trigger:focus {
  text-decoration: none;
  outline: none;
}

.amarillo-banner-ue {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.amarillo-banner-ue.is-open {
  display: flex;
}

.amarillo-banner-ue-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.amarillo-banner-ue-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 100%);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  -webkit-overflow-scrolling: touch;
}

.amarillo-banner-ue-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.amarillo-banner-ue-close:hover,
.amarillo-banner-ue-close:focus {
  background: #fff;
  outline: 2px solid #222;
}

.amarillo-banner-ue-body {
  padding: 28px 24px 20px;
  text-align: center;
}

.amarillo-banner-ue-media {
  margin: 0 auto;
}

.amarillo-banner-ue-image {
  border: 1px solid black;
  display: block;
  width: fit-content;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

.amarillo-banner-ue-link-wrap {
  margin: 16px 0 4px;
}

.amarillo-banner-ue-link {
  display: inline-block;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: underline;
  word-break: break-word;
}

.amarillo-banner-ue-link:hover,
.amarillo-banner-ue-link:focus {
  text-decoration: none;
}

body.amarillo-banner-ue-locked {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .amarillo-banner-ue {
    padding: 8px;
    align-items: center;
  }

  .amarillo-banner-ue-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 12px;
  }

  .amarillo-banner-ue-body {
    padding: 40px 12px 16px;
  }

  .amarillo-banner-ue-image {
    max-height: 58vh;
  }

  .amarillo-banner-ue-link {
    font-size: 15px;
  }
}
