.op-cookie-banner[hidden],
.op-cookie-modal[hidden] {
  display: none !important;
}

.op-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: #0b0e14;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}

.op-cookie-banner__content {
  min-width: 0;
  max-width: 860px;
}

.op-cookie-banner__title {
  display: block;
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.25;
}

.op-cookie-banner__text {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.45;
}

.op-cookie-banner__text a,
.op-cookie-modal__links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.op-cookie-banner__actions,
.op-cookie-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.op-cookie-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.op-cookie-btn:hover {
  transform: translateY(-1px);
}

.op-cookie-btn:focus-visible,
.op-cookie-modal__close:focus-visible,
.op-cookie-option input:focus-visible {
  outline: 3px solid rgba(229,57,53,.45);
  outline-offset: 2px;
}

.op-cookie-btn--primary {
  color: #fff;
  background: #e53935;
  border-color: #e53935;
}

.op-cookie-btn--secondary {
  color: #fff;
  background: #161b24;
  border-color: rgba(255,255,255,.22);
}

.op-cookie-btn--ghost {
  color: rgba(255,255,255,.86);
  background: transparent;
}

.op-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.op-cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,7,12,.68);
}

.op-cookie-modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: #0f141d;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.op-cookie-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.op-cookie-modal__eyebrow {
  margin: 0 0 4px;
  color: #e53935;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.op-cookie-modal h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.op-cookie-modal__close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.op-cookie-modal__intro {
  margin: 0 0 16px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  line-height: 1.55;
}

.op-cookie-options {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.op-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}

.op-cookie-option strong,
.op-cookie-option small {
  display: block;
}

.op-cookie-option strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.op-cookie-option small {
  color: rgba(255,255,255,.68);
  font-size: 12px;
  line-height: 1.4;
}

.op-cookie-option input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  accent-color: #e53935;
}

.op-cookie-option.is-locked {
  opacity: .82;
}

.op-cookie-modal__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  font-size: 13px;
}

body.op-cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .op-cookie-banner {
    display: block;
    padding: 11px 14px;
  }

  .op-cookie-banner__content {
    max-width: none;
    margin-bottom: 10px;
  }

  .op-cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .op-cookie-banner__actions .op-cookie-btn--primary {
    grid-column: 1 / -1;
  }

  .op-cookie-btn {
    width: 100%;
  }

  .op-cookie-modal {
    align-items: end;
    padding: 10px;
  }

  .op-cookie-modal__panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .op-cookie-modal h2 {
    font-size: 20px;
  }

  .op-cookie-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
