/* ============================================
   COINASTRA - COOKIE CONSENT STYLES
   Notification Bell Pattern - Bottom Right
   ============================================ */

.cookie-consent-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  width: 52px;
  height: 52px;
  background: var(--color-navy, #0A1628);
  border-radius: 50%;
  border: 2px solid rgba(255,90,54,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(10,22,40,0.35), 0 2px 8px rgba(10,22,40,0.20);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.cookie-consent-trigger:hover {
  transform: scale(1.10);
  background: var(--color-navy-light, #1a3358);
  box-shadow: 0 8px 28px rgba(10,22,40,0.40), 0 4px 12px rgba(10,22,40,0.25);
}

.cookie-consent-trigger i {
  color: #F5F0E8;
  font-size: 1.2rem;
}

.cookie-consent-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #FF5A36;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.85; }
}

.cookie-consent-badge.badge-hidden {
  display: none;
}

.cookie-consent-panel {
  position: fixed;
  bottom: calc(1.5rem + 52px + 0.75rem);
  right: 1.5rem;
  z-index: 9001;
  width: 360px;
  max-width: calc(100vw - 2rem);
  background: #0A1628;
  border-radius: 20px;
  border: 1px solid rgba(255,90,54,0.20);
  box-shadow: 0 16px 48px rgba(10,22,40,0.50), 0 8px 20px rgba(10,22,40,0.30);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
  overflow: hidden;
}

.cookie-consent-panel.panel-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.cookie-panel-header {
  background: #FF5A36;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-panel-title {
  font-family: 'Gabarito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-panel-title i {
  font-size: 0.95rem;
}

.cookie-panel-close {
  background: rgba(255,255,255,0.20);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.18s ease;
}

.cookie-panel-close:hover {
  background: rgba(255,255,255,0.35);
}

.cookie-panel-body {
  padding: 1.2rem;
}

.cookie-panel-description {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.72);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookie-panel-description a {
  color: #FF7A5C;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.18s ease;
}

.cookie-toggle-row:hover {
  background: rgba(255,255,255,0.07);
}

.cookie-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cookie-toggle-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245,240,232,0.90);
}

.cookie-toggle-desc {
  font-size: 0.72rem;
  color: rgba(245,240,232,0.48);
  line-height: 1.4;
}

.cookie-toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.22s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  transition: transform 0.22s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.30);
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: #FF5A36;
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}

.cookie-toggle-switch input:disabled + .cookie-toggle-slider {
  cursor: not-allowed;
  opacity: 0.65;
}

.cookie-panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-accept-all-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  background: #FF5A36;
  color: #fff;
  font-family: 'Gabarito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.cookie-accept-all-btn:hover {
  background: #D94220;
  transform: translateY(-1px);
}

.cookie-save-prefs-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.08);
  color: rgba(245,240,232,0.85);
  font-family: 'Gabarito', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.cookie-save-prefs-btn:hover {
  background: rgba(255,255,255,0.14);
}

.cookie-reject-btn {
  width: 100%;
  padding: 0.5rem;
  background: transparent;
  color: rgba(245,240,232,0.38);
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: color 0.18s ease;
  margin-top: 0.25rem;
  text-align: center;
}

.cookie-reject-btn:hover {
  color: rgba(245,240,232,0.65);
}

@media (max-width: 480px) {
  .cookie-consent-panel {
    right: 0.75rem;
    bottom: calc(1.5rem + 52px + 0.5rem);
    width: calc(100vw - 1.5rem);
    max-width: 340px;
  }

  .cookie-consent-trigger {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}