/* EEC Ventures Cookie Consent — scoped to #ecc-* to avoid conflicts */

#ecc-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 9997;
}
#ecc-backdrop.visible { display: block; }

#ecc-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid #1c6b31;
  z-index: 9998;
  padding: 22px 32px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.10);
}
#ecc-banner.visible { display: block; }

#ecc-main { max-width: 960px; margin: 0 auto; }

#ecc-ttl {
  margin: 0 0 8px;
  font-family: Lato, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1c6b31;
}

#ecc-txt {
  margin: 0 0 14px;
  font-family: Lato, sans-serif;
  font-size: .82rem;
  line-height: 1.65;
  color: #555;
  max-height: 62px;
  overflow: hidden;
}

#ecc-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ecc-btn {
  padding: 9px 20px;
  border-radius: 4px;
  font-family: Lato, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

.ecc-accept { background: #1c6b31; color: #fff; }
.ecc-accept:hover { background: #155225; }

.ecc-reject { background: transparent; color: #393939; border: 2px solid #ccc; }
.ecc-reject:hover { border-color: #393939; }

.ecc-link {
  background: transparent;
  color: #1c6b31;
  text-decoration: underline;
  padding: 9px 4px;
  border: none;
}
.ecc-link:hover { color: #155225; }

/* Settings modal */
#ecc-settings {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#ecc-settings.visible { display: flex; }

#ecc-box {
  background: #fff;
  border-radius: 6px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  font-family: Lato, sans-serif;
  color: #393939;
}

#ecc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
#ecc-hd h2 { margin: 0; font-size: 1rem; font-weight: 700; color: #1c6b31; }

#ecc-x {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
  line-height: 1;
}
#ecc-x:hover { color: #393939; }

#ecc-bd { padding: 0 24px 8px; }
.ecc-intro { font-size: .82rem; line-height: 1.65; color: #555; margin: 14px 0 10px; }

.ecc-cat { border-bottom: 1px solid #e6e6e6; padding: 14px 0; }
.ecc-cat:last-child { border-bottom: none; }

.ecc-cat-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ecc-cat-hd h3 { margin: 0; font-size: .88rem; font-weight: 700; color: #393939; }
.ecc-cat p { margin: 0; font-size: .78rem; line-height: 1.6; color: #666; }

/* Toggle switch */
.ecc-tgl { position: relative; width: 42px; height: 22px; flex-shrink: 0; }
.ecc-tgl input { position: absolute; opacity: 0; width: 0; height: 0; }
.ecc-sl {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  cursor: pointer;
  transition: background .2s;
}
.ecc-sl::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.ecc-tgl input:checked + .ecc-sl { background: #1c6b31; }
.ecc-tgl input:checked + .ecc-sl::before { transform: translateX(20px); }
.ecc-tgl input:disabled + .ecc-sl { opacity: .7; cursor: not-allowed; }

#ecc-ft {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid #e6e6e6;
  position: sticky;
  bottom: 0;
  background: #fff;
}

/* Consent ID line below settings footer */
#ecc-cid {
  margin: 0;
  padding: 8px 24px 14px;
  font-family: Lato, sans-serif;
  font-size: .7rem;
  color: #aaa;
  text-align: right;
  border-top: none;
}
#ecc-cid span { font-family: monospace; }

/* Floating button — visible after consent is given */
#ecc-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9996;
  background: #d8d8d8;
  border: none;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .2s;
}
#ecc-fab.visible { display: flex; }
#ecc-fab:hover { background: #c4c4c4; }
#ecc-fab img { display: block; }

@media (max-width: 600px) {
  #ecc-banner { padding: 16px; }
  #ecc-btns { flex-direction: column; align-items: stretch; }
  .ecc-btn { text-align: center; }
  #ecc-ft { flex-direction: column; }
}
