.rpgid-cookie-consent {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  color: var(--bs-body-color, #212529);
  pointer-events: none;
}

.rpgid-cookie-consent::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: min(360px, 72vh);
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.34),
    rgba(15, 23, 42, 0.12),
    rgba(15, 23, 42, 0)
  );
}

.rpgid-cookie-consent__form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  color: #1f2937;
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.99) 48%, rgba(235, 247, 255, 0.98)),
    #fff;
  border: 1px solid rgba(29, 78, 216, 0.28);
  border-left: 6px solid #f59e0b;
  border-radius: 8px;
  box-shadow:
    0 18px 54px rgba(15, 23, 42, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.78) inset;
  pointer-events: auto;
}

.rpgid-cookie-consent__content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.rpgid-cookie-consent__title {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.rpgid-cookie-consent__title::before {
  content: '';
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.34),
    0 3px 8px rgba(245, 158, 11, 0.34);
}

.rpgid-cookie-consent__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #293548;
}

.rpgid-cookie-consent__list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #39475c;
}

.rpgid-cookie-consent__list li::marker {
  color: #2563eb;
}

.rpgid-cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
}

.rpgid-cookie-consent__button {
  border-color: #1d4ed8;
  background: #1d4ed8;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.24);
  white-space: nowrap;
}

.rpgid-cookie-consent__button:hover,
.rpgid-cookie-consent__button:focus {
  border-color: #1e40af;
  background: #1e40af;
}

@media (max-width: 720px) {
  .rpgid-cookie-consent {
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .rpgid-cookie-consent__form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: 56vh;
    padding: 12px;
    border-left-width: 4px;
  }

  .rpgid-cookie-consent__title {
    margin-bottom: 4px;
    font-size: 0.98rem;
  }

  .rpgid-cookie-consent__text {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .rpgid-cookie-consent__list {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .rpgid-cookie-consent__actions {
    padding-top: 10px;
    border-top: 1px solid rgba(33, 37, 41, 0.1);
  }

  .rpgid-cookie-consent__actions,
  .rpgid-cookie-consent__button {
    width: 100%;
  }
}

@supports (height: 100dvh) {
  .rpgid-cookie-consent__form {
    max-height: calc(100dvh - 32px);
  }

  @media (max-width: 720px) {
    .rpgid-cookie-consent__form {
      max-height: 56dvh;
    }
  }
}
