.meta-consent {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 18px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid #e4d6ca;
  color: #2b1712;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 -18px 50px rgba(73, 34, 17, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.meta-consent-copy {
  min-width: 0;
}

.meta-consent-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.3;
}

.meta-consent-copy p {
  margin: 0;
  color: #725e56;
  font-size: 0.86rem;
  line-height: 1.5;
}

.meta-consent-copy a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  color: #783318;
  font-size: 0.8rem;
  font-weight: 800;
  text-underline-offset: 3px;
}

.meta-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-consent-actions button {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 13px;
  font: 850 0.9rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.meta-consent-deny {
  border: 1px solid #d9c8bb;
  color: #2b1712;
  background: #fff;
}

.meta-consent-accept {
  border: 1px solid #a84d20;
  color: #fff;
  background: linear-gradient(135deg, #a84d20, #783318);
}

.meta-consent-actions button:focus-visible,
.meta-consent-copy a:focus-visible {
  outline: 3px solid rgba(168, 77, 32, 0.32);
  outline-offset: 3px;
}

@media (max-width: 340px) {
  .meta-consent-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .meta-consent {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    left: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: min(720px, calc(100% - 40px));
    padding: 18px;
    border: 1px solid #e4d6ca;
    border-radius: 20px;
    box-shadow: 0 18px 60px rgba(73, 34, 17, 0.2);
  }

  .meta-consent-actions {
    min-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meta-consent,
  .meta-consent * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
