/* Kontener główny */

.custom-consent-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1.2em 0 0.5em 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
}

/* Ukrywamy domyślny, brzydki checkbox */
.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Label jako flexbox */
.checkbox-label {
  display: flex;
  cursor: pointer;
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--color-text, #e2e8f0); /* Dostosuj do swojego tekstu */
  user-select: none;
}

/* Customowy kwadracik */
.checkbox-box {
  flex-shrink: 0;
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 2px solid var(--color-accent, #38bdf8);
  border-radius: 4px;
  margin-right: 12px;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}

/* Efekt po najechaniu */
.checkbox-label:hover .checkbox-box {
  background-color: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 8px var(--color-accent, #38bdf8);
}

/* Stan zaznaczony - tło */
.checkbox-wrapper input:checked ~ .checkbox-label .checkbox-box {
  background-color: var(--color-accent, #38bdf8);
}

/* Ptaszka (V) w środku - robimy z pseudo-elementu */
.checkbox-box:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Pokazujemy ptaszka gdy zaznaczone */
.checkbox-wrapper input:checked ~ .checkbox-label .checkbox-box:after {
  display: block;
}

/* Styl linku wewnątrz labela */
.checkbox-label a {
  color: var(--color-accent, #38bdf8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.2s;
}

.checkbox-label a:hover {
  border-bottom: 1px solid var(--color-accent, #38bdf8);
}

/* Styl dla błędu (gdy użytkownik nie zaznaczy, a spróbuje wysłać) */
.checkbox-wrapper input:invalid:focused ~ .checkbox-label .checkbox-box {
  border-color: #ef4444;
}