@import url("https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap");

.fourange-theme {
  min-height: 100vh;
}

/* Do not flash the archived pair headline before the live CYBEX pair loads. */
.fourange-theme #steponeform:not([data-cybex-pair-ready]) #tit {
  visibility: hidden;
}

/* The host app's generic heading rules are loaded after the source sheet. */
.fourange-theme h1,
.fourange-theme h2,
.fourange-theme h3,
.fourange-theme h4,
.fourange-theme h5,
.fourange-theme h6 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: normal;
  font-weight: 400;
  text-transform: none;
}

.fourange-theme h1 {
  font-weight: 400;
}

/* Tailwind resets native margins that the original 4ange stylesheet retains. */
:where(.fourange-theme) h1 { margin-block: 0.67em; }
:where(.fourange-theme) h2 { margin-block: 0.83em; }
:where(.fourange-theme) h3 { margin-block: 1em; }
:where(.fourange-theme) h4 { margin-block: 1.33em; }
:where(.fourange-theme) h5 { margin-block: 1.67em; }
:where(.fourange-theme) h6 { margin-block: 2.33em; }
:where(.fourange-theme) p,
:where(.fourange-theme) ul,
:where(.fourange-theme) ol { margin-block: 1em; }

.fourange-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  overflow: auto;
  padding: 3rem 1rem;
  background: rgb(0 0 0 / 72%);
}

.fourange-modal-backdrop .fourange-modal {
  position: relative;
  display: block;
  width: min(720px, 100%);
  margin: 0 auto;
}

.fourange-modal-backdrop .fourange-modal .modal-body {
  max-height: min(70vh, 720px);
  overflow-y: auto;
}

.fourange-modal-backdrop .currency-content__list {
  padding: 0 1rem;
}

.fourange-modal-backdrop .currency-content__item {
  cursor: pointer;
}

.fourange-modal-backdrop .currency-content__item.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.fourange-mobile-menu {
  position: fixed;
  inset: 120px 0 auto;
  z-index: 100;
  display: block;
  padding: 1.5rem;
  border-bottom: 1px solid #46536b;
  background: #0a0a0c;
}

.fourange-mobile-menu a {
  display: block;
  padding: 0.6rem 0;
}

.fourange-error {
  margin: 1rem 0;
  color: #ff3131;
}

.fourange-loading {
  color: #bce34a;
}

.fourange-auth-message {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid #e36a6a;
  border-radius: 10px;
  color: #ffd8d8;
}

.fourange-auth-message.is-success {
  border-color: #bce34a;
  color: #bce34a;
}

@media (max-width: 991px) {
  .fourange-theme .headerWrp { position: relative; }
  .fourange-theme .mainMenuWrp.fourange-menu-open {
    display: block !important;
    position: absolute;
    z-index: 1005;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #46536b;
    background: #0a0a0c;
  }
  .fourange-theme .mainMenuWrp.fourange-menu-open .mainMenu {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
}

.fourange-order-page {
  min-height: calc(100vh - 600px);
  padding: 0;
}

.fourange-order-page .mainSection { min-height: 650px; }
.fourange-order-page .rightSideContentWrp { min-height: 550px; }
.fourange-order-page .headerSeparatorWrp.var2 { margin-bottom: 24px; }
.fourange-order-page .rightSideContentWrpBottom { margin-top: 32px; flex-wrap: wrap; }
.fourange-order-page .leftSideText { display: flex; align-items: center; gap: 12px; }
.fourange-order-summary { margin-top: 28px; }
.fourange-order-summary .smallText { color: #a3abc4; margin-bottom: 6px; }
.fourange-order-summary h3 { margin: 0 0 20px; }
.fourange-order-amount { margin: 8px 0 0 35px; font-size: 20px; font-weight: 400; }
.fourange-order-network { margin: 8px 0 0; color: #8795b0; }
.fourange-order-mini-status { margin-top: 16px; color: #a3abc4; font-size: 14px; }
.fourange-order-details { margin-top: 34px; }
.fourange-order-field { margin: 18px 0; }
.fourange-order-field > .smallText { margin-bottom: 8px; color: #8795b0; }
.fourange-order-field .copyWrp { align-items: center; gap: 14px; }
.fourange-order-field .copyWrp > span { overflow-wrap: anywhere; }
.fourange-order-field .copyWrp .copy { background: transparent; font: inherit; cursor: pointer; }
.fourange-order-page .mainExRight { min-height: 180px; height: calc(100% - 27px); }
.fourange-order-page .fourange-order-payment { margin-top: 30px; }
.fourange-order-page .fourange-order-payment h3 { margin-bottom: 10px; }
.fourange-order-page .fourange-order-payment > .btn { margin-top: 12px; }
.fourange-order-page .fourange-order-pay-grid { margin: 20px 0; }

.fourange-order-back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 16px;
}

.fourange-order-page h1 {
  margin: 0 0 34px;
}

.fourange-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(275px, 1fr);
  gap: 30px;
  align-items: start;
}

.fourange-order-card,
.fourange-order-side > .faetBlock {
  background: #101012;
  border-color: #46536b;
  padding: 30px;
}

.fourange-order-status {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #46536b;
  color: #bce34a;
  font-size: 20px;
  font-weight: 600;
}

.fourange-order-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bce34a;
  box-shadow: 0 0 12px #bce34a88;
}

.fourange-order-indicator.is-failed { background: #e36a6a; box-shadow: none; }
.fourange-order-indicator.is-success { background: #bce34a; }

.fourange-order-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 28px 0;
}

.fourange-order-pair .exchFormSideInputWrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fourange-order-pair img { width: 44px; height: 44px; object-fit: contain; }
.fourange-order-pair .exchFormSideInputWrap > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fourange-order-pair small { color: #9fa9bb; font-size: 12px; }
.fourange-order-pair strong { font-size: 21px; white-space: nowrap; }
.fourange-order-pair span { color: #9fa9bb; }
.fourange-order-pair .exchHeaderRotate { color: #bce34a; font-size: 30px; text-align: center; }

.fourange-order-facts { border-top: 1px solid #46536b; }
.fourange-order-facts > div,
.fourange-order-pay-details > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #303844; }
.fourange-order-facts span,
.fourange-order-pay-details span { color: #9fa9bb; flex: 0 0 auto; }
.fourange-order-facts strong,
.fourange-order-pay-details strong { text-align: right; overflow-wrap: anywhere; font-weight: 500; }
.fourange-order-copy { border: 0; background: none; color: #bce34a; cursor: pointer; font-size: 18px; }
.fourange-order-action { margin-top: 25px; }
.fourange-order-action p { margin-bottom: 18px; }
.fourange-order-payment { margin-top: 30px; padding-top: 25px; border-top: 1px solid #46536b; }
.fourange-order-payment h2 { font-size: 27px; margin-bottom: 12px; }
.fourange-order-pay-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: center; margin: 25px 0; }
.fourange-order-qr { width: 180px; height: 180px; padding: 11px; background: #fff; border-radius: 10px; }
.fourange-order-pay-details { min-width: 0; }
.fourange-order-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fourange-order-side h3 { margin: 0 0 20px; }
.fourange-order-side p { color: #b4bdcb; }
.fourange-order-timer { color: #bce34a; font-size: 40px; font-weight: 600; margin: 15px 0; }
.fourange-order-copied, .fourange-order-complete { color: #bce34a !important; }
.fourange-order-hash { overflow-wrap: anywhere; margin-top: 20px; }

.fourange-account-page { min-height: calc(100vh - 600px); padding: 60px 0 100px; }
.fourange-account-page h1 { margin-bottom: 35px; }
.fourange-account-page .acc_content { margin-top: 35px; }
.fourange-account-page .order__list { margin-bottom: 25px; }
.fourange-account-page .order__item { align-items: center; }
.fourange-account-page .order__item small { color: #a3abc4; }
.fourange-account-login { max-width: 600px; }
.fourange-account-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.fourange-account-fields label { display: block; margin-bottom: 8px; }
.fourange-account-settings > .faetBlock { margin-top: 35px; }
.fourange-account-referral { overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .fourange-order-page { padding: 0; }
  .fourange-order-page .leftSideSectionWrp { padding-bottom: 24px; }
  .fourange-order-page .rightSideSectionWrp { padding-top: 0; }
  .fourange-order-page .rightSideContentWrp { padding: 22px; }
  .fourange-order-page .exchHeaderLineRight { flex-wrap: wrap; justify-content: flex-end; }
  .fourange-order-page .exchHeaderLineItem span { display: none; }
  .fourange-order-page .fourange-order-amount { font-size: 17px; }
  .fourange-order-grid { grid-template-columns: 1fr; }
  .fourange-order-card, .fourange-order-side > .faetBlock { padding: 20px; }
  .fourange-order-pair { grid-template-columns: 1fr; gap: 10px; }
  .fourange-order-pair .exchHeaderRotate { transform: rotate(90deg); }
  .fourange-order-pay-grid { grid-template-columns: 1fr; }
  .fourange-order-facts > div, .fourange-order-pay-details > div { display: block; }
  .fourange-order-facts strong, .fourange-order-pay-details strong { display: block; text-align: left; margin-top: 5px; }
  .fourange-account-fields { grid-template-columns: 1fr; }
}

.fourange-content-page {
  min-height: 560px;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.fourange-document-page,
.fourange-snapshot-content {
  margin-top: 3rem;
}

.fourange-home-snapshot {
  margin-top: 0;
}

.fourange-document-content {
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
}

/* The source 4ange chat keeps its own full-height dark panel. The transport
   and message lifecycle still come from the Primex support widget. */
.fourange-chat-panel {
  right: 20px !important;
  bottom: 20px !important;
  z-index: 1065 !important;
  width: min(420px, calc(100vw - 40px)) !important;
  max-width: none !important;
  height: min(640px, calc(100dvh - 30px)) !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #222 !important;
  color: #fff !important;
  box-shadow: 0 0 11px #33333380 !important;
  backdrop-filter: none !important;
  font-family: "PT Sans", sans-serif !important;
  font-size: 16px;
  line-height: 1.1em;
}

.fourange-chat-header {
  height: 50px !important;
  min-height: 50px;
  flex: 0 0 50px !important;
  padding: 0 10px !important;
  border: 0 !important;
  background: linear-gradient(90deg, #7b2d82 0%, #8ca937 100%) !important;
  color: #fff !important;
}

.fourange-chat-header strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.fourange-chat-header > div {
  gap: 5px;
}

.fourange-chat-header .font-semibold {
  font-size: 18px;
  font-weight: 700;
}

.fourange-chat-volume {
  width: 26px;
  height: 26px;
  padding: 3px;
  border-radius: 5px;
  background: #fff;
  color: #8ca937;
}

.fourange-chat-close {
  width: 26px !important;
  height: 26px !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: #8ca937 !important;
}

.fourange-chat-body {
  color: #f2f2f2 !important;
}

.fourange-chat-messages {
  padding: 0 !important;
  background: #222;
  scrollbar-color: #555 #222;
}

.fourange-chat-thread {
  min-height: 100%;
  padding: 10px 0 22px;
}

.fourange-chat-date {
  margin-bottom: 0;
  color: #8e8e8e;
  font-size: 12px;
  text-align: center;
}

.fourange-chat-loader {
  display: block;
  margin: 42px auto;
  color: #bce34a;
}

.fourange-chat-welcome-row,
.fourange-chat-message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 10px 6px;
}

.fourange-chat-welcome-row {
  margin-bottom: 0;
}

.fourange-chat-message-row.is-mine {
  justify-content: flex-end;
}

.fourange-chat-bot {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.fourange-chat-welcome,
.fourange-chat-message {
  position: relative;
  max-width: 90%;
  padding: 10px;
  border-radius: 10px 10px 10px 0;
  background: #ececec;
  color: #333;
  font-size: 14px;
  line-height: 1.25;
}

.fourange-chat-welcome strong,
.fourange-chat-message strong {
  display: block;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 17.6px;
}

.fourange-chat-welcome time,
.fourange-chat-message time {
  display: block;
  height: 10px;
  margin-top: 0;
  color: #8a8a8a;
  font-size: 10px;
  line-height: 10px;
  text-align: right;
}

.fourange-chat-message-row.is-mine .fourange-chat-message {
  border-radius: 10px 10px 0 10px;
  background: linear-gradient(105deg, #8e4a85, #89ad36);
  color: #fff;
}

.fourange-chat-message-row.is-mine .fourange-chat-message time {
  color: rgb(255 255 255 / 72%);
}

.fourange-chat-quick-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 10px 0 0;
  padding: 10px;
}

.fourange-chat-quick-actions button {
  min-height: 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #7b2d82, #8ca937);
  color: #fff;
  font-size: 16px;
  line-height: 17.6px;
}

.fourange-chat-quick-actions button:hover {
  filter: brightness(1.1);
}

.fourange-chat-quick-actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fourange-chat-composer {
  min-height: 0;
  margin: 10px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #222 !important;
}

.fourange-chat-input-row {
  align-items: center;
  gap: 0;
}

.fourange-chat-attachment {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #858585;
}

.fourange-chat-attachment:hover:not(:disabled) {
  color: #fff;
}

.fourange-chat-attachment:disabled {
  opacity: 0.5;
}

.fourange-chat-file {
  display: block;
  margin-top: 4px;
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.fourange-chat-input {
  min-height: 41.6px !important;
  height: 41.6px !important;
  padding: 12px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #e8e8e8 !important;
  box-shadow: none !important;
  resize: none;
  font-size: 16px;
  line-height: 17.6px;
  font-family: inherit;
}

.fourange-chat-input::placeholder {
  color: #777 !important;
}

.fourange-chat-send {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #858585 !important;
}

.fourange-chat-send:hover:not(:disabled) {
  color: #bce34a !important;
}

.fourange-chat-error {
  margin-bottom: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #522a36;
  color: #fff;
  font-size: 13px;
}

.fourange-chat-launcher {
  right: 20px !important;
  bottom: 20px !important;
  z-index: 1064 !important;
  width: 80px !important;
  height: 80px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  isolation: isolate;
}

.fourange-chat-launcher::before,
.fourange-chat-launcher::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(90deg, #7b2d82, #8ca937);
}

.fourange-chat-launcher::before {
  inset: 10px;
}

.fourange-chat-launcher::after {
  inset: 0;
  opacity: 0.3;
  backdrop-filter: blur(1px);
}

.fourange-chat-unread {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 22px;
  height: 22px;
  padding: 0 3px;
  border-radius: 11px;
  background: #bded3d;
  color: #111;
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}

@media (max-width: 550px) {
  .fourange-chat-panel {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }
}

.fourange-reviews-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.fourange-reviews-count {
  color: #a3abc4;
}

.fourange-theme .getWrap .main-exchange-network-balance {
  min-width: 190px;
}

.fourange-theme #steponeform .mainExCont:not(.step2) {
  padding-top: 5px;
}

.fourange-theme #steponeform .mainExCont.step2 {
  padding-bottom: 4px;
}

.fourange-theme .initiative-block .initBgr,
.fourange-theme .our-partners-logos img,
.fourange-theme footer img {
  display: inline;
  vertical-align: baseline;
}

@media (max-width: 767px) {
  .fourange-theme #steponeform .mainExCont:not(.step2) { padding-top: 4px; }
  .fourange-theme #steponeform .sendWrap { min-height: 149px; }
  .fourange-theme #steponeform .mainExCont.step2 { padding-bottom: 6px; }
}

.fourange-success {
  color: #bce34a;
  margin: 12px 0;
}

.fourange-document-content a,
.fourange-snapshot-content a {
  color: #bce34a;
}

.fourange-document-content img,
.fourange-snapshot-content img {
  max-width: 100%;
}

.fourange-theme button:disabled,
.fourange-theme input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
