/**
 * Consent Blocker Styles
 * Styles for consent dialog and map consent overlay
 */

/* Consent Dialog Overlay - must be above map overlay (z-index: 999998) */
.rd-consent-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  backdrop-filter: blur(2px);
}

.rd-consent-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: rd-consent-dialog-appear 0.2s ease-out;
}

@keyframes rd-consent-dialog-appear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.rd-consent-dialog-header {
  padding: 20px 24px 0;
}

.rd-consent-dialog-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.rd-consent-dialog-body {
  padding: 16px 24px;
}

.rd-consent-dialog-body p {
  margin: 0 0 12px;
  color: #4a4a4a;
  line-height: 1.5;
}

.rd-consent-dialog-body p:last-child {
  margin-bottom: 0;
}

.rd-consent-dialog-provider {
  font-size: 0.875rem;
  color: #666;
}

.rd-consent-dialog-provider a {
  color: #2563eb;
  text-decoration: none;
}

.rd-consent-dialog-provider a:hover {
  text-decoration: underline;
}

.rd-consent-dialog-actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px 24px;
  justify-content: flex-end;
}

.rd-consent-dialog-actions button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rd-consent-dialog-decline {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

.rd-consent-dialog-decline:hover {
  background: #e5e7eb;
}

.rd-consent-dialog-accept {
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #fff;
}

.rd-consent-dialog-accept:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* Map Consent Overlay (for maps without consent) */
.rd-map-consent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #e8e8e8;
  background-size: cover;
  background-position: center;
  z-index: 10;
}

/* For staticfirst mode: semi-transparent overlay so static image shows through */
.rd-dynamic-map[data-map-mode="staticfirst"] .rd-map-consent-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  background-image: none !important;
}

.rd-map-consent-overlay-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.rd-map-consent-overlay-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.rd-map-consent-overlay-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.rd-map-consent-overlay-text {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.5;
}

.rd-map-consent-overlay-text a {
  color: #2563eb;
  text-decoration: none;
}

.rd-map-consent-overlay-text a:hover {
  text-decoration: underline;
}

.rd-map-consent-overlay-button {
  display: inline-block;
  padding: 12px 28px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rd-map-consent-overlay-button:hover {
  background: #1d4ed8;
}

/* Click hint for staticfirst maps with consent */
.rd-map-click-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rd-map-click-hint-visible {
  opacity: 1;
  animation: rd-map-click-hint-wobble 3s ease-in-out infinite;
}

.rd-map-click-hint-text {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 24px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes rd-map-click-hint-wobble {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}
