/* XNCom custom plan — alineado a xnflowcart7 (navy #0a2038, acento #1a6bef) */

.xnc-custom-config {
  margin-bottom: 8px;
}

.xnc-custom-intro {
  margin-bottom: 20px;
}

.xnc-custom-intro .fc-config-section-title {
  margin-bottom: 8px;
}

.xnc-custom-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.xnc-custom-lead strong {
  color: #0a2038;
  font-weight: 600;
}

/* Tip plan fijo recomendado */
.xnc-plan-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 14px;
  line-height: 1.45;
}

.xnc-plan-tip.hidden {
  display: none;
}

.xnc-plan-tip i {
  color: #1a6bef;
  font-size: 16px;
}

.xnc-plan-tip-link {
  font-weight: 600;
  color: #1a6bef !important;
  text-decoration: none;
  white-space: nowrap;
}

.xnc-plan-tip-link:hover,
.xnc-plan-tip-link:focus {
  color: #1558c7 !important;
  text-decoration: underline;
}

.xnc-summary-extra-row {
  margin-bottom: 4px;
  font-size: 13px;
}

.xnc-summary-hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

/* Reset herencia flowcart (style.css label uppercase) dentro del configurador custom */
.xnc-custom-config label,
.xnc-custom-config .fc-config-check-item,
.xnc-custom-config .fc-config-check-text,
.xnc-custom-config .fc-config-check-text strong,
.xnc-custom-config .fc-config-check-text small,
.xnc-custom-config .xnc-token-option,
.xnc-custom-config .xnc-token-label,
.xnc-custom-config .xnc-token-price {
  text-transform: none;
  letter-spacing: 0;
}

.xnc-custom-config .fc-config-check-item {
  font-size: inherit;
  font-weight: 400;
}

.xnc-custom-config .fc-config-check-text strong {
  font-size: 14px;
  font-weight: 600;
}

.xnc-custom-config .fc-config-check-text small,
.xnc-custom-config .xnc-token-price {
  font-size: 12px;
  font-weight: 400;
}

.xnc-custom-config .xnc-token-label {
  font-size: 13px;
  font-weight: 600;
}

/* Sliders */
.xnc-slider-grid {
  display: grid;
  gap: 22px;
}

@media (min-width: 768px) {
  .xnc-slider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }

  .xnc-slider-grid .xnc-slider-field:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 14px);
  }
}

.xnc-slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.xnc-slider-head label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0a2038;
  text-transform: none;
  letter-spacing: 0;
}

.xnc-unit-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
}

.xnc-slider-value {
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1a6bef;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.xnc-range {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: #e2e8f0;
  accent-color: #1a6bef;
  cursor: pointer;
}

.xnc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1a6bef;
  box-shadow: 0 2px 8px rgba(26, 107, 239, 0.35);
  cursor: pointer;
}

.xnc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1a6bef;
  box-shadow: 0 2px 8px rgba(26, 107, 239, 0.35);
  cursor: pointer;
}

.xnc-slider-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

/* Módulos — reutiliza fc-config-check-item del tema */
.xnc-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.xnc-module-item {
  margin: 0;
  height: 100%;
}

.xnc-module-item.fc-config-check-item:has(input:checked) {
  border-color: #1a6bef;
  background: #f8fbff;
}

/* Incluido — espejo de fc-includes-block */
.xnc-includes-block {
  margin: 20px 0 4px;
  padding: 20px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.xnc-includes-head {
  margin: 0 0 14px;
  text-align: center;
}

.xnc-includes-head span {
  font-size: 14px;
  font-weight: 700;
  color: #0a2038;
}

.xnc-includes-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xnc-includes-list > li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.xnc-includes-list > li .fa-check {
  position: absolute;
  left: 0;
  top: 3px;
  color: #1a6bef;
  font-size: 12px;
}

/* Billing cycle cuando va después del configurador */
.xnc-custom-billing-wrap {
  margin-top: 24px;
}

.xnc-custom-billing-wrap .fc-config-billing {
  margin-bottom: 0;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(10, 32, 56, 0.04);
}

.xnc-custom-billing-wrap .fc-config-title {
  font-size: 18px;
  margin-bottom: 12px;
}

/* En plan personalizado el precio base es 0 — ocultar ₡0.00 confuso; el sumario WHMCS tiene el real */
.xnc-custom-billing #billingcycle_data label.cycle-1 > b {
  display: none;
}

.xnc-custom-billing #billingcycle_data label.cycle-1 .fc-cycle-label {
  margin-top: 10px;
  font-size: 12px;
}

.xnc-billing-hint {
  margin: -8px 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.xnc-billing-hint strong {
  color: #0a2038;
}

/* Tokens IA tier */
.xnc-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.xnc-token-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.xnc-token-option:hover {
  border-color: #93c5fd;
}

.xnc-token-option.xnc-token-selected {
  border-color: #1a6bef;
  box-shadow: 0 0 0 3px rgba(26, 107, 239, 0.12);
  background: #f8fbff;
}

.xnc-token-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.xnc-token-label {
  font-size: 13px;
  font-weight: 600;
  color: #0a2038;
}

.xnc-token-price {
  font-size: 12px;
  color: #64748b;
}
