.terms-handshake {
  position: relative;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.terms-handshake.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.terms-handshake.is-locked input {
  opacity: 0.48;
  cursor: not-allowed;
}

.terms-handshake.is-unlocked input {
  accent-color: #C5A059;
  filter: drop-shadow(0 0 6px rgba(197, 160, 89, 0.35));
}

.terms-success-indicator {
  display: none;
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  margin-left: auto;
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.18);
  color: #16A34A;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.terms-success-indicator::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #16A34A;
  border-bottom: 2px solid #16A34A;
  transform: rotate(45deg);
}

.terms-handshake.is-unlocked .terms-success-indicator {
  display: inline-flex;
}

.terms-handshake.is-tooltip-visible::after {
  content: attr(data-terms-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 14px;
  background: rgba(36, 29, 20, 0.96);
  box-shadow: 0 16px 32px rgba(20, 14, 7, 0.22);
  color: #FFF8EC;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.terms-handshake.is-tooltip-visible::before {
  content: "";
  position: absolute;
  left: 18px;
  top: calc(100% + 3px);
  z-index: 21;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(197, 160, 89, 0.3);
  border-left: 1px solid rgba(197, 160, 89, 0.3);
  background: rgba(36, 29, 20, 0.96);
  transform: rotate(45deg);
}
