/* ================================================
   Grill On Fire — Cookie consent banner
   ================================================ */

#gof-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: none;
  background: var(--dark);
  color: var(--sand);
  border-top: 2px solid var(--fire);
  padding: 1.4rem 2rem;
  box-shadow: 0 -6px 24px rgba(0,0,0,.35);
  font-family: 'Raleway', sans-serif;
}

#gof-cookie-banner.open { display: block; }

.gof-cc-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
}

.gof-cc-text { flex: 1 1 380px; }

.gof-cc-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: #fff;
  margin-bottom: .35rem;
  letter-spacing: .5px;
}

.gof-cc-text p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #d4b8a0;
  margin: 0;
}

.gof-cc-text a {
  color: var(--fire-lt);
  text-decoration: underline;
}

.gof-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  flex: 0 0 auto;
}

.gof-cc-btn {
  border: none;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

.gof-cc-btn:hover { opacity: .88; }

.gof-cc-btn.primary {
  background: var(--fire);
  color: #fff;
}

.gof-cc-btn.ghost {
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--mid);
}

.gof-cc-btn.link {
  background: transparent;
  color: var(--fire-lt);
  text-decoration: underline;
  padding: .7rem .3rem;
}

/* Preferences panel */
#gof-cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,4,0,.6);
  padding: 1.5rem;
}

#gof-cookie-prefs.open { display: flex; }

.gof-cc-panel {
  background: var(--cream);
  color: var(--brown);
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.gof-cc-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: .6rem;
}

.gof-cc-panel > p {
  font-size: 13.5px;
  color: var(--mid);
  margin-bottom: 1.3rem;
  line-height: 1.6;
}

.gof-cc-category {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: .9rem;
}

.gof-cc-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gof-cc-category-head strong {
  font-size: 14px;
  color: var(--dark);
}

.gof-cc-category p {
  font-size: 12.5px;
  color: var(--mid);
  margin-top: .4rem;
  line-height: 1.5;
}

.gof-cc-switch {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
}

.gof-cc-switch input {
  opacity: 0; width: 0; height: 0;
}

.gof-cc-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}

.gof-cc-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}

.gof-cc-switch input:checked + .gof-cc-slider { background: var(--fire); }
.gof-cc-switch input:checked + .gof-cc-slider::before { transform: translateX(18px); }
.gof-cc-switch input:disabled + .gof-cc-slider { opacity: .6; cursor: not-allowed; }

.gof-cc-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.4rem;
}

@media (max-width: 640px) {
  .gof-cc-wrap { flex-direction: column; align-items: stretch; }
  .gof-cc-actions { justify-content: flex-end; }
}
