#gp-cookie-banner *,
#gp-cookie-banner *::before,
#gp-cookie-banner *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#gp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  font-family: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #1a2e1c;
}

/* ── BACKDROP ── */
#gp-cb-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 28, .5);
  backdrop-filter: blur(3px);
  z-index: -1;
  animation: gpCbFadeIn .25s ease;
}

#gp-cb-backdrop.active {
  display: block;
}

/* ── BAR ── */
#gp-cb-bar {
  background: #ffffff;
  border-top: 3px solid #2DB84B;
  box-shadow: 0 -8px 40px rgba(30, 80, 30, .14);
  padding: 1.25rem 2rem;
  animation: gpCbSlideUp .3s cubic-bezier(.16, 1, .3, 1);
}

#gp-cb-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

#gp-cb-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

#gp-cb-logo-leaf {
  width: 34px;
  height: 34px;
  background: #2DB84B;
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#gp-cb-logo-leaf svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

#gp-cb-text {
  flex: 1;
  min-width: 280px;
}

#gp-cb-text strong {
  display: block;
  font-family: 'Cabinet Grotesk', 'Georgia', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1a2e1c;
  letter-spacing: .01em;
  margin-bottom: .2rem;
}

#gp-cb-text p {
  font-size: .88rem;
  color: #4a6050;
}

#gp-cb-text a {
  color: #2DB84B;
  text-decoration: underline;
}

#gp-cb-text a:hover {
  color: #1e9036;
}

#gp-cb-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.gp-cb-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  padding: .55rem 1.2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  line-height: 1;
}

.gp-cb-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 80, 30, .18);
}

.gp-cb-btn:focus-visible {
  outline: 2px solid #2DB84B;
  outline-offset: 2px;
}

#gp-cb-btn-accept {
  background: #2DB84B;
  color: #fff;
}

#gp-cb-btn-accept:hover {
  background: #1e9036;
}

#gp-cb-btn-reject {
  background: transparent;
  color: #1a2e1c;
  border: 1.5px solid #b8d9bc;
}

#gp-cb-btn-reject:hover {
  border-color: #2DB84B;
  background: #e6f7ea;
}

#gp-cb-btn-settings {
  background: transparent;
  color: #4a6050;
  border: 1.5px solid transparent;
  font-size: .84rem;
  padding: .45rem .8rem;
  text-decoration: underline;
  letter-spacing: .01em;
}

#gp-cb-btn-settings:hover {
  color: #1a2e1c;
  box-shadow: none;
  transform: none;
}

/* ── DETAIL MODAL ── */
#gp-cb-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  align-items: flex-end;
  justify-content: center;
}

#gp-cb-modal.open {
  display: flex;
  animation: gpCbFadeIn .2s ease;
}

#gp-cb-modal-box {
  background: #ffffff;
  border-top: 4px solid #2DB84B;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -12px 60px rgba(30, 80, 30, .2);
  animation: gpCbSlideUp .3s cubic-bezier(.16, 1, .3, 1);
  padding: 2rem;
}

#gp-cb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

#gp-cb-modal-title {
  font-family: 'Cabinet Grotesk', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2e1c;
}

#gp-cb-modal-close {
  width: 2rem;
  height: 2rem;
  background: #e6f7ea;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a6050;
  font-size: 1.1rem;
  line-height: 1;
  transition: background .15s, color .15s;
}

#gp-cb-modal-close:hover {
  background: #2DB84B;
  color: #fff;
}

#gp-cb-modal-intro {
  font-size: .88rem;
  color: #4a6050;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

#gp-cb-modal-intro a {
  color: #2DB84B;
}

/* ── CATEGORIES ── */
.gp-cb-cat {
  border: 1px solid #d1e8d4;
  border-radius: 8px;
  margin-bottom: .75rem;
  overflow: hidden;
}

.gp-cb-cat-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  background: #f7faf7;
  cursor: pointer;
  user-select: none;
}

.gp-cb-cat-head:hover {
  background: #e6f7ea;
}

.gp-cb-cat-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.gp-cb-cat-label {
  flex: 1;
  font-size: .9rem;
  line-height: 1.3;
}

.gp-cb-cat-label strong {
  display: block;
  color: #1a2e1c;
  font-weight: 600;
}

.gp-cb-cat-label small {
  color: #4a6050;
  font-size: .8rem;
}

.gp-cb-chevron {
  font-size: .7rem;
  color: #8aaa8e;
  transition: transform .2s;
  flex-shrink: 0;
}

.gp-cb-cat.expanded .gp-cb-chevron {
  transform: rotate(180deg);
}

.gp-cb-cat-body {
  display: none;
  padding: .9rem 1rem 1rem;
  border-top: 1px solid #d1e8d4;
  font-size: .84rem;
  color: #4a6050;
  line-height: 1.65;
}

.gp-cb-cat.expanded .gp-cb-cat-body {
  display: block;
}

.gp-cb-cat-body ul {
  margin: .5rem 0 0 1rem;
}

.gp-cb-cat-body li {
  margin-bottom: .3rem;
}

/* ── TOGGLE SWITCH ── */
.gp-cb-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.gp-cb-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gp-cb-toggle-track {
  position: absolute;
  inset: 0;
  background: #b8d9bc;
  border-radius: 9999px;
  transition: background .2s;
  cursor: pointer;
}

.gp-cb-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.gp-cb-toggle input:checked+.gp-cb-toggle-track {
  background: #2DB84B;
}

.gp-cb-toggle input:checked+.gp-cb-toggle-track::after {
  transform: translateX(18px);
}

.gp-cb-toggle input:disabled+.gp-cb-toggle-track {
  opacity: .55;
  cursor: not-allowed;
}

/* ── MODAL ACTIONS ── */
#gp-cb-modal-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #d1e8d4;
}

/* ── FLOAT BTN ── */
#gp-cb-float {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 2.4rem;
  height: 2.4rem;
  background: #2DB84B;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(30, 80, 30, .3);
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .18s, transform .18s;
}

#gp-cb-float.visible {
  display: flex;
}

#gp-cb-float:hover {
  background: #1e9036;
  transform: scale(1.08);
}

@media (max-width: 1024px) {
  #gp-cb-float {
    bottom: 5.5rem;
    left: 1rem;
    width: 2.0rem;
    height: 2.0rem;
    font-size: 0.9rem;
  }
}

/* ── ANIMATIONS ── */
@keyframes gpCbSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes gpCbFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  #gp-cb-bar {
    padding: 1.1rem 1rem;
  }

  #gp-cb-inner {
    gap: 1rem;
  }

  #gp-cb-actions {
    width: 100%;
  }

  .gp-cb-btn {
    flex: 1;
    justify-content: center;
  }

  #gp-cb-modal-box {
    padding: 1.25rem;
  }
}