/* ks_eprel — seta de classe energética (nested display) e modal da etiqueta */
.ks-eprel {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  vertical-align: middle;
  line-height: 1;
}
.ks-eprel__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  display: inline-block;
  border-radius: 2px;
}
.ks-eprel__btn:focus-visible {
  outline: 2px solid #1e4d9f;
  outline-offset: 3px;
}
/* A letra da classe ocupa ~55% da altura da seta; 1.7em faz a letra ≈ tamanho da letra do preço. */
.ks-eprel__arrow {
  display: block;
  height: var(--ks-eprel-h, 1.7em);
  width: auto;
}
.ks-eprel--product { font-size: var(--ks-eprel-price, 28px); margin: 0.15em 0; }
.ks-eprel--list { font-size: var(--ks-eprel-list, 18px); margin-top: 0.25em; }
.ks-eprel--cart { font-size: 16px; margin-left: 0.5em; }
.ks-eprel--header { font-size: 14px; }
.ks-eprel__fiche {
  font-size: 13px;
  line-height: 1.3;
  text-decoration: underline;
  color: inherit;
  opacity: 0.85;
}
.ks-eprel__fiche:hover { opacity: 1; }
.ks-eprel--legacy .ks-eprel__arrow { opacity: 0.95; }

/* Modal */
.ks-eprel-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ks-eprel-modal[hidden] { display: none; }
.ks-eprel-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.6);
}
.ks-eprel-modal__dialog {
  position: relative;
  background: #fff;
  color: #101b32;
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 20px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: inherit;
}
.ks-eprel-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eef1f7;
  color: #101b32;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}
.ks-eprel-modal__close:hover { background: #dde3ee; }
.ks-eprel-modal__close:focus-visible { outline: 2px solid #1e4d9f; outline-offset: 2px; }
.ks-eprel-modal__title {
  margin: 0 40px 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.ks-eprel-modal__model { margin: 0 0 12px; font-size: 14px; color: #3a4863; }
.ks-eprel-modal__label {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 14px;
  border: 1px solid #d3dae8;
}
.ks-eprel-modal__links {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.ks-eprel-modal__links a { color: #1e4d9f; text-decoration: underline; }
.ks-eprel-modal__source { margin: 8px 0 0; font-size: 12px; color: #64778f; }
.ks-eprel-modal__notice { font-size: 14px; color: #3a4863; margin: 0 0 12px; }
body.ks-eprel-open { overflow: hidden; }

@media (max-width: 480px) {
  .ks-eprel-modal { padding: 8px; align-items: flex-end; }
  .ks-eprel-modal__dialog { border-radius: 8px 8px 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: no-preference) {
  .ks-eprel-modal__dialog { animation: ks-eprel-in 160ms ease-out; }
  @keyframes ks-eprel-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
}
