/* Appearance only; consent logic, storage and text remain unchanged. */
body #add-google-panel[hidden] { display: none !important; }
body #add-google-panel {
  
  max-width: 660px; max-height: 80vh; margin: 16px auto 0; padding: 28px;
  overflow-y: auto; overflow-wrap: anywhere; box-sizing: border-box; text-align: left;
  background: #f8f6f1 !important; color: #303b39 !important;
  border: 1px solid #cbc7bc; border-radius: 8px; box-shadow: 0 8px 28px #0002;
  font: 400 15px/1.65 system-ui, sans-serif !important;
}
body #add-google-panel h2 {
  color: #243c33 !important; font: 600 20px/1.35 system-ui, sans-serif !important;
  margin: 0 0 16px; padding: 0; letter-spacing: normal; text-transform: none;
}
/* Arcprime h2:after draws dots at the panel bottom: disable only this decoration. */
body #add-google-panel h2::before, body #add-google-panel h2::after { content: none !important; display: none !important; }
body #add-google-panel p, body #add-google-panel [role="status"] {
  color: #303b39 !important; font: 400 15px/1.65 system-ui, sans-serif !important;
  margin: 0 0 14px; opacity: 1 !important;
}
body #add-google-panel [role="status"]:empty { margin: 0; }
body #add-google-panel [role="status"]:not(:empty) { margin: 14px 0 0; }
body #add-google-panel a, body #add-google-panel a:visited { color: #243c33 !important; text-decoration: underline !important; text-underline-offset: 3px; }
body #add-google-panel a:hover { color: #182b24 !important; }
body #add-google-panel .add-google-actions { display: flex; gap: 12px; margin-top: 20px; }
body #add-google-panel .add-google-actions button {
  flex: 1 1 0; min-width: 0; min-height: 48px; padding: 12px 14px; box-sizing: border-box;
  border: 1px solid #243c33; border-radius: 5px; background: #243c33 !important;
  color: #f8f6f1 !important; font: 600 14px/1.5 system-ui, sans-serif !important;
  letter-spacing: normal; text-transform: none; cursor: pointer; box-shadow: none; opacity: 1;
}
body #add-google-panel .add-google-actions button:hover { background: #182b24 !important; }
body #add-google-panel button:focus-visible, body #add-google-panel a:focus-visible, body #add-google-preferences > button:focus-visible { outline: 3px solid #aa742d !important; outline-offset: 3px; }
body #add-google-preferences { max-width: 692px; margin: 0 auto; box-sizing: border-box; text-align: center; padding: 8px 16px; background: transparent !important; }
body #add-google-preferences > button {
  display: inline-block; width: auto; max-width: 100%; min-height: 44px; padding: 9px 14px;
  border: 1px solid #cbc7bc; border-radius: 5px; background: #f8f6f1 !important;
  color: #243c33 !important; font: 400 14px/1.5 system-ui, sans-serif !important;
  text-transform: none; letter-spacing: normal; text-decoration: none; cursor: pointer;
}
body #add-google-preferences button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 600px) {
  body #add-google-panel { padding: 20px; }
  body #add-google-panel .add-google-actions { flex-direction: column; gap: 10px; }
  body #add-google-panel .add-google-actions button { width: 100%; flex: none; }
  body:has(#add-google-panel:not([hidden])) a.totop { visibility: hidden !important; }
}

/* Compact footer controls. The non-modal panel retains its own full row. */
body #add-google-preferences { max-width: none; margin: 0; padding: 0; background: #222 !important; }
body #add-google-preferences > button {
  min-height: 44px; padding: 9px 8px; margin: 0; border: 0; border-radius: 3px;
  background: transparent !important; color: #c5a47e !important;
  text-decoration: underline; text-underline-offset: 4px; font-size: 14px !important;
}
body #add-google-preferences > button:hover { color: #f8f6f1 !important; }
body #add-google-preferences > button:focus-visible { outline-color: #c5a47e !important; }
body #add-footer-preferences #add-google-preferences { display: contents; }
body #add-footer-preferences #add-google-preferences[hidden] { display: none !important; }
body #add-footer-preferences #add-google-panel {
  flex: 0 0 100%; width: 100%; max-width: 660px; min-width: 0;
  /* Full outer row even on wide desktops; retain the 660px panel itself. */
  margin: 12px max(0px, calc((100% - 660px) / 2)) 0;
}
