:root {
  --ed-accent:        #afc836;  /* sportspirit: #afc836 | puma: #ae946d */
  --ed-accent-hover:  #000000;
  --ed-text:          #222222;
  --ed-text-light:    #6a6a6a;
  --ed-border:        #cccccc;
  --ed-border-sep:    #eaeaea;
  --ed-bg-modal:      #ffffff;
  --ed-bg-overlay:    rgba(0, 0, 0, 0.2);
}

.ed-consent__overlay {
  position: fixed;
  inset: 0;
  background: var(--ed-bg-overlay);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 99999;
}

.ed-consent__overlay-custom {
  position: fixed;
  inset: 0;
  background: var(--ed-bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.ed-consent__modal {
  background: var(--ed-bg-modal);
  padding: 2rem 3rem;
  width: 100%;
  border-top: 2px solid var(--ed-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ed-consent__modal h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--ed-text);
  font-weight: 700;
  margin: 0;
  padding: 0;
  letter-spacing: 1px;
}

.ed-consent__modal p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--ed-text-light);
  margin: 0;
  padding: .5rem 0;
  flex: 1;
  min-width: 200px;
}

.ed-consent__link {
  color: var(--ed-accent);
  text-decoration: underline;
}

.ed-consent__link:hover {
  text-decoration: none;
}

.ed-consent__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ed-consent__buttons button {
  border: none;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 4rem;
  padding: 0 2rem;
  cursor: pointer;
  transition: all .5s;
  color: #fff;
  background: var(--ed-accent);
  white-space: nowrap;
}

.ed-consent__buttons button:hover {
  background: var(--ed-accent-hover);
  color: #fff;
}

#ed-reject-all {
  background: var(--ed-bg-modal);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
}

#ed-reject-all:hover {
  background: var(--ed-accent-hover);
  color: #fff;
}

#ed-custom-btn {
  background: var(--ed-bg-modal);
  color: var(--ed-accent);
  border: 1px solid var(--ed-accent);
}

#ed-custom-btn:hover {
  background: var(--ed-accent);
  color: #fff;
}

.ed-consent__modal-custom {
  background: var(--ed-bg-modal);
  padding: 3rem;
  width: 48rem;
  max-width: 95vw;
  max-height: 85vh;
  overflow-y: auto;
  border-top: 2px solid var(--ed-accent);
}

.ed-consent__modal-custom h3 {
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--ed-text);
  font-weight: 700;
  margin: 0 0 1rem;
  padding: 0;
  letter-spacing: 1px;
}

.ed-consent__custom-desc {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--ed-text-light);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ed-border-sep);
}

.ed-consent__form {
  display: flex;
  flex-direction: column;
}

.ed-consent__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ed-border-sep);
}

.ed-consent__item--required {
  cursor: default;
}

.ed-consent__item-text {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ed-consent__item-label {
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--ed-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .8rem;
  letter-spacing: .5px;
}

.ed-consent__item-desc {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--ed-text-light);
  margin: 0;
}

.ed-consent__badge {
  font-size: 1rem;
  background: var(--ed-accent);
  color: #fff;
  padding: .2rem .8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.ed-consent__item--required .ed-consent__switch {
  opacity: 0.4;
  pointer-events: none;
}

.ed-consent__switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.ed-consent__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ed-consent__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--ed-border);
  border-radius: 26px;
  transition: .3s;
}

.ed-consent__slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}

.ed-consent__switch input:checked + .ed-consent__slider {
  background: var(--ed-accent);
}

.ed-consent__switch input:checked + .ed-consent__slider:before {
  transform: translateX(20px);
}

.ed-consent__buttons-custom {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.ed-consent__buttons-custom button {
  border: none;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 4rem;
  padding: 0 2rem;
  cursor: pointer;
  transition: all .5s;
  flex: 1;
}

#ed-save-btn {
  background: var(--ed-accent);
  color: #fff;
}

#ed-save-btn:hover {
  background: var(--ed-accent-hover);
}

#ed-back-btn {
  background: var(--ed-bg-modal);
  color: var(--ed-text);
  border: 1px solid var(--ed-border);
}

#ed-back-btn:hover {
  background: var(--ed-accent-hover);
  color: #fff;
}

#ed-consent-reopen {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  left: auto;
  z-index: 99998;
  background: var(--ed-accent);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: all .5s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#ed-consent-reopen:hover {
  background: var(--ed-accent-hover);
  transform: scale(1.1);
}

#ed-consent-reopen svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

@media (max-width: 768px) {
  .ed-consent__modal {
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .ed-consent__buttons {
    width: 100%;
  }

  .ed-consent__buttons button {
    flex: 1;
    text-align: center;
  }

  .ed-consent__modal-custom {
    padding: 1.5rem;
    width: 100%;
    max-height: 90vh;
    margin: 0 1rem;
  }

  #ed-consent-reopen {
    bottom: 8rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  #ed-consent-reopen svg {
    width: 20px;
    height: 20px;
  }
}