.cookie-consent-modal {
  position: fixed;
  inset: auto 1.5rem 1.5rem auto;
  width: min(94vw, 520px);
  z-index: 2200;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
}

.cookie-consent-modal .modal-content-wrap {
  position: static;
  margin: 0;
}

.cookie-consent-modal .modal-content-wrap.left,
.cookie-consent-modal .modal-content-wrap.right {
  left: auto;
  right: auto;
}

.cookie-consent-modal .modal-content {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.22);
}

.cookie-consent-modal .modal-content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
}

.cookie-consent-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.5rem 0.75rem 1.65rem;
  border: 0;
}

.cookie-consent-modal .modal-header::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fbbf24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.18);
}

.cookie-consent-modal .modal-header h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-consent-modal .modal-body {
  padding: 0 1.5rem 1rem 1.65rem;
  color: #444;
  font-size: 0.96rem;
  line-height: 1.55;
}

.cookie-consent-modal .modal-body a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-modal .modal-body a:hover {
  color: #7c2d12;
}

.cookie-consent-modal .modal-footer {
  padding: 0 1.5rem 1.35rem 1.65rem;
  border: 0;
}

.cookie-consent-modal .modal-footer .buttons {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: stretch;
}

.cookie-consent-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.cookie-consent-modal .btn:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.42);
  outline-offset: 3px;
}

.cookie-consent-modal .btn.btn-primary {
  background: #1a1a1a;
  color: #fbbf24;
  border-color: #1a1a1a;
  box-shadow: 0 12px 28px rgba(26, 26, 26, 0.2);
}

.cookie-consent-modal .btn.btn-primary:hover {
  background: #2d2d2d;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(26, 26, 26, 0.24);
}

.cookie-consent-modal .btn.btn-secondary {
  background: #fff8e1;
  color: #5f3b00;
  border-color: rgba(217, 119, 6, 0.28);
}

.cookie-consent-modal .btn.btn-secondary:hover {
  background: #ffefb8;
  color: #1a1a1a;
}

.cookie-consent-modal.block-access {
  inset: 0;
  display: grid;
  place-items: end end;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  overflow: auto;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(4px);
}

.cookie-consent-modal.block-access .modal-content-wrap {
  width: min(94vw, 520px);
}

@media screen and (max-width: 620px) {
  .cookie-consent-modal {
    inset: auto 0 0 0;
    width: 100%;
  }

  .cookie-consent-modal .modal-content {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .cookie-consent-modal .modal-header {
    padding: 1.15rem 1.15rem 0.65rem 1.3rem;
  }

  .cookie-consent-modal .modal-body {
    padding: 0 1.15rem 0.9rem 1.3rem;
    font-size: 0.92rem;
  }

  .cookie-consent-modal .modal-footer {
    padding: 0 1.15rem 1.15rem 1.3rem;
  }

  .cookie-consent-modal .modal-footer .buttons {
    grid-template-columns: 1fr;
  }

  .cookie-consent-modal .btn {
    min-height: 62px;
    width: 100%;
  }

  .cookie-consent-modal.block-access {
    padding: 0;
    place-items: end stretch;
  }

  .cookie-consent-modal.block-access .modal-content-wrap {
    width: 100%;
  }
}
