body.aq-theme .portal-cookie-consent {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0b253a 0%, #006994 100%);
  color: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

body.aq-theme .portal-cookie-consent__panel {
  width: min(1200px, 100%);
  max-height: calc(100vh - 3rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

body.aq-theme .portal-cookie-consent [data-cookie-view="summary"] {
  display: flex;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

body.aq-theme .portal-cookie-consent__body {
  flex: 1 1 auto;
}

body.aq-theme .portal-cookie-consent [data-cookie-view="summary"] h2 {
  margin: 0 0 0.5rem;
  color: #caf0f8;
  font-family: var(--aq-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

body.aq-theme .portal-cookie-consent [data-cookie-view="summary"] p {
  max-width: 76ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.5;
}

body.aq-theme .portal-cookie-consent__actions {
  flex: 0 0 auto;
  margin-top: 0;
  gap: 0.75rem;
}

body.aq-theme .portal-cookie-consent button {
  min-height: 0;
  padding: 0.625rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

body.aq-theme .portal-cookie-consent button[data-cookie-action="accept-all"],
body.aq-theme .portal-cookie-consent button[data-cookie-action="reject-all"],
body.aq-theme .portal-cookie-consent button[data-cookie-action="save-settings"] {
  order: 1;
  border-color: #ff8c00;
  background: #ff8c00;
  color: #0b253a;
}

body.aq-theme .portal-cookie-consent button[data-cookie-action="open-settings"] {
  order: 2;
  padding-inline: 0.75rem;
  border: 0;
  color: #48cae4;
  text-decoration: underline;
}

body.aq-theme .portal-cookie-consent button[data-cookie-action="reject-all"] {
  order: 3;
}

body.aq-theme .portal-cookie-consent:has([data-cookie-view="settings"]:not([hidden])) {
  top: 0;
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(11, 37, 58, 0.9);
  backdrop-filter: blur(4px);
}

body.aq-theme .portal-cookie-consent:has([data-cookie-view="settings"]:not([hidden])) .portal-cookie-consent__panel {
  width: min(600px, 100%);
  max-height: 90vh;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  color: #0b253a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body.aq-theme .portal-cookie-consent:has([data-cookie-view="settings"]:not([hidden])) .portal-cookie-consent__actions {
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  body.aq-theme .portal-cookie-consent {
    padding: 1.5rem;
  }

  body.aq-theme .portal-cookie-consent [data-cookie-view="summary"] {
    display: grid;
  }

  body.aq-theme .portal-cookie-consent__actions {
    display: grid;
    width: 100%;
  }

  body.aq-theme .portal-cookie-consent button {
    width: 100%;
  }
}
