
/* ============================================================
   TAB 9 — PRIVACY & STRIPE — CSS
   ============================================================ */

#tab9-content .prv-subtab-nav {
  display: flex;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  width: fit-content;
}

#tab9-content .prv-subtab-btn {
  padding: 8px 20px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: #666;
  border: none;
  border-right: 1px solid #ddd;
  transition: background 0.15s;
}

#tab9-content .prv-subtab-btn:last-child { border-right: none; }

#tab9-content .prv-subtab-btn.active {
  background: #f5f5f5;
  color: #222;
  font-weight: 600;
}

#tab9-content .prv-panel { display: none; }
#tab9-content .prv-panel.active { display: block; }

#tab9-content .prv-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

#tab9-content .prv-card-title {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

#tab9-content .prv-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

#tab9-content .prv-field-row:last-child { margin-bottom: 0; }

#tab9-content .prv-field-label {
  font-size: 13px;
  color: #555;
  min-width: 200px;
}

#tab9-content .prv-field-val { flex: 1; }

#tab9-content .prv-field-val input,
#tab9-content .prv-field-val select {
  width: 100%;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 7px 10px;
  color: #222;
  background: #fafafa;
}

#tab9-content .prv-field-val input:focus,
#tab9-content .prv-field-val select:focus {
  outline: none;
  border-color: #999;
  background: #fff;
}

/* Toggle rows */
#tab9-content .prv-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
}

#tab9-content .prv-toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#tab9-content .prv-toggle-label {
  font-size: 13px;
  color: #222;
  font-weight: 500;
}

#tab9-content .prv-toggle-desc {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* Toggle switch */
#tab9-content .prv-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #ddd;
  border: 1px solid #ccc;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

#tab9-content .prv-toggle.on {
  background: #1D9E75;
  border-color: #0F6E56;
}

#tab9-content .prv-toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#tab9-content .prv-toggle.on .prv-toggle-knob { left: 18px; }

/* Badge */
#tab9-content .prv-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 600;
  flex-shrink: 0;
}

#tab9-content .prv-badge-ok   { background: #E1F5EE; color: #085041; }
#tab9-content .prv-badge-warn { background: #FAEEDA; color: #633806; }
#tab9-content .prv-badge-info { background: #E6F1FB; color: #0C447C; }
#tab9-content .prv-badge-err  { background: #FCEBEB; color: #791F1F; }

/* Stripe status bar */
#tab9-content .prv-stripe-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #e5e5e5;
}

#tab9-content .prv-stripe-icon {
  width: 38px;
  height: 38px;
  background: #635BFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: white;
  font-weight: 700;
  font-style: italic;
  flex-shrink: 0;
}

#tab9-content .prv-stripe-label {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

#tab9-content .prv-stripe-subdesc {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

/* Doc rows */
#tab9-content .prv-doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}

#tab9-content .prv-doc-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#tab9-content .prv-doc-name {
  font-size: 13px;
  color: #222;
  font-weight: 500;
}

#tab9-content .prv-doc-meta {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

#tab9-content .prv-doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#tab9-content .prv-btn-sm {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #555;
  cursor: pointer;
}

#tab9-content .prv-btn-sm:hover { background: #f5f5f5; }

/* Note info */
#tab9-content .prv-note {
  background: #f8f8f8;
  border-left: 3px solid #ddd;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

#tab9-content .prv-note strong { color: #333; }

/* Save bar */
#tab9-content .prv-save-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

#tab9-content .prv-save-btn {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

#tab9-content .prv-save-btn:hover { background: #444; }
#tab9-content .prv-save-btn:disabled { background: #aaa; cursor: default; }

/* Messaggio globale */
#tab9-content .prv-global-msg {
  display: none;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

#tab9-content .prv-msg-success { background: #E1F5EE; color: #085041; }
#tab9-content .prv-msg-error   { background: #FCEBEB; color: #791F1F; }
