/* ================================================================
   custom.css — Override finali VivaCloud
   Questo file viene caricato per ultimo: qualsiasi regola qui
   sovrascrive theme, animations e Bootstrap senza toccarli.
   Non verrà sovrascritto dagli aggiornamenti del template.
   ================================================================ */

.hidden,
.w-hidden {
  display: none;
}

/* Sangfor / product notes dark mode */
.vc-dark .vc-product-notes {
  background: #101a2e;
  border-color: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

.vc-dark .vc-product-notes-head {
  background: #111d34;
  border-bottom-color: rgba(148, 163, 184, 0.22);
}

.vc-dark .vc-product-notes-icon {
  background: rgba(96, 165, 250, 0.14);
  color: #60a5fa;
}

.vc-dark .vc-product-notes-kicker {
  color: #94a3b8;
}

.vc-dark .vc-product-notes h3 {
  color: #f8fafc;
}

.vc-dark .vc-product-notes p {
  color: #cbd5e1;
}

.vc-dark .vc-product-notes textarea.form-control {
  background: #0b1426;
  border-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  box-shadow: none;
}

.vc-dark .vc-product-notes textarea.form-control::placeholder {
  color: #7f8ea3;
}

.vc-dark .vc-product-notes textarea.form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.vc-dark .vc-product-notes .btn-primary {
  background: linear-gradient(135deg, #2b6fc4 0%, #e63a77 100%);
  border-color: transparent;
  color: #ffffff;
}

/* ================================================================
   Invoice payment - PayPal / card checkout polish
   ================================================================ */

.vc-invoice-payment {
  width: min(1280px, calc(100vw - 64px));
  margin: 26px auto 0;
  padding-bottom: 36px;
  color: #0f1b33;
}

.vc-invoice-payment-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: 28px;
  align-items: start;
  margin: 0 !important;
}

.vc-invoice-payment-grid > .vc-payment-panel,
.vc-invoice-payment-grid > .vc-invoice-summary-panel {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}

.vc-payment-panel,
.vc-invoice-summary-panel .invoice-summary {
  border: 1px solid #dfe8f6;
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, rgba(43, 111, 196, .08), transparent 28%),
    #fff;
  box-shadow: 0 22px 60px rgba(15, 34, 72, .10);
}

.vc-payment-panel {
  padding: 0 !important;
  overflow: hidden;
}

.vc-payment-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  margin: 0;
  padding: 24px 30px;
  border-bottom: 1px solid #e8eef8;
}

.vc-payment-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2b7de9, #1454b8);
  box-shadow: 0 12px 28px rgba(43, 111, 196, .28);
  flex: 0 0 auto;
}

.vc-payment-panel-head h1 {
  margin: 0;
  color: #0d1930;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 850;
}

.vc-payment-panel-head p {
  margin: 5px 0 0;
  color: #667899;
  font-size: 14px;
  font-weight: 600;
}

.vc-invoice-payment .form-group {
  margin: 0 0 20px;
}

.vc-payment-panel > .alert,
.vc-payment-panel > #paymentGatewayInput,
.vc-payment-panel > #btnSubmitContainer {
  margin-right: 30px;
  margin-left: 30px;
}

.vc-payment-panel > #paymentGatewayInput {
  margin-top: 24px;
}

.vc-payment-panel > #btnSubmitContainer {
  margin-bottom: 30px;
}

.vc-invoice-payment.form-horizontal .form-group {
  margin-right: 0;
  margin-left: 0;
}

.vc-invoice-payment .control-label,
.vc-invoice-payment label {
  color: #263552;
  font-size: 13px;
  font-weight: 800;
}

.vc-invoice-payment .control-label {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 8px;
  padding: 0 !important;
  float: none !important;
  text-align: left !important;
}

.vc-invoice-payment .col-sm-4,
.vc-invoice-payment .col-sm-6,
.vc-invoice-payment .col-sm-7,
.vc-invoice-payment .col-sm-8,
.vc-invoice-payment .col-xs-2 {
  width: 100% !important;
  max-width: none !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  float: none !important;
}

.vc-invoice-payment .form-control,
.vc-invoice-payment select,
.vc-invoice-payment input[type="text"],
.vc-invoice-payment input[type="tel"],
.vc-invoice-payment input[type="number"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dbe5f3;
  border-radius: 14px;
  background: #fff;
  color: #12213d;
  box-shadow: none;
  font-size: 14px;
  font-weight: 650;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.vc-invoice-payment .form-control:focus,
.vc-invoice-payment select:focus,
.vc-invoice-payment input:focus {
  border-color: #2b6fc4;
  box-shadow: 0 0 0 4px rgba(43, 111, 196, .12);
  outline: 0;
}

.vc-invoice-payment .field-error-msg {
  margin-top: 7px;
  color: #d83c55;
  font-size: 12px;
  font-weight: 700;
}

.vc-invoice-payment .gateway-errors:empty,
.vc-invoice-payment .gateway-errors.w-hidden,
.vc-invoice-payment .gateway-errors.hidden {
  display: none !important;
}

.vc-invoice-payment .paymethod-info,
.vc-invoice-payment .payment-instructions,
.vc-invoice-payment #paypal_ppcpv_input_container,
.vc-invoice-payment .gateway-errors {
  border-radius: 18px;
}

.vc-invoice-payment .paymethod-info {
  display: block;
  padding: 14px 16px;
  border: 1px solid #dbe5f3;
  background: #f8fbff;
}

.vc-invoice-payment .paymethod-info label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}

.vc-invoice-payment .payment-instructions {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  background: #f3f8ff;
  color: #526781;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
}

.vc-invoice-payment #paypal_ppcpv_input_container {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #dbe5f3;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(247, 250, 255, .96)),
    radial-gradient(circle at 95% 0%, rgba(43, 111, 196, .10), transparent 36%);
}

.vc-invoice-payment #paypal_ppcpv_input_container_button {
  max-width: 520px;
  min-height: 54px;
  margin: 16px auto 0;
}

.vc-invoice-payment #paypal_ppcpv_input_container_payer .payer-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e1e9f5;
}

.vc-invoice-payment #btnSubmitContainer {
  margin-top: 24px;
}

.vc-invoice-payment.vc-paypal-awaiting #btnSubmitContainer {
  display: none !important;
}

.vc-invoice-payment.vc-paypal-ready #btnSubmitContainer {
  display: block !important;
}

.vc-invoice-payment.vc-paypal-ready #btnSubmit {
  background: linear-gradient(135deg, #1fb86a, #15824e);
  box-shadow: 0 18px 34px rgba(22, 163, 74, .24);
}

.vc-invoice-payment #btnSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 56px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, #2877de, #1355b7);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 18px 34px rgba(43, 111, 196, .28);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.vc-invoice-payment #btnSubmit:hover,
.vc-invoice-payment #btnSubmit:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(43, 111, 196, .34);
}

.vc-invoice-payment #btnSubmit:disabled {
  opacity: .74;
  transform: none;
}

.vc-invoice-payment #btnSubmit .pay-text,
.vc-invoice-payment #btnSubmit .click-text {
  line-height: 1.1;
  pointer-events: none;
}

.vc-invoice-summary-panel {
  position: sticky;
  top: 92px;
}

.vc-invoice-summary-panel .invoice-summary {
  overflow: hidden;
}

.vc-invoice-summary-panel .invoice-summary h2 {
  margin: 0;
  padding: 28px 26px;
  color: #fff;
  background:
    linear-gradient(135deg, #102449 0%, #1f6ed4 72%, #6a5ed0 100%);
  font-size: 26px;
  line-height: 1.16;
  font-weight: 850;
}

.vc-invoice-summary-panel .invoice-summary-table {
  padding: 0;
}

.vc-invoice-summary-panel .invoice-summary table {
  margin: 0;
  color: #23314d;
  border-collapse: collapse;
}

.vc-invoice-summary-panel .invoice-summary table td {
  padding: 16px 20px;
  border-color: #e8eef7;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.48;
}

.vc-invoice-summary-panel .invoice-summary table tr:first-child td {
  color: #64748b;
  background: #f8fbff;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.vc-invoice-summary-panel .invoice-summary table td:last-child {
  color: #116bdc;
  font-weight: 850;
  white-space: nowrap;
}

.vc-invoice-summary-panel .invoice-summary table tr:last-child td {
  background: #f2f6ff;
  color: #0f1b33;
  font-size: 15px;
  font-weight: 850;
}

.vc-invoice-summary-panel .invoice-summary p {
  margin: 0;
  padding: 18px 24px 24px;
  border-top: 1px solid #e8eef7;
  color: #6b7890;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.vc-invoice-summary-panel .invoice-summary p strong {
  color: #0f1b33;
  font-weight: 850;
}

.vc-payment-security {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0 !important;
  padding: 17px 20px !important;
  border: 1px solid #ffd795 !important;
  border-radius: 18px !important;
  background: #fff8e8 !important;
  color: #b45610 !important;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.vc-payment-security i {
  margin-top: 2px;
  color: #c86413;
}

.vc-invoice-payment .alert-danger.gateway-errors:not(.w-hidden):not(.hidden):not(:empty) {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  font-weight: 750;
}

.vc-dark .vc-invoice-payment {
  color: #e7eefc;
}

.vc-dark .vc-payment-panel,
.vc-dark .vc-invoice-summary-panel .invoice-summary {
  border-color: rgba(148, 163, 184, .22);
  background:
    radial-gradient(circle at 8% 0%, rgba(43, 111, 196, .18), transparent 30%),
    #111c31;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .25);
}

.vc-dark .vc-payment-panel-head {
  border-bottom-color: rgba(148, 163, 184, .18);
}

.vc-dark .vc-payment-panel-head h1,
.vc-dark .vc-invoice-payment .control-label,
.vc-dark .vc-invoice-payment label,
.vc-dark .vc-invoice-summary-panel .invoice-summary table,
.vc-dark .vc-invoice-summary-panel .invoice-summary p strong {
  color: #f3f7ff;
}

.vc-dark .vc-payment-panel-head p,
.vc-dark .vc-invoice-summary-panel .invoice-summary p {
  color: #a7b5cf;
}

.vc-dark .vc-invoice-payment .form-control,
.vc-dark .vc-invoice-payment select,
.vc-dark .vc-invoice-payment input[type="text"],
.vc-dark .vc-invoice-payment input[type="tel"],
.vc-dark .vc-invoice-payment input[type="number"],
.vc-dark .vc-invoice-payment .paymethod-info,
.vc-dark .vc-invoice-payment #paypal_ppcpv_input_container_payer .payer-label {
  border-color: rgba(148, 163, 184, .24);
  background: #0f1a2d;
  color: #edf4ff;
}

.vc-dark .vc-invoice-payment .payment-instructions,
.vc-dark .vc-invoice-payment #paypal_ppcpv_input_container {
  border-color: rgba(96, 165, 250, .28);
  background: rgba(15, 26, 45, .86);
  color: #b7c5dc;
}

.vc-dark .vc-invoice-summary-panel .invoice-summary table td {
  border-color: rgba(148, 163, 184, .16);
  background: #111c31 !important;
  color: #dbe7fb !important;
}

.vc-dark .vc-invoice-summary-panel .invoice-summary table tr:first-child td,
.vc-dark .vc-invoice-summary-panel .invoice-summary table tr:last-child td,
.vc-dark .vc-invoice-summary-panel .invoice-summary p {
  background: #0d1728 !important;
}

.vc-dark .vc-invoice-summary-panel .invoice-summary table tr:first-child td {
  color: #b8c7df !important;
}

.vc-dark .vc-invoice-summary-panel .invoice-summary table td:last-child {
  color: #8ec5ff !important;
}

.vc-dark .vc-invoice-summary-panel .invoice-summary table tr:last-child td {
  color: #f5f8ff !important;
  background: #15233a !important;
}

.vc-dark .vc-invoice-summary-panel .invoice-summary p {
  color: #aebbd2 !important;
}

.vc-dark .vc-payment-security {
  border-color: rgba(251, 191, 36, .34) !important;
  background: rgba(120, 53, 15, .22) !important;
  color: #facc8a !important;
}

@media (max-width: 1100px) {
  .vc-invoice-payment {
    width: min(100%, calc(100vw - 32px));
  }

  .vc-invoice-payment-grid {
    grid-template-columns: 1fr;
  }

  .vc-invoice-summary-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .vc-payment-panel-head {
    align-items: flex-start;
    min-height: auto;
    padding: 22px;
  }

  .vc-payment-panel-head h1 {
    font-size: 22px;
  }

  .vc-payment-panel > .alert,
  .vc-payment-panel > #paymentGatewayInput,
  .vc-payment-panel > #btnSubmitContainer {
    margin-right: 22px;
    margin-left: 22px;
  }

  .vc-invoice-summary-panel .invoice-summary h2 {
    padding: 24px 20px;
    font-size: 22px;
  }

  .vc-invoice-summary-panel .invoice-summary table td {
    padding: 14px;
  }
}
