.grf-consent-root {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 10020;
  color: #102033;
  font-family: inherit;
}

.grf-consent-banner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(8, 26, 54, 0.16);
  padding: 18px;
}

.grf-consent-copy h2,
.grf-consent-modal h2 {
  margin: 0 0 8px;
  color: #081a36;
  font-size: 18px;
  line-height: 1.25;
}

.grf-consent-copy p {
  margin: 0;
  color: #46566a;
  font-size: 14px;
  line-height: 1.5;
}

.grf-consent-links {
  margin-top: 8px !important;
  font-size: 13px !important;
}

.grf-consent-links a {
  color: #1e3a5f;
  text-decoration: underline;
}

.grf-consent-actions,
.grf-consent-modal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.grf-consent-btn {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid #cfd8e3;
  padding: 9px 14px;
  background: #ffffff;
  color: #102033;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.grf-consent-btn:hover {
  background: #f4f7fb;
}

.grf-consent-btn-primary {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #ffffff;
}

.grf-consent-btn-primary:hover {
  background: #152c4a;
  border-color: #152c4a;
  color: #ffffff;
}

.grf-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: grid;
  place-items: center;
  background: rgba(8, 26, 54, 0.42);
  padding: 20px;
}

.grf-consent-modal-panel {
  width: min(680px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(8, 26, 54, 0.24);
}

.grf-consent-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f6;
}

.grf-consent-close {
  width: 34px;
  height: 34px;
  border: 1px solid #d7e0ea;
  border-radius: 50%;
  background: #ffffff;
  color: #102033;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.grf-consent-category-list {
  padding: 8px 20px 0;
}

.grf-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f6;
}

.grf-consent-category strong {
  display: block;
  color: #102033;
  margin-bottom: 4px;
}

.grf-consent-category span {
  display: block;
  color: #617086;
  font-size: 13px;
  line-height: 1.45;
}

.grf-consent-switch {
  position: relative;
  width: 52px;
  height: 30px;
}

.grf-consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.grf-consent-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d7e0ea;
  cursor: pointer;
  transition: background 0.2s ease;
}

.grf-consent-slider::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(8, 26, 54, 0.18);
  transition: transform 0.2s ease;
}

.grf-consent-switch input:checked + .grf-consent-slider {
  background: #1e3a5f;
}

.grf-consent-switch input:checked + .grf-consent-slider::after {
  transform: translateX(22px);
}

.grf-consent-switch input:disabled + .grf-consent-slider {
  background: #98a8ba;
  cursor: not-allowed;
}

.grf-consent-modal-actions {
  padding: 18px 20px;
}

.grf-consent-floating {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 16px;
  z-index: 10010;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a5f;
  box-shadow: 0 10px 28px rgba(8, 26, 54, 0.14);
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .grf-consent-floating {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 760px) {
  .grf-consent-root {
    inset: auto 10px 10px 10px;
  }

  .grf-consent-banner {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .grf-consent-actions,
  .grf-consent-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .grf-consent-btn {
    width: 100%;
  }

  .grf-consent-floating {
    left: 10px;
    right: auto;
  }
}
