/**
 * Developer memo:
 * - Styles the OMA essential-cookies notice loaded by oma-cookie-notice.php.
 * - Keep all styles in this file to avoid inline style output and preserve CSP compatibility.
 * - Class names are intentionally plugin-scoped with oma-cookie-notice prefixes.
 */

.oma-cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: none;
  pointer-events: none;
}

.oma-cookie-notice--visible {
  display: block;
}

.oma-cookie-notice__inner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(18, 18, 22, 0.78);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
  pointer-events: auto;
}

.oma-cookie-notice__message {
  flex: 1 1 auto;
  margin: 0;
  color: inherit;
}

.oma-cookie-notice__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.oma-cookie-notice__policy {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oma-cookie-notice__policy:hover,
.oma-cookie-notice__policy:focus {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.oma-cookie-notice__accept {
  appearance: none;
  min-width: 96px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.oma-cookie-notice__accept:hover,
.oma-cookie-notice__accept:focus {
  opacity: 0.88;
}

.oma-cookie-notice__close {
  appearance: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.oma-cookie-notice__close:hover,
.oma-cookie-notice__close:focus {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .oma-cookie-notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .oma-cookie-notice__inner {
    display: block;
    padding: 14px;
    border-radius: 14px;
    font-size: 13px;
  }

  .oma-cookie-notice__actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    justify-content: normal;
    gap: 10px;
    margin-top: 12px;
  }

  .oma-cookie-notice__policy {
    width: auto;
    min-width: 0;
  }

  .oma-cookie-notice__accept {
    min-width: 72px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    white-space: nowrap;
  }

  .oma-cookie-notice__accept:hover,
  .oma-cookie-notice__accept:focus {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
  }
}

