/* StoneFlow Cookie Consent – v1
   Uses global CSS vars from your pages: --gold, --gold-strong, --text-main, --text-muted
*/

.sf-consent-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 9998;
  display:none;
}
.sf-consent{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:calc(100% - 32px);
  max-width: 980px;
  z-index: 9999;
  display:none;
}
.sf-consent-card{
  background: rgba(15,15,15,0.98);
  border: 1px solid rgba(216,194,154,0.45);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  padding: 16px 16px 14px;
  color: var(--text-muted);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.sf-consent-top{
  display:flex; gap:14px; align-items:flex-start; justify-content:space-between;
  margin-bottom: 10px;
}
.sf-consent-title{
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-strong);
  font-size: 1.25rem;
  letter-spacing: .02em;
  margin: 0 0 4px 0;
}
.sf-consent-text{
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--text-muted);
}
.sf-consent-text a{
  color: var(--gold-strong);
  text-decoration: none;
  border-bottom: 1px solid rgba(233,215,175,0.35);
}
.sf-consent-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.sf-consent-box{
  border: 1px solid rgba(216,194,154,0.25);
  background: rgba(20,20,20,0.92);
  border-radius: 18px;
  padding: 12px 12px;
}
.sf-consent-row{
  display:flex; align-items:center; justify-content:space-between;
  gap: 12px;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(216,194,154,0.12);
}
.sf-consent-row:last-child{ border-bottom: none; }
.sf-consent-row strong{
  color: var(--text-main);
  font-weight: 600;
}
.sf-consent-row small{
  display:block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.sf-switch{
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}
.sf-switch input{
  opacity:0; width:0; height:0;
}
.sf-slider{
  position:absolute; inset:0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(216,194,154,0.25);
  border-radius: 999px;
  transition: .2s ease;
}
.sf-slider:before{
  content:"";
  position:absolute;
  width: 20px; height: 20px;
  left: 3px; top: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: .2s ease;
}
.sf-switch input:checked + .sf-slider{
  background: rgba(216,194,154,0.55);
  border-color: rgba(216,194,154,0.6);
}
.sf-switch input:checked + .sf-slider:before{
  transform: translateX(18px);
  background: #141414;
}
.sf-switch input:disabled + .sf-slider{
  opacity: .55;
  cursor: not-allowed;
}

.sf-consent-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 12px;
}
.sf-btn{
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
}
.sf-btn-primary{
  background: var(--gold);
  color: #141414;
}
.sf-btn-secondary{
  background: rgba(15,15,15,0.96);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.sf-btn-ghost{
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(216,194,154,0.25);
}
.sf-consent-mini{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9997;
  display:none;
}
.sf-consent-mini button{
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(216,194,154,0.35);
  background: rgba(15,15,15,0.95);
  color: var(--gold-strong);
  cursor:pointer;
}

@media (max-width: 760px){
  .sf-consent-grid{ grid-template-columns: 1fr; }
  .sf-consent{ bottom: 10px; }
}
