.oo-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: "Open Sans", Helvetica, sans-serif;
}

.oo-consent[hidden] {
  display: none;
}

.oo-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 51, 0.55);
  animation: oo-consent-fade 0.35s ease;
}

.oo-consent__dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 28px 28px 24px;
  background: #ffffff;
  color: #333333;
  border-radius: 20px;
  border-top: 6px solid #6ab74c;
  box-shadow: 10px 12px 0 #b4dba5, 0 22px 50px rgba(7, 19, 51, 0.22);
  animation: oo-consent-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.oo-consent__dialog h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #071333;
}

.oo-consent__kicker {
  margin: 0 0 16px;
  color: #6ab74c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.oo-consent__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px;
  background: #f1f1f0;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #333333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.oo-consent__check:hover {
  background: #e8f5e1;
}

.oo-consent__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #6ab74c;
}

.oo-consent__check a {
  color: #071333;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.oo-consent__check a:hover {
  color: #6ab74c;
}

.oo-consent__ok {
  display: block;
  width: min(200px, 100%);
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 15px;
  background: #6ab74c;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(106, 183, 76, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.oo-consent__ok:hover:not(:disabled) {
  background: #59a33c;
  transform: translateY(-1px);
}

.oo-consent__ok:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

@keyframes oo-consent-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes oo-consent-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .oo-consent {
    align-items: end;
    padding: 10px;
  }

  .oo-consent__dialog {
    padding: 22px 16px 16px;
    border-radius: 18px;
    box-shadow: 0 8px 0 #b4dba5, 0 16px 36px rgba(7, 19, 51, 0.2);
    animation-name: oo-consent-sheet;
  }

  .oo-consent__dialog h2 {
    font-size: 1.5rem;
  }

  .oo-consent__check {
    font-size: 0.875rem;
    padding: 12px;
  }

  .oo-consent__ok {
    width: 100%;
  }
}

@keyframes oo-consent-sheet {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oo-consent__backdrop,
  .oo-consent__dialog,
  .oo-consent__ok,
  .oo-consent__check,
  .oo-consent__check a {
    animation: none;
    transition: none;
  }
}
