.joomla-gdprconsent-banner,
.joomla-gdprconsent-modal,
.joomla-gdprconsent-manage,
.joomla-gdprconsent-debug,
.joomla-gdprconsent-embed-placeholder {
  font-family: inherit;
  box-sizing: border-box;
}

.joomla-gdprconsent-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  font-size: 0.95rem;
}

.joomla-gdprconsent-banner.pos-bottom { bottom: 0; }
.joomla-gdprconsent-banner.pos-top { top: 0; }

.joomla-gdprconsent-banner.theme-light {
  background: #ffffff;
  color: #111111;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.joomla-gdprconsent-banner.theme-dark {
  background: #111111;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}

.joomla-gdprconsent-banner a,
.joomla-gdprconsent-modal a,
.joomla-gdprconsent-embed-placeholder a {
  text-decoration: underline;
}

.joomla-gdprconsent-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.joomla-gdprconsent-banner__title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.joomla-gdprconsent-banner__message,
.joomla-gdprconsent-modal__intro,
.joomla-gdprconsent-toggle__desc,
.joomla-gdprconsent-embed-placeholder__text {
  line-height: 1.45;
}

.joomla-gdprconsent-banner__policy,
.joomla-gdprconsent-modal__policy {
  margin-top: 0.75rem;
}

.joomla-gdprconsent-banner__actions,
.joomla-gdprconsent-modal__footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.joomla-gdprconsent-banner__actions {
  justify-content: flex-end;
}

.joomla-gdprconsent-modal__footer {
  justify-content: flex-end;
}

.joomla-gdprconsent-banner button,
.joomla-gdprconsent-modal button,
.joomla-gdprconsent-manage,
.joomla-gdprconsent-embed-placeholder__button {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #f4f4f4;
  color: inherit;
  padding: 0.65rem 0.95rem;
  border-radius: 0.35rem;
  cursor: pointer;
  font: inherit;
}

.joomla-gdprconsent-banner .btn-primary,
.joomla-gdprconsent-modal .btn-primary,
.joomla-gdprconsent-embed-placeholder__button,
.joomla-gdprconsent-manage {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #ffffff;
}

.joomla-gdprconsent-modal .btn-success {
  background: #1c7f43;
  border-color: #1c7f43;
  color: #ffffff;
}

.joomla-gdprconsent-banner .btn-link {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .joomla-gdprconsent-banner__inner {
    flex-direction: column;
  }

  .joomla-gdprconsent-banner__actions {
    justify-content: flex-start;
  }
}

.joomla-gdprconsent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.joomla-gdprconsent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.joomla-gdprconsent-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  background: #ffffff;
  color: #111111;
  border-radius: 0.75rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.joomla-gdprconsent-modal__header,
.joomla-gdprconsent-modal__footer {
  padding: 1rem 1.25rem;
}

.joomla-gdprconsent-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.joomla-gdprconsent-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.joomla-gdprconsent-modal__close {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.joomla-gdprconsent-modal__body {
  padding: 1rem 1.25rem;
  overflow: auto;
  max-height: 70vh;
}

.joomla-gdprconsent-modal__intro {
  margin-bottom: 1rem;
}

.joomla-gdprconsent-toggle {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.joomla-gdprconsent-toggle:last-child {
  border-bottom: none;
}

.joomla-gdprconsent-toggle__row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

.joomla-gdprconsent-toggle__label {
  font-weight: 600;
}

.joomla-gdprconsent-toggle__desc {
  margin-left: 1.8rem;
  font-size: 0.92rem;
  opacity: 0.88;
}

.joomla-gdprconsent-toggle__hint {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 0.85em;
  opacity: 0.8;
}

.joomla-gdprconsent-modal__empty {
  padding: 0.75rem 0;
}

.joomla-gdprconsent-manage {
  position: fixed;
  z-index: 9998;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.joomla-gdprconsent-manage.pos-bottom-left { left: 1rem; bottom: 1rem; }
.joomla-gdprconsent-manage.pos-bottom-right { right: 1rem; bottom: 1rem; }
.joomla-gdprconsent-manage.pos-top-left { left: 1rem; top: 1rem; }
.joomla-gdprconsent-manage.pos-top-right { right: 1rem; top: 1rem; }

.joomla-gdprconsent-debug {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9997;
  width: min(520px, calc(100vw - 2rem));
  background: rgba(17, 17, 17, 0.96);
  color: #f5f5f5;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.joomla-gdprconsent-debug summary {
  cursor: pointer;
  font-weight: 700;
}

.joomla-gdprconsent-debug pre {
  margin: 0.75rem 0 0;
  max-height: 300px;
  overflow: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.joomla-gdprconsent-embed-placeholder {
  border: 1px dashed rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.03);
  padding: 1rem;
  margin: 0 0 1rem;
  border-radius: 0.5rem;
}

.joomla-gdprconsent-embed-placeholder__title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.joomla-gdprconsent-embed-placeholder__text {
  margin-bottom: 0.5rem;
}

.joomla-gdprconsent-embed-placeholder__meta {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.joomla-gdprconsent-iframe {
  width: 100%;
}
