/**
 * Modern, minimal restyle of the "Cookie Notice by hu-manity.co" banner.
 *
 * The plugin's consent logic is untouched; this only overrides its (dated)
 * default appearance. The plugin applies some colours as inline styles, so a
 * few visual properties need !important to win.
 */

/* ---- Banner shell ---------------------------------------------------- */
#cookie-notice {
  background: rgba(20, 20, 20, 0.94) !important;
  color: #f5f5f5 !important;
  border: 0 !important;
  box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.18);
  font-family: 'Abel', 'Helvetica', sans-serif;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#cookie-notice .cookie-notice-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  color: #f5f5f5 !important;
  text-align: left;
}

/* ---- Message text ---------------------------------------------------- */
#cookie-notice .cn-text-container,
#cookie-notice #cn-notice-text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---- Buttons --------------------------------------------------------- */
#cookie-notice .cn-buttons-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

/* shared button reset – kills the old beveled / boxed look */
#cookie-notice .cn-button,
#cookie-notice a.cn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 22px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* primary: accept */
#cookie-notice #cn-accept-cookie {
  background: #ffffff !important;
  color: #161616 !important;
}
#cookie-notice #cn-accept-cookie:hover,
#cookie-notice #cn-accept-cookie:focus {
  background: #d9d9d9 !important;
  color: #000000 !important;
}

/* secondary: refuse (ghost) */
#cookie-notice #cn-refuse-cookie {
  background: transparent !important;
  color: #f5f5f5 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}
#cookie-notice #cn-refuse-cookie:hover,
#cookie-notice #cn-refuse-cookie:focus {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* privacy-policy / more-info link */
#cookie-notice .cn-privacy-policy-link,
#cookie-notice #cn-more-info {
  color: #f5f5f5 !important;
  background: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  opacity: 0.85;
}
#cookie-notice .cn-privacy-policy-link:hover,
#cookie-notice #cn-more-info:hover {
  opacity: 1;
}

/* close icon */
#cookie-notice .cn-close-icon {
  opacity: 0.6;
}
#cookie-notice .cn-close-icon:hover {
  opacity: 1;
}

/* ---- Mobile ---------------------------------------------------------- */
@media (max-width: 767px) {
  #cookie-notice .cookie-notice-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
  }
  #cookie-notice .cn-buttons-container {
    justify-content: center;
  }
  #cookie-notice .cn-button {
    flex: 1 1 auto;
  }
}
