/* ── Cookie Banner ── */
#wl-cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  transform: translateY(20px);
  width: auto;
  max-width: 860px;
  background: #fff;
  border: 0.5px solid rgba(180,140,120,0.3);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  z-index: 99999;
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
  font-family: 'Montserrat', sans-serif;
}
.wl-cb-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}
.wl-cb-text { flex: 1; min-width: 200px; }
.wl-cb-text strong { font-size: 14px; color: #2c2c2c; display: block; margin-bottom: 4px; }
.wl-cb-text p { font-size: 12px; color: #8a7a72; line-height: 1.6; margin: 0; }
.wl-cb-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wl-cb-btn {
  padding: 9px 18px; border-radius: 50px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit; letter-spacing: 0.04em;
  transition: opacity .2s, background .2s;
}
.wl-cb-prefs { background: #f0ebe4; color: #8a7a72; }
.wl-cb-prefs:hover { background: #e8e0d8; }
.wl-cb-reject { background: #f0ebe4; color: #c4715a; border: 1px solid rgba(196,113,90,0.3); }
.wl-cb-reject:hover { background: #e8e0d8; }
.wl-cb-accept { background: #c4715a; color: #fff; }
.wl-cb-accept:hover { opacity: .88; }

/* ── Preferences Panel ── */
.wl-cp-overlay {
  position: fixed; inset: 0; background: rgba(44,36,32,0.5); z-index: 99998;
}
#wl-cookie-panel { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.wl-cp-box {
  background: #fff; border-radius: 20px; padding: 2rem;
  max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 16px 60px rgba(0,0,0,0.15);
  font-family: 'Montserrat', sans-serif;
  animation: wlSlideUp .3s ease;
}
@keyframes wlSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.wl-cp-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 18px; cursor: pointer; color: #8a7a72;
}
.wl-cp-title { font-size: 18px; color: #2c2c2c; margin-bottom: 6px; font-weight: 700; }
.wl-cp-desc { font-size: 13px; color: #8a7a72; line-height: 1.6; margin-bottom: 1.5rem; }
.wl-cp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 0.5px solid rgba(180,140,120,0.2);
  gap: 1rem;
}
.wl-cp-row:last-of-type { border-bottom: none; }
.wl-cp-cat { font-size: 14px; font-weight: 600; color: #2c2c2c; margin-bottom: 3px; }
.wl-cp-sub { font-size: 12px; color: #8a7a72; line-height: 1.5; }

/* Toggle switch */
.wl-toggle {
  width: 44px; height: 24px; border-radius: 50px;
  background: #e0d8d0; position: relative; cursor: pointer;
  flex-shrink: 0; transition: background .2s;
}
.wl-toggle span {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.wl-toggle-on { background: #c4715a; }
.wl-toggle-on span { transform: translateX(20px); }
.wl-toggle-disabled { opacity: 0.5; cursor: not-allowed; background: #c4715a; }
.wl-toggle-disabled span { transform: translateX(20px); }

.wl-cp-btns { margin-top: 1.5rem; }
.wl-cp-save {
  width: 100%; padding: 13px; background: #c4715a; color: #fff;
  border: none; border-radius: 50px; font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .2s;
}
.wl-cp-save:hover { opacity: .88; }

/* Cookie settings link (footer) */
.wl-cookie-link {
  font-size: 12px; color: #8a7a72; cursor: pointer;
  text-decoration: underline; background: none; border: none;
  font-family: inherit; padding: 0;
}
.wl-cookie-link:hover { color: #c4715a; }

@media (max-width: 600px) {
  #wl-cookie-banner { bottom: 0; left: 0; right: 0; width: 100%; border-radius: 16px 16px 0 0; transform: translateY(20px); }
  .wl-cb-inner { flex-direction: column; align-items: flex-start; }
  .wl-cb-btns { width: 100%; }
  .wl-cb-btn { flex: 1; text-align: center; }
}