/* Privacy checkbox wrapper */
.privacy-checkbox-wrapper {
  margin: 16px 0;
}

/* Override BoCheckbox styles for privacy checkbox */
.privacy-checkbox-wrapper .bo-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-checkbox-wrapper .bo-checkbox label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin: 0;
  font-family: inherit;
  line-height: 1.5;
}

.privacy-checkbox-wrapper .bo-checkbox .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.7px solid #dedbce;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.privacy-checkbox-wrapper .bo-checkbox .form-check-input:checked {
  background-color: #e37410;
  border-color: #e37410;
}

.privacy-checkbox-wrapper .bo-checkbox .form-check-input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.privacy-checkbox-wrapper .bo-checkbox .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 138, 75, 0.3);
}

.privacy-checkbox-wrapper .bo-checkbox .form-check-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.privacy-checkbox-wrapper .bo-checkbox span {
  color: #dedbce;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  user-select: none;
}

/* Privacy links styling */
.privacy-link {
  color: #dedbce;
  font-size: 12px;
  font-weight: 400;
  line-height: 132.5%;
  text-decoration-line: underline;
  text-decoration-color: #dedbce;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #bebbaa;
  text-decoration-color: #bebbaa;
}

.privacy-link:focus {
  outline: none;
  color: #e37410;
  text-decoration-color: #e37410;
}

/* Disabled state */
.privacy-checkbox-wrapper .bo-checkbox.disabled span {
  color: #dedbce;
  cursor: not-allowed;
}

.privacy-checkbox-wrapper .bo-checkbox.disabled .privacy-link {
  color: #dedbce;
  text-decoration-color: #dedbce;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .privacy-checkbox-wrapper .bo-checkbox .form-check-input {
    width: 18px;
    height: 18px;
  }

  .privacy-checkbox-wrapper .bo-checkbox .form-check-input:checked::after {
    width: 10px;
    height: 7px;
  }

  .privacy-checkbox-wrapper .bo-checkbox span {
    font-size: 13px;
  }
}

/* Animation for shaken effect */

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.2s ease-in-out;
}
