.contact-location-consent {
  width: min(560px, calc(100vw - 32px));
  max-height: min(90vh, 720px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #1d1d1d);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.contact-location-consent::backdrop {
  background: rgba(18, 20, 27, 0.58);
}

.contact-location-consent-content {
  padding: 28px;
  overflow-y: auto;
}

.contact-location-consent h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.contact-location-consent p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.contact-location-consent-details {
  color: var(--color-muted, #5c5c66);
  font-size: 0.92rem;
}

.contact-location-consent a {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--color-accent-strong, #d94f64);
  font-weight: 600;
  text-underline-offset: 3px;
}

.contact-location-consent-status {
  color: var(--color-danger, #b42335);
  font-size: 0.92rem;
}

.contact-location-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 20px;
}

.contact-location-consent-actions button {
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-location-consent-accept {
  background: #b63e53;
  color: #fff;
}

.contact-location-consent-decline,
.contact-location-consent-keep,
.contact-location-consent-revoke {
  background: transparent;
  color: var(--color-text, #1d1d1d);
}

.contact-location-consent-revoke {
  color: var(--color-danger, #b42335);
}

.contact-location-consent-actions button:focus-visible,
.contact-location-manage:focus-visible {
  outline: 2px solid var(--color-accent-strong, #d94f64);
  outline-offset: 3px;
}

.contact-location-notice {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10001;
  width: min(440px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 0;
  background: var(--color-surface, #fff);
  color: var(--color-text, #1d1d1d);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

.contact-location-manage {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-accent-strong, #d94f64);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

html.theme-dark .contact-location-consent {
  background: var(--color-surface, #171b29);
  color: var(--color-text, #f3f4f8);
}

html.theme-dark .contact-location-consent-decline {
  color: var(--color-text, #f3f4f8);
}

html.theme-dark .contact-location-notice {
  background: var(--color-surface, #171b29);
  color: var(--color-text, #f3f4f8);
}

@media (max-width: 520px) {
  .contact-location-consent-content {
    padding: 22px;
  }

  .contact-location-consent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-location-consent-actions button {
    width: 100%;
  }
}