/* AhorroTenerife v7: standalone suggestion composer. */
.at-mejoras-trigger {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 80px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 16px 8px 9px;
  border: 1px solid #b8f1d3;
  border-radius: 100px;
  background: #14794d;
  color: #fff;
  box-shadow: 0 10px 28px rgba(5, 45, 31, .28);
  font: 700 .82rem/1.2 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.at-mejoras-trigger:hover { background: #0d643e; }
.at-mejoras-trigger__icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #dff8e9;
  color: #116b44;
  font-size: 1.05rem;
}
.at-mejoras-trigger:focus-visible,
.at-mejoras-dialog :focus-visible { outline: 3px solid #ffc857; outline-offset: 3px; }
.at-mejoras-dialog {
  width: min(94vw, 570px);
  max-height: min(90dvh, 760px);
  margin: auto;
  padding: clamp(20px, 4vw, 34px);
  overflow: auto;
  border: 1px solid #b7d3c6;
  border-radius: 16px;
  background: #fff;
  color: #15332b;
  box-shadow: 0 26px 90px rgba(0, 29, 19, .3);
  font: 400 1rem/1.5 "Segoe UI", system-ui, sans-serif;
}
.at-mejoras-dialog::backdrop { background: rgba(4, 27, 29, .67); }
.at-mejoras-dialog__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.at-mejoras-dialog__eyebrow { margin: 0 0 3px; color: #16734d; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.at-mejoras-dialog h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.18; }
.at-mejoras-dialog__close { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid #c5d5ce; border-radius: 50%; background: #f6faf7; color: #244a3c; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.at-mejoras-dialog > p { margin: 13px 0; }
.at-mejoras-dialog__notice { color: #165d40; font-weight: 700; }
.at-mejoras-dialog__page { padding: 10px 12px; border-radius: 7px; background: #edf6f0; overflow-wrap: anywhere; font-size: .85rem; }
.at-mejoras-dialog label { display: block; margin: 14px 0 7px; font-weight: 750; }
.at-mejoras-dialog textarea { display: block; width: 100%; min-height: 145px; padding: 12px; border: 1px solid #8eaaa0; border-radius: 8px; resize: vertical; color: #15332b; background: #fff; font: inherit; }
.at-mejoras-dialog textarea[aria-invalid="true"] { border-color: #b92d35; }
.at-mejoras-dialog__help,
.at-mejoras-dialog__privacy { margin: 9px 0; color: #4d655a; font-size: .81rem; }
.at-mejoras-dialog__privacy a { color: #0b6745; text-decoration: underline; }
.at-mejoras-dialog__error { min-height: 1.3em; margin: 5px 0; color: #a01c24; font-size: .86rem; font-weight: 700; }
.at-mejoras-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.at-mejoras-dialog__actions button { min-height: 44px; padding: 10px 16px; border-radius: 7px; font: 700 .88rem/1.2 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.at-mejoras-dialog__cancel { border: 1px solid #a9bcb2; background: #fff; color: #234437; }
.at-mejoras-dialog__send { border: 1px solid #14794d; background: #14794d; color: #fff; }
.at-mejoras-dialog__send:hover { background: #0d643e; }
.at-mejoras-dialog__status { min-height: 1.2em; margin: 12px 0 0; color: #315e48; font-size: .81rem; }
@media (max-width: 600px) {
  .at-mejoras-trigger { right: 12px; bottom: 71px; }
  .at-mejoras-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 20px; }
  .at-mejoras-dialog__actions { flex-direction: column-reverse; }
  .at-mejoras-dialog__actions button { width: 100%; }
}


/* Verified access remains separate from the email alternative. */
.at-mejoras-dialog__preview {
  margin: 14px 0 4px;
  padding: 11px 13px;
  border: 1px solid #bcd9c8;
  border-radius: 8px;
  background: #edf8f1;
  color: #155b3c;
  font-size: .87rem;
  font-weight: 700;
}
.at-mejoras-dialog__access {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #c7d9d0;
  border-radius: 10px;
  background: #f6faf7;
}
.at-mejoras-dialog__access h3 { margin: 0; font-size: 1.1rem; }
.at-mejoras-dialog__access-help { margin: 4px 0 12px; color: #4d655a; font-size: .81rem; }
.at-mejoras-dialog__access label { margin-top: 11px; font-size: .85rem; }
.at-mejoras-dialog__inline { display: flex; align-items: stretch; gap: 8px; }
.at-mejoras-dialog__inline input {
  min-width: 0;
  flex: 1;
  min-height: 43px;
  padding: 9px 10px;
  border: 1px solid #8eaaa0;
  border-radius: 7px;
  background: #fff;
  color: #15332b;
  font: inherit;
}
.at-mejoras-dialog__inline input[aria-invalid="true"] { border-color: #b92d35; }
.at-mejoras-dialog__inline button,
#at-mejoras-logout {
  min-height: 43px;
  padding: 9px 13px;
  border: 1px solid #14794d;
  border-radius: 7px;
  background: #fff;
  color: #0d643e;
  font: 700 .84rem/1.2 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.at-mejoras-dialog__inline button:hover,
#at-mejoras-logout:hover { background: #e6f5eb; }
#at-mejoras-session p { margin: 4px 0 12px; overflow-wrap: anywhere; font-size: .87rem; }
.at-mejoras-dialog__auth-status { min-height: 1.3em; margin: 10px 0 0; color: #315e48; font-size: .82rem; }
.at-mejoras-dialog button:disabled { opacity: .55; cursor: wait; }
.at-mejoras-dialog__send {
  border-color: #14794d;
  background: #fff;
  color: #0d643e;
}
.at-mejoras-dialog__send:hover { background: #e6f5eb; }
.at-mejoras-dialog__private-send {
  border: 1px solid #14794d;
  background: #14794d;
  color: #fff;
}
.at-mejoras-dialog__private-send:hover { background: #0d643e; }
.at-mejoras-dialog--preview .at-mejoras-dialog__send { background: #14794d; color: #fff; }
.at-mejoras-dialog--preview .at-mejoras-dialog__send:hover { background: #0d643e; }
@media (max-width: 600px) {
  .at-mejoras-dialog__access { padding: 13px; }
  .at-mejoras-dialog__inline { flex-direction: column; }
  .at-mejoras-dialog__inline button { width: 100%; }
}

