/*
 * WR71 Instant Master
 * Upload Consent Module
 * Version 1.0.0
 */

.wr71-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.wr71-consent-overlay.wr71-consent-visible {
  opacity: 1;
  visibility: visible;
}

.wr71-consent-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(25, 30, 39, 0.98),
      rgba(11, 15, 21, 0.98)
    );
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateY(14px) scale(0.98);
  transition: transform 180ms ease;
}

.wr71-consent-visible .wr71-consent-modal {
  transform: translateY(0) scale(1);
}

.wr71-consent-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.wr71-consent-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: scale(1.04);
}

.wr71-consent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(123, 255, 79, 0.22),
      rgba(164, 255, 128, 0.08)
    );
  border: 1px solid rgba(135, 255, 90, 0.35);
  color: #8fff63;
  font-size: 30px;
  font-weight: 800;
}

.wr71-consent-modal h2 {
  margin: 0 48px 10px 0;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.wr71-consent-intro {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.6;
}

.wr71-consent-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.wr71-consent-option:hover {
  border-color: rgba(143, 255, 99, 0.28);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.wr71-consent-option input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #8fff63;
  cursor: pointer;
}

.wr71-consent-option span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.55;
}

.wr71-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.wr71-consent-actions button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    opacity 150ms ease;
}

.wr71-consent-cancel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
}

.wr71-consent-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.wr71-consent-continue {
  border: 1px solid rgba(143, 255, 99, 0.46);
  background:
    linear-gradient(
      135deg,
      #7cff4e,
      #a8ff86
    );
  color: #0b1408;
  box-shadow: 0 10px 30px rgba(124, 255, 78, 0.18);
}

.wr71-consent-continue:hover:not(:disabled) {
  transform: translateY(-1px);
}

.wr71-consent-continue:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.wr71-consent-actions button:focus-visible,
.wr71-consent-close:focus-visible,
.wr71-consent-option input:focus-visible {
  outline: 2px solid #8fff63;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .wr71-consent-overlay {
    align-items: flex-end;
    padding: 14px;
  }

  .wr71-consent-modal {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 28px 20px 20px;
    border-radius: 20px;
  }

  .wr71-consent-actions {
    flex-direction: column-reverse;
  }

  .wr71-consent-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wr71-consent-overlay,
  .wr71-consent-modal,
  .wr71-consent-close,
  .wr71-consent-option,
  .wr71-consent-actions button {
    transition: none;
  }
}
