* { box-sizing: border-box; margin: 0; padding: 0; }

.consent-page-hint { color: #5f6368; font-size: 14px; text-align: center; }

.consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e8eaed;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1000;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.1, 0.64, 1) both;
  transform-origin: bottom center;
}

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.consent-bar.minimizing { animation: shrinkToBubble 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes shrinkToBubble { 0% { transform: translateY(0) scale(1); opacity: 1; border-radius: 0; } 60% { transform: translateY(20px) scale(0.3); opacity: 0.6; } 100% { transform: translateY(80px) scale(0); opacity: 0; } }

.consent-icon { flex-shrink: 0; display: flex; align-items: center; }
.consent-text { flex: 1; min-width: 220px; }
.consent-text strong { font-family: 'Google Sans', sans-serif; font-size: 14px; font-weight: 500; color: #202124; display: block; margin-bottom: 4px; }
.consent-text p { font-size: 12.5px; color: #5f6368; line-height: 1.55; }
.consent-text p a { color: #1a73e8; text-decoration: none; font-weight: 500; }
.consent-text p a:hover { text-decoration: underline; }

.consent-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-confirm { background: #1a73e8; color: #fff; border: none; border-radius: 24px; padding: 9px 22px; font-family: 'Google Sans', sans-serif; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.btn-confirm:hover { background: #1557b0; }
.btn-confirm:active { background: #0d47a1; }
.btn-close { background: none; border: none; cursor: pointer; color: #5f6368; padding: 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.btn-close:hover { background: #f1f3f4; }

.bubble { position: fixed; bottom: 24px; left: 24px; right: auto; width: 52px; height: 52px; border-radius: 50%; background: #1a73e8; box-shadow: 0 4px 16px rgba(26,115,232,0.45); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1001; opacity: 0; transform: scale(0); transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.25s ease; border: none; outline: none; }
.bubble.visible { opacity: 1; transform: scale(1); }
.bubble:hover { background: #1557b0; transform: scale(1.1); }
.bubble:active { transform: scale(0.95); }
.bubble::after { content: 'Privacidade'; position: absolute; left: 60px; top: 50%; transform: translateY(-50%); background: #202124; color: #fff; font-family: 'Roboto', sans-serif; font-size: 12px; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.bubble:hover::after { opacity: 1; }

@media (max-width: 560px) { .consent-bar { flex-direction: column; align-items: flex-start; gap: 12px; } .consent-actions { width: 100%; justify-content: flex-end; } }

/* On small screens, keep the consent banner behind mobile overlays/menus */
@media (max-width: 700px) {
  .consent-bar { z-index: 50; }
  .bubble { z-index: 51; }
  /* move bubble up and to the left to avoid overlapping chat buttons */
  /* aumentado bottom para descer o botão em telas pequenas */
  .bubble { left: 12px; bottom: 24px; }
  /* ensure chat trigger sits below consent/bubble on small screens */
  #chat-trigger { z-index: 40 !important; bottom: 24px !important; }
}
