/* Avocado Cookies — Public UI
   Keep it lightweight and compatible with most themes. */

#avc-cookie-root {
  position: relative;
  z-index: 999999;
  font-family: inherit;
}

/* Banner container (we also position inline via JS for safety) */
#avc-banner {
  box-sizing: border-box;
}

/* Card base */
#avc-banner .avc-card,
#avc-modal .avc-modal-card {
  box-sizing: border-box;
}

#avc-banner .avc-card {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Title + message */
#avc-banner .avc-title {
  letter-spacing: -0.2px;
}

#avc-banner .avc-msg {
  white-space: normal;
}

/* Buttons */
#avc-banner button,
#avc-modal button,
#avc-manage {
  font: inherit;
  line-height: 1;
}

#avc-banner button:focus,
#avc-modal button:focus,
#avc-manage:focus {
  outline: 2px solid rgba(109, 76, 255, 0.35);
  outline-offset: 2px;
}

/* Button hover (subtle, do not override custom colors too much) */
#avc-banner button:hover,
#avc-modal button:hover,
#avc-manage:hover {
  filter: brightness(0.98);
}

/* Backdrop */
#avc-backdrop {
  backdrop-filter: blur(2px);
}

/* Modal */
#avc-modal {
  box-sizing: border-box;
}

#avc-modal .avc-modal-card {
  box-sizing: border-box;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

/* Category rows (created inline in JS, just enhance) */
#avc-modal #avc-cats > div {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

#avc-modal #avc-cats > div:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* Manage button */
#avc-manage {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 520px) {
  /* Make banner buttons stack nicely */
  #avc-banner .avc-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  #avc-banner .avc-actions button {
    width: 100%;
  }

  /* Keep manage button slightly smaller */
  #avc-manage {
    right: 12px !important;
    bottom: 12px !important;
    padding: 9px 10px !important;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #avc-modal #avc-cats > div {
    transition: none;
  }
}
