/* Vellonix brand overrides on top of original theme styles */

:root {
  --vellonix-navy: #0c2639;
  --vellonix-teal: #38a99c;
}

.logo__img,
.logo-footer__img {
  height: 25px;
  width: auto;
  max-width: 180px;
}

.header__buttons-container {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

html {
  scroll-behavior: smooth;
}

.menu .menu-item:empty {
  display: none;
}

.text-end {
  text-align: right;
}

/* ---- Payment how-it-works on homepage ---- */
.pay-flow {
  padding: 70px 0;
  background: var(--color-gray-100, #f8f9fb);
}

.pay-flow__title {
  text-align: center;
  margin-bottom: 12px;
}

.pay-flow__sub {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
  color: #5e6e7e;
  font-size: 16px;
  line-height: 1.6;
}

.pay-flow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.pay-flow__item {
  background: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  padding: 22px 18px;
}

.pay-flow__item span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #38a99c;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.pay-flow__item strong {
  display: block;
  color: #0c2639;
  margin-bottom: 8px;
  font-size: 16px;
}

.pay-flow__item p {
  margin: 0;
  color: #5e6e7e;
  font-size: 14px;
  line-height: 1.5;
}

.pay-flow__wallet {
  background: #0c2639;
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.pay-flow__wallet .label {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 6px;
}

.pay-flow__wallet .addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
}

.pay-flow__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .pay-flow__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .pay-flow__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Order / Terms pages ---- */
.page-order .header,
.page-legal .header {
  position: relative;
}

.header-order-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.header-order-links a:not(.btn) {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.order-hero {
  padding: 48px 0 20px;
}

.order-hero__sub {
  max-width: 720px;
  color: #5e6e7e;
  font-size: 16px;
  line-height: 1.6;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.flow-step {
  border: 1px solid #e6ecf2;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.flow-step span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #38a99c;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step strong {
  display: block;
  margin-bottom: 6px;
  color: #0c2639;
}

.flow-step p {
  margin: 0;
  color: #5e6e7e;
  font-size: 13px;
}

.order-panel {
  padding: 24px 0 48px;
}

.order-panel--gray {
  background: #f8f9fb;
}

.panel-card {
  background: #fff;
  border: 1px solid #e6ecf2;
  border-radius: 14px;
  padding: 28px;
}

.panel-card--dark {
  background: #0c2639;
  color: #fff;
  border-color: #0c2639;
}

.panel-card--dark a {
  color: #7fe1d5;
}

.panel-card h2 {
  font-size: 22px;
  margin: 0 0 18px;
  color: inherit;
}

.panel-card label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: #31576e;
}

.panel-card--dark label {
  color: #c9c9c9;
}

.panel-card input,
.panel-card select,
.panel-card textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d8e4e9;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: #0c2639;
  background: #fff;
}

.check-line {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
}

.check-line input {
  width: auto !important;
  margin-top: 3px;
}

.wallet-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 14px;
  word-break: break-all;
  margin: 12px 0;
  font-size: 14px;
}

.legal-page .wallet-box {
  background: #0c2639;
  color: #fff;
  border: none;
}

.wallet-meta {
  margin: 0;
  opacity: 0.8;
  font-size: 14px;
}

.wallet-rules {
  margin: 18px 0 10px;
  padding-left: 18px;
  color: #d8e4e9;
  font-size: 14px;
  line-height: 1.55;
}

.tiny {
  font-size: 13px;
  color: #5e6e7e;
}

.panel-card--dark .tiny {
  color: #c9c9c9;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.summary-grid span {
  display: block;
  font-size: 12px;
  color: #5e6e7e;
  margin-bottom: 4px;
}

.summary-grid strong {
  font-size: 14px;
  color: #0c2639;
  word-break: break-word;
}

.amount {
  color: #198f81 !important;
  font-size: 18px !important;
}

.status--awaiting_payment { color: #b4690e !important; }
.status--payment_submitted { color: #0749d9 !important; }
.status--in_progress { color: #198f81 !important; }
.status--delivered { color: #153d53 !important; }
.status--cancelled { color: #cf2e2e !important; }

.linkish {
  border: 0;
  background: none;
  color: #38a99c;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.pay-box {
  background: #f8f9fb;
  border-radius: 10px;
  padding: 16px;
}

.pay-box .wallet-box {
  background: #0c2639;
  color: #fff;
  border: none;
}

.pay-actions {
  margin-top: 16px;
}

.track-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin: 16px 0;
}

.track-result {
  border-top: 1px solid #e6ecf2;
  padding-top: 16px;
}

.error {
  color: #cf2e2e;
}

.field-hint {
  margin: -4px 0 10px;
  color: #b4690e;
  font-size: 13px;
  line-height: 1.4;
}

.input-invalid {
  border-color: #cf2e2e !important;
  box-shadow: 0 0 0 3px rgba(207, 46, 46, 0.12);
}

.inline-notice {
  margin-top: 8px;
  border-radius: 12px;
  padding: 18px 18px 16px;
}

.inline-notice--success {
  background: #f0fdf9;
  border: 1px solid #abe1db;
}

.inline-notice--pending {
  background: #f5f9fc;
  border: 1px solid #d4e2ff;
}

.inline-notice--pending .inline-notice__title::before {
  background: #2181ff;
  animation: vellonix-pulse 1s ease-in-out infinite;
}

.inline-notice--error {
  background: #fff5f5;
  border: 1px solid #f5c2c2;
}

.inline-notice--error .inline-notice__title {
  color: #9b1c1c;
}

.inline-notice--error .inline-notice__title::before {
  background: #cf2e2e;
}

@keyframes vellonix-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

#submit-txid:disabled {
  opacity: 0.65;
  cursor: wait;
}

.inline-notice__title {
  font-size: 16px;
  font-weight: 700;
  color: #153d53;
  margin-bottom: 6px;
}

.inline-notice__title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38a99c;
  margin-right: 8px;
  vertical-align: middle;
}

.inline-notice__text {
  margin: 0 0 12px;
  color: #31576e;
  font-size: 14px;
  line-height: 1.55;
}

.inline-notice__meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #5e6e7e;
  word-break: break-all;
  margin-bottom: 14px;
}

.footer-simple {
  padding: 28px 0;
  background: #0c2639;
  color: #c9c9c9;
  text-align: center;
}

.footer-simple a {
  color: #7fe1d5;
}

.footer-wallet {
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  color: #fff;
}

.legal-page {
  padding: 48px 0 64px;
}

.legal-kicker {
  color: #5e6e7e;
  font-size: 14px;
}

.legal-kicker a {
  color: #38a99c;
}

.legal-meta {
  color: #5e6e7e;
  margin-bottom: 28px;
}

.legal-section {
  margin-bottom: 26px;
}

.legal-section h2 {
  font-size: 20px;
  color: #0c2639;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: #31576e;
  line-height: 1.65;
  font-size: 15px;
}

.legal-back {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

@media (max-width: 991px) {
  .flow-steps,
  .summary-grid,
  .track-form {
    grid-template-columns: 1fr;
  }
}
