/* Floating PearPad-style notice (generic, no IP) */
.gv-aviso { overflow: visible;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border: 3px solid #0e78d6;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  overflow: hidden;
  z-index: 9999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.gv-aviso__header {
  background: #f3f5f7;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 15px;
  color: #333;
}

.gv-aviso__body {
  display: grid;
  grid-template-columns: 1fr 72px; /* text left, image right */
  gap: 10px;
  padding: 12px;
  align-items: start;
}

.gv-aviso__text {
  font-size: 14px;
  color: #222;
  line-height: 1.35;
}

.gv-aviso__media {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(180deg, #dfe9f3, #ffffff);
  border: 1px solid #e5eaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gv-aviso__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gv-aviso__footer {
  background: #e8f3ff;
  color: #0e78d6;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gv-aviso__close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #0e78d6;
  cursor: pointer;
  padding: 0 6px;
}

@media (max-width: 480px) {
  .gv-aviso { overflow: visible;
    bottom: 14px;
    right: 14px;
    width: 92vw;
  }
}


.gv-aviso { overflow: visible; position: fixed; }
.gv-aviso__wrap { position: relative; }

.gv-aviso__media--outside {
  position: absolute;
  left: -56px;            /* pull outside the card */
  top: 58px;              /* vertically aligned near middle of content area */
  width: 64px;
  height: 64px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  overflow: hidden;
  background: #fff;
  border: 2px solid #ff2f92; /* pink frame like reference */
}

.gv-aviso__media--outside img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gv-aviso__header {
  background: transparent;
  padding: 10px 12px 6px;
  font-weight: 800;
  font-size: 16px;
  color: #654bd6; /* roxo para lembrar o título */
}

.gv-aviso__body {
  display: block;
  padding: 8px 12px 12px;
}

.gv-aviso__footer {
  background: #cfe9ff;
  font-weight: 800;
}

/* MESSAGE CARD (white box) */
.gv-aviso__card {
  position: relative;              /* anchor for the outside avatar */
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #ff2f92;       /* pink edge like the reference frame */
  padding: 12px 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}

/* Outside-left thumbnail attached to the white message box */
.gv-aviso__media--outside {
  position: absolute;
  left: -72px;                     /* sits OUTSIDE to the left of the card */
  top: 4px;                        /* vertically near the top of the message */
  width: 64px;
  height: 64px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  overflow: hidden;
  background: #fff;
  border: 2px solid #ff2f92;
}

.gv-aviso__media--outside img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tweak general blocks */
.gv-aviso__header {
  background: transparent;
  padding: 10px 12px 6px;
  font-weight: 800;
  font-size: 16px;
  color: #654bd6;
}

.gv-aviso__body {
  padding: 8px 12px 12px;
}

.gv-aviso__text { font-size: 14px; color: #222; line-height: 1.35; }

.gv-aviso__footer {
  background: #cfe9ff;
  font-weight: 800;
}




/* === Outside-left photo variant (final) === */
.gv-aviso.gv-aviso--photo-outside { overflow: visible; }
.gv-aviso.gv-aviso--photo-outside .gv-aviso__wrap { position: relative; }
.gv-aviso.gv-aviso--photo-outside .gv-aviso__photo{
  position: absolute;
  left: -92px;               /* truly outside the white box */
  top: 60%;                  /* vertically centered relative to the card */
  transform: translateY(-50%);
  width: 84px; height: 84px;
  border-radius: 14px;
  background: #fff;
  border: 3px solid #0e78d6;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  overflow: hidden;
  display:flex;align-items:center;justify-content:center;
}
.gv-aviso.gv-aviso--photo-outside .gv-aviso__photo img{width:100%;height:100%;object-fit: contain;display:block;}
/* Keep the message body as a single column; image no longer affects layout */
.gv-aviso.gv-aviso--photo-outside .gv-aviso__body{display:block;padding:12px 14px;}


/* === Mobile adjustments: smaller, squarer box === */
@media (max-width: 480px){
  .gv-aviso{ width: 260px; border-radius: 12px; }
  .gv-aviso__header{ padding: 6px 10px; font-size: 14px; }
  .gv-aviso__body{ padding: 8px 10px; }
  .gv-aviso__text{ font-size: 13px; line-height: 1.25; }
  .gv-aviso__footer{ padding: 8px 10px; font-size: 12px; }
  .gv-aviso.gv-aviso--photo-outside .gv-aviso__photo{ width:72px; height:72px; left:-80px; }
}
