.pluvo-rule-consent-root {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: grid !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  box-sizing: border-box !important;
  place-items: center !important;
  padding: 24px !important;
  overflow: hidden !important;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.pluvo-rule-consent-open-v20260601,
body.pluvo-rule-consent-open-v20260601 {
  overflow: hidden !important;
}

.pluvo-rule-consent-root *,
.pluvo-rule-consent-root *::before,
.pluvo-rule-consent-root *::after {
  box-sizing: border-box;
}

.pluvo-rule-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.44);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pluvo-rule-dialog {
  position: relative !important;
  z-index: 1;
  display: flex;
  width: min(640px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.pluvo-rule-dialog-header {
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.pluvo-rule-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.pluvo-rule-title {
  margin: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.pluvo-rule-subtitle {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.pluvo-rule-dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 26px;
}

.pluvo-rule-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pluvo-rule-summary li {
  border: 1px solid rgba(191, 219, 254, 0.72);
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  padding: 11px 12px;
}

.pluvo-rule-document {
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pluvo-rule-document-title {
  display: block;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.pluvo-rule-document-subtitle {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.pluvo-rule-dialog-footer {
  display: grid;
  gap: 12px;
  padding: 16px 26px 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
}

.pluvo-rule-checks {
  display: grid;
  gap: 8px;
}

.pluvo-rule-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.pluvo-rule-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #0f766e;
}

.pluvo-rule-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.pluvo-rule-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 15px;
  text-decoration: none;
}

.pluvo-rule-button:hover {
  background: #f8fafc;
}

.pluvo-rule-button-primary {
  border-color: #0f766e;
  background: linear-gradient(135deg, #0f766e 0%, #17a58f 100%);
  color: #f8fffd;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.28);
}

.pluvo-rule-button-primary:hover {
  background: linear-gradient(135deg, #11857c 0%, #1db9a0 100%);
}

.pluvo-rule-button-primary:disabled {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.42);
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .pluvo-rule-consent-root {
    padding: 12px !important;
  }

  .pluvo-rule-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .pluvo-rule-dialog-header,
  .pluvo-rule-dialog-body,
  .pluvo-rule-dialog-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pluvo-rule-actions {
    flex-direction: column-reverse;
  }

  .pluvo-rule-button {
    width: 100%;
  }
}
