.ayp-cookie-shell {
  position: fixed;
  inset: auto 18px 18px 18px;
  z-index: 9999;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.ayp-cookie-shell.is-visible {
  display: flex;
}

.ayp-cookie-panel {
  width: min(960px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(5, 7, 18, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 22px;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.ayp-cookie-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
}

.ayp-cookie-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ayp-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ayp-cookie-btn,
.ayp-cookie-link {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.ayp-cookie-btn {
  padding: 11px 16px;
  color: #061018;
  background: linear-gradient(135deg, #18df8f, #00d4ff);
}

.ayp-cookie-btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.ayp-cookie-link {
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  padding: 10px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ayp-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 5, 12, 0.72);
}

.ayp-cookie-modal.is-visible {
  display: flex;
}

.ayp-cookie-dialog {
  width: min(620px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #080b19;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  padding: 24px;
}

.ayp-cookie-dialog h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.ayp-cookie-dialog p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.ayp-cookie-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ayp-cookie-choice strong {
  display: block;
  margin-bottom: 4px;
}

.ayp-cookie-choice span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.ayp-cookie-choice input {
  width: 44px;
  height: 24px;
  accent-color: #18df8f;
  flex: 0 0 auto;
}

.ayp-cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.footer .ayp-cookie-settings {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .ayp-cookie-shell {
    inset: auto 10px 10px 10px;
  }

  .ayp-cookie-panel {
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 18px;
  }

  .ayp-cookie-actions {
    justify-content: stretch;
  }

  .ayp-cookie-btn,
  .ayp-cookie-link {
    flex: 1 1 100%;
    text-align: center;
  }
}
