/* Cookie Rocket Pro — Solumark Premium v2 */

#crp-banner {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#crp-banner.crp-bottom-bar {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.05);
  padding: 18px 32px;
}

.crp-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.crp-banner-text { flex: 1; min-width: 0; }

.crp-banner-text h3,
.crp-banner-title {
  font-size: 18px;
  font-weight: 600;
  color: #0a3a5c;
  margin: 0 0 4px 0;
}

.crp-banner-text p,
.crp-banner-body {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.crp-banner-body strong { color: #334155; font-weight: 600; }
.crp-banner-body a { color: #007af4; font-weight: 500; text-decoration: none; }
.crp-banner-body a:hover { text-decoration: underline; }

.crp-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.crp-btn {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.crp-btn:hover { transform: none; opacity: 1; }

.crp-btn-accept {
  background: #007af4;
  color: #fff;
  border: 2px solid #007af4;
}
.crp-btn-accept:hover { background: #0062c3; border-color: #0062c3; }

.crp-btn-reject { display: none; }

.crp-btn-config {
  background: transparent;
  color: #64748b;
  border: 1.5px solid #d1d5db;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
}
.crp-btn-config:hover { border-color: #007af4; color: #007af4; }

.crp-banner-footer { display: none; }

/* --- Modal --- */
#crp-modal-overlay { backdrop-filter: blur(6px); }

#crp-modal {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  max-width: 520px;
  padding: 32px;
  position: relative !important;
}

#crp-modal h2 {
  font-size: 18px;
  font-weight: 600;
  color: #0a3a5c;
  margin: 0 0 16px 0;
}

.crp-category-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.crp-category-item:last-child { border-bottom: none; }

.crp-toggle-slider { background: #e2e8f0; border-radius: 12px; }
.crp-toggle input:checked + .crp-toggle-slider { background: #007af4; }

/* --- Close button: pixel-perfect centering --- */
#crp-modal button[aria-label] {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  place-items: center !important;
}
#crp-modal button[aria-label]::before {
  content: '\2715';
  font-size: 16px;
  color: #64748b;
  display: block;
}
#crp-modal button[aria-label]:hover {
  background: rgba(0,0,0,0.06) !important;
}
#crp-modal button[aria-label]:hover::before {
  color: #0a3a5c;
}

/* --- Floating button --- */
#crp-floating-btn {
  background: #007af4;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 10px rgba(0,122,244,0.25);
  bottom: 16px;
  left: 16px;
}
#crp-floating-btn:hover { box-shadow: 0 4px 14px rgba(0,122,244,0.35); }

/* --- Mobile --- */
@media (max-width: 768px) {
  #crp-banner.crp-bottom-bar { padding: 16px 20px; }
  .crp-banner-inner { flex-direction: column; gap: 12px; align-items: stretch; }
  .crp-banner-actions { gap: 8px; }
  .crp-btn { flex: 1; text-align: center; }
}

@keyframes crp-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.crp-animate-slide { animation: crp-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

/* Override: X drawn with pure CSS lines, not font character */
#crp-modal button[aria-label]::before,
#crp-modal button[aria-label]::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 16px !important;
  height: 2px !important;
  background: #64748b !important;
  border-radius: 1px !important;
  display: block !important;
  color: transparent !important;
}
#crp-modal button[aria-label]::before {
  transform: translate(-50%, -50%) rotate(45deg) !important;
}
#crp-modal button[aria-label]::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}
#crp-modal button[aria-label]:hover::before,
#crp-modal button[aria-label]:hover::after {
  background: #0a3a5c !important;
}
