/* Standalone Opt-In Gate (vanilla JS) */

/* Full-screen overlay */
#nugget-optin-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.4); /* light dim */
  z-index: 999999;
}

/* Gate panel */
#nugget-optin-gate .nugget-gate {
  max-width: 520px;
  width: 92%;
  background: #ffffff;            /* white background */
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 20px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);

  box-sizing: border-box;
}

/* Header */
#nugget-optin-gate .nugget-gate-header h1 {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 1.3;
  color: #111827;
}

#nugget-optin-gate .nugget-gate-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

/* Body / notice */
#nugget-optin-gate .nugget-gate-body {
  margin-top: 16px;
}

#nugget-optin-gate .gate-notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  font-size: 13px;
  color: #92400e;
}

/* Options layout */
#nugget-optin-gate .gate-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

#nugget-optin-gate .gate-option h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

#nugget-optin-gate .instruction-block p code {
  font-size: 16px;       /* size as you like */
  font-weight: 700;      /* bold */
  color: #000000;        /* black */
}
#nugget-optin-gate .gate-option p {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #4b5563;
}

/* Instructions blocks */
#nugget-optin-gate .optin-instructions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#nugget-optin-gate .instruction-block {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

#nugget-optin-gate .instruction-block strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #111827;
}

#nugget-optin-gate .instruction-block p {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
}

#nugget-optin-gate .instruction-block code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: "Courier New", monospace;
}

#nugget-optin-gate .instruction-block .help {
  margin-top: 4px;
  font-size: 12px;
}

/* Buttons */
#nugget-optin-gate .gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 9999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#nugget-optin-gate .gate-btn-primary {
  background: #f59e0b;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#nugget-optin-gate .gate-btn-primary:hover {
  background: #d97706;
}

#nugget-optin-gate .gate-btn-link {
  background: transparent;
  color: #6b7280;
}

#nugget-optin-gate .gate-btn-link:hover {
  color: #374151;
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #nugget-optin-gate .nugget-gate {
    width: 94%;
    padding: 18px 16px;
    border-radius: 14px;
  }

  #nugget-optin-gate .nugget-gate-header h1 {
    font-size: 18px;
  }

  #nugget-optin-gate .gate-options {
    gap: 14px;
  }

  #nugget-optin-gate .gate-btn {
    width: 100%;
  }
}
