/* CCE Consent Banner (minimal, shop-safe)
   - Blocks only non-essential scripts (statistics/marketing)
   - Keeps shop usable even if user declines
*/

#cceConsentBanner,
#cceConsentModal{
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;
  color: #1f2933;
}

#cceConsentBanner{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 99998;
  display: none;
}

#cceConsentBanner .cce-consent-card{
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  padding: 14px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#cceConsentBanner .cce-consent-row{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#cceConsentBanner .cce-consent-text{
  min-width: 240px;
  flex: 1 1 520px;
}

#cceConsentBanner .cce-consent-title{
  font-weight: 900;
  letter-spacing: 0.01em;
  margin: 0 0 4px;
  font-size: 14px;
}

#cceConsentBanner .cce-consent-desc{
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
}

#cceConsentBanner .cce-consent-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cce-consent-btn{
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.cce-consent-btn:hover{ transform: translateY(-1px); }

.cce-consent-btn--primary{
  background: rgba(255, 139, 167, 0.92);
  border-color: rgba(255, 139, 167, 1);
  color: #111827;
}

.cce-consent-btn--ghost{
  background: transparent;
  box-shadow: none;
}

/* Settings modal */
#cceConsentModal{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(17,24,39,0.45);
  padding: 18px;
}

#cceConsentModal .cce-consent-modal-card{
  max-width: 620px;
  margin: 6vh auto 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.20);
  overflow: hidden;
}

#cceConsentModal .cce-consent-modal-header{
  padding: 14px 16px;
  background: rgba(255, 139, 167, 0.14);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

#cceConsentModal h3{
  margin: 0;
  font-size: 16px;
  font-weight: 950;
}

#cceConsentModal .cce-consent-modal-body{
  padding: 14px 16px;
}

#cceConsentModal .cce-consent-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

#cceConsentModal .cce-consent-item:last-child{ border-bottom: none; }

#cceConsentModal .cce-consent-item h4{
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 900;
}

#cceConsentModal .cce-consent-item p{
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.35;
}

.cce-toggle{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.cce-toggle input{
  width: 42px;
  height: 24px;
  appearance: none;
  background: rgba(107,114,128,0.25);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
}

.cce-toggle input:checked{
  background: rgba(255, 139, 167, 0.70);
  border-color: rgba(255, 139, 167, 1);
}

.cce-toggle input::after{
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transition: transform 160ms ease;
}

.cce-toggle input:checked::after{ transform: translateX(18px); }

#cceConsentModal .cce-consent-modal-footer{
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(255, 250, 248, 0.9);
}

@media (max-width: 520px){
  #cceConsentBanner{ left: 10px; right: 10px; bottom: 10px; }
  #cceConsentBanner .cce-consent-card{ padding: 12px; }
}
