/* Estilos para o simulador de pagamento (Pix vs Cartão) e Parcelamento */
.payment-panel {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #1e293b;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.payment-panel[hidden] { display: none !important; }
.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.payment-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.payment-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.payment-tab-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.payment-tab-btn.is-active {
  border-color: #702082;
  background: #fbf5fc;
  color: #581666;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(112, 32, 130, 0.15);
}
.payment-tab-btn.is-pix.is-active {
  border-color: #059669;
  background: #ecfdf5;
  color: #065f46;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.15);
}
.payment-cartao-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}
.payment-cartao-block[hidden] { display: none !important; }
.payment-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.payment-select-row label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}
.link-parcelas {
  background: none;
  border: none;
  color: #702082;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.link-parcelas:hover {
  color: #581666;
}
.payment-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  color: #1e293b;
  background-color: #fff;
  outline: none;
  font-family: inherit;
  font-weight: 600;
}
.payment-select:focus {
  border-color: #702082;
  box-shadow: 0 0 0 2px rgba(112, 32, 130, 0.15);
}
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  font-size: 13px;
}
.payment-summary-label {
  color: #64748b;
  font-weight: 500;
}
.payment-summary-value {
  font-weight: 800;
  color: #0f172a;
}

/* Modal de Parcelas */
.admin.is-modal-parcelas {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  max-width: 440px;
  width: 90%;
  box-sizing: border-box;
  opacity: 1 !important;
  pointer-events: auto !important;
  display: block;
}
.admin.is-modal-parcelas[hidden] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.admin.is-modal-parcelas .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 18px;
  cursor: pointer;
  color: #64748b;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.admin.is-modal-parcelas .close-modal:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.modal-parcelas-table-wrap {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin: 10px 0;
}
.modal-parcelas-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.modal-parcelas-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-parcelas-list li:last-child {
  border-bottom: none;
}
.modal-parcelas-list li:hover {
  background: #fbf5fc;
}
.modal-parcelas-list li.is-selected {
  background: #f3e8f7;
  font-weight: 700;
  color: #702082;
}
.modal-parcelas-list .item-taxa {
  color: #64748b;
}
.modal-parcelas-list .item-valor {
  font-weight: 700;
  color: #0f172a;
}
