/* ===== Cookie Banner ===== */
#gd-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  transform: translateY(0);
  width: min(440px, calc(100vw - 32px));
  background: #0d0f1a;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 9999;
  opacity: 1;
  font-family: inherit;
}

#gd-cookie-banner.gd-cb--visible {
  transform: translateY(0);
  opacity: 1;
}

.gd-cb__inner {
  padding: 18px;
}

.gd-cb__title {
  font-size: 1rem;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.gd-cb__desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0 0 16px;
}

.gd-cb__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.gd-cb__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.gd-cb__option:hover:not(.gd-cb__option--disabled) {
  background: rgba(255,255,255,0.07);
}

.gd-cb__option--disabled {
  cursor: default;
  opacity: 0.75;
}

.gd-cb__opt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.gd-cb__opt-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.gd-cb__opt-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

.gd-cb__check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gd-cb__toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.15);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.25s;
}

.gd-cb__toggle--on {
  background: #d4af37;
}

.gd-cb__option:focus-within,
.gd-cb__btn:focus-visible,
#gd-cookie-manage-btn:focus-visible {
  outline: 3px solid rgba(212,175,55,0.9);
  outline-offset: 3px;
}

.gd-cb__toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.gd-cb__toggle--on .gd-cb__toggle-knob {
  transform: translateX(18px);
}

.gd-cb__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gd-cb__btn {
  flex: 1;
  min-width: 100px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.gd-cb__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.gd-cb__btn--primary {
  background: #d4af37;
  color: #0d0f1a;
}

.gd-cb__btn--secondary {
  background: rgba(212,175,55,0.15);
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.3);
}

.gd-cb__btn--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}

.gd-cb__fine {
  margin-top: 12px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

.gd-cb__fine a {
  color: rgba(212,175,55,0.6);
  text-decoration: none;
}

.gd-cb__fine a:hover {
  color: #d4af37;
}

/* Manage button (bottom-left, shows after consent) */
#gd-cookie-manage-btn {
  position: fixed;
  bottom: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0d0f1a;
  border: 1px solid rgba(212,175,55,0.3);
  color: rgba(212,175,55,0.7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: .78;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

#gd-cookie-manage-btn:hover {
  border-color: #d4af37;
  color: #d4af37;
  transform: rotate(30deg);
}

@media (max-width: 480px) {
  #gd-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 10px;
    width: auto;
  }

  .gd-cb__inner {
    padding: 10px;
  }

  .gd-cb__title {
    font-size: .9rem;
    margin-bottom: 4px;
  }

  .gd-cb__desc {
    display: none;
  }

  .gd-cb__options,
  .gd-cb__fine {
    display: none;
  }

  .gd-cb__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .gd-cb__btn {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 8px 5px;
    font-size: .68rem;
    white-space: normal;
  }
}
