/* Websites for sale: cards, explanation and the offer form */
.xt-sale-how, .xt-sale-card, .xt-sale-modal, .xt-deal-actions, .xt-deal-head, .xt-deal-list, .xt-sale-mandate, .xt-sale-steps--seller { --s-ink: var(--xr-ink, #1D2330); --s-ink2: var(--xr-ink-2, #3E4656); --s-paper: var(--xr-paper, #FFFDF8); --s-paper2: var(--xr-paper-2, #FFF6DA); --s-line: var(--xr-line, #EDE5D0); --s-line2: var(--xr-line-strong, #D9CFB5); --s-acc: var(--xr-accent, #FFC613); --s-soft: var(--xr-soft, #FFF1C2); --s-head: var(--xr-head-font, Georgia, serif); }

.xt-sale-how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 24px; align-items: center; background: var(--s-paper2); border-radius: 22px; padding: 24px; margin: 0 0 24px; color: var(--s-ink); }
.xt-sale-how h2 { font-family: var(--s-head); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 0 0 8px; color: var(--s-ink); }
.xt-sale-how p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--s-ink2); }
.xt-sale-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.xt-sale-steps li { counter-increment: s; background: #fff; border: 1px solid var(--s-line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; margin: 0; }
.xt-sale-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--s-acc); color: var(--s-ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 4px; font-size: 14px; }
.xt-sale-steps b { font-size: 15px; }
.xt-sale-steps span { color: var(--s-ink2); }

ul.products li.xt-sale-card { display: flex !important; flex-direction: column; background: #fff !important; border: 1px solid var(--s-line) !important; border-radius: 22px !important; overflow: hidden; padding: 0 !important; box-shadow: none !important; color: var(--s-ink); }
ul.products li.xt-sale-card:hover { border-color: var(--s-ink) !important; }
.xt-sale-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--s-paper2); margin: 14px 14px 0; border-radius: 14px; }
.xt-sale-shot img { width: 100%; height: 100% !important; object-fit: cover; object-position: top; filter: blur(9px) saturate(.8); transform: scale(1.12); display: block; }
.xt-sale-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(29, 35, 48, .88); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 8px 14px 8px 32px; white-space: nowrap; }
.xt-sale-lock::before { content: ""; position: absolute; left: 13px; top: 50%; width: 11px; height: 9px; margin-top: -2px; border-radius: 2px; background: var(--s-acc); }
.xt-sale-lock::after { content: ""; position: absolute; left: 14.5px; top: 50%; width: 8px; height: 7px; margin-top: -8px; border: 2px solid var(--s-acc); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.xt-sale-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.xt-sale-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--s-ink2); }
.xt-sale-refchip { background: var(--s-paper2); border-radius: 999px; padding: 4px 10px; font-weight: 700; color: var(--s-ink); letter-spacing: .02em; }
.xt-sale-market { display: inline-flex; align-items: center; gap: 6px; }
.xt-sale-market .flag { width: 18px !important; height: 13px !important; object-fit: cover; border-radius: 2px; }
.xt-sale-title { font-family: var(--s-head); font-weight: 600; font-size: 21px !important; line-height: 1.25 !important; margin: 0 !important; color: var(--s-ink) !important; }
.xt-sale-figs { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xt-sale-figs li { background: var(--s-paper); border: 1px solid var(--s-line); border-radius: 12px; padding: 8px 12px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.xt-sale-figs li:nth-child(n+3) { flex-direction: row; justify-content: space-between; align-items: baseline; }
.xt-sale-figs span { font-size: 12px; color: var(--s-ink2); }
.xt-sale-figs b { font-size: 16px; }
.xt-sale-foot { margin-top: auto; border-top: 1px solid var(--s-line); padding-top: 14px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.xt-sale-price { display: flex; flex-direction: column; line-height: 1.2; }
.xt-sale-price span, .xt-sale-price small { font-size: 12px; color: var(--s-ink2); }
.xt-sale-price b { font-family: var(--s-head); font-weight: 600; font-size: 24px; color: var(--s-ink); }
.xt-sale-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xt-sale-btn { appearance: none; border: 0; background: var(--s-acc); color: var(--s-ink); font: inherit; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 11px 18px; cursor: pointer; line-height: 1.2; }
.xt-sale-btn:hover { filter: brightness(.96); }
.xt-sale-btn--ghost { background: transparent; border: 2px solid var(--s-ink); padding: 9px 16px; font-weight: 700; }
.xt-sale-btn:focus-visible, .xt-sale-mode button:focus-visible { outline: 3px solid var(--s-ink); outline-offset: 2px; }

.xt-sale-open, .xt-sale-open body { overflow: hidden; }
.xt-sale-modal { position: fixed; inset: 0; z-index: 2147483600; background: rgba(29, 35, 48, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.xt-sale-modal[hidden] { display: none; }
.xt-sale-dialog { position: relative; background: var(--s-paper); color: var(--s-ink); border-radius: 24px; width: min(560px, 100%); padding: 26px; box-shadow: 0 24px 60px rgba(29, 35, 48, .3); max-height: calc(100vh - 32px); overflow-y: auto; }
.xt-sale-close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--s-line2); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--s-ink); }
.xt-sale-ref { margin: 0 44px 4px 0; font-size: 13px; font-weight: 700; color: var(--s-ink2); }
.xt-sale-dialog h2 { font-family: var(--s-head); font-weight: 600; font-size: 26px; margin: 0 0 14px; color: var(--s-ink); }
.xt-sale-mode { display: inline-flex; background: var(--s-paper2); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.xt-sale-mode button { border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--s-ink); }
.xt-sale-mode button[aria-selected="true"] { background: var(--s-ink); color: #fff; }
.xt-sale-form { display: grid; gap: 12px; }
.xt-sale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xt-sale-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; margin: 0; }
.xt-sale-form label[hidden], .xt-sale-form [hidden] { display: none !important; }
.xt-sale-form input:not([type=checkbox]), .xt-sale-form select, .xt-sale-form textarea { width: 100%; min-height: 46px; border: 1px solid var(--s-line2) !important; border-radius: 12px !important; background: #fff !important; padding: 10px 12px !important; font: inherit; font-weight: 400; font-size: 15px; color: var(--s-ink); box-sizing: border-box; }
.xt-sale-form textarea { min-height: 84px; resize: vertical; }
.xt-sale-form input:focus, .xt-sale-form select:focus, .xt-sale-form textarea:focus { border-color: var(--s-ink) !important; outline: 3px solid var(--s-soft); }
.xt-sale-form .xt-sale-check { grid-template-columns: 20px 1fr; align-items: start; font-weight: 400; font-size: 13px; color: var(--s-ink2); line-height: 1.45; }
.xt-sale-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--s-ink); }
.xt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.xt-sale-submit { background: var(--s-acc) !important; color: var(--s-ink) !important; border: 0 !important; border-radius: 999px !important; padding: 15px 22px !important; font: inherit; font-weight: 800 !important; font-size: 16px !important; cursor: pointer; }
.xt-sale-submit:disabled { opacity: .6; }
.xt-sale-note { font-size: 12px; color: var(--s-ink2); margin: 0; }
.xt-sale-msg { margin: 0; font-size: 15px; font-weight: 600; }
.xt-sale-msg:empty { display: none; }
.xt-sale-msg.is-ok { background: #E6F4EA; border-radius: 12px; padding: 12px 14px; color: #1E5631; }
.xt-sale-msg.is-error { color: #A12A1A; }

@media (max-width: 900px) {
	.xt-sale-how { grid-template-columns: 1fr; padding: 20px; }
	.xt-sale-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.xt-sale-steps { grid-template-columns: 1fr; }
	.xt-sale-steps li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; padding: 12px; }
	.xt-sale-steps li::before { margin: 0; }
	.xt-sale-steps li span { flex-basis: 100%; }
	.xt-sale-grid { grid-template-columns: 1fr; }
	.xt-sale-dialog { padding: 22px 18px; border-radius: 20px; }
	.xt-sale-actions { width: 100%; }
	.xt-sale-actions .xt-sale-btn { flex: 1; text-align: center; }
}
.xt-sale-open .bapf_body .select2-container, .bapf_body .select2-container { z-index: 2 !important; }

.xt-sale-btn--buy { background: var(--s-ink); color: #fff; }
.xt-sale-link { appearance: none; background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 14px; font-weight: 700; color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.xt-sale-actions { align-items: center; }
.xt-sale-buynote { margin: 0; background: var(--s-paper2); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.xt-sale-buynote b { font-size: 16px; }
.xt-sale-seller { grid-column: 1 / -1; margin: 0 !important; font-size: 14px; }
.xt-sale-seller a { font-weight: 700; color: var(--s-ink, #1D2330); }
/* My account: Sell my website */
.xt-sale-mandate { display: grid; gap: 14px; max-width: 760px; margin: 16px 0 24px; }
.xt-sale-mandate label { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
.xt-sale-mandate small { font-weight: 400; color: #5a6070; }
.xt-sale-mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xt-sale-mandate .xt-sale-switch, .xt-sale-mandate .xt-sale-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.xt-sale-mandate .xt-sale-check { font-weight: 400; font-size: 14px; line-height: 1.5; }
.xt-sale-mandate input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: #1D2330; }
.xt-sale-status { display: inline-block; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.xt-sale-status.is-live { background: #E6F4EA; color: #1E5631; }
.xt-sale-status.is-review { background: #FFF1C2; color: #1D2330; }
.xt-sale-steps--seller { --s-ink: var(--xr-ink, #1D2330); --s-ink2: var(--xr-ink-2, #3E4656); --s-line: var(--xr-line, #EDE5D0); --s-acc: var(--xr-accent, #FFC613); max-width: 980px; }
@media (max-width: 700px) { .xt-sale-mgrid { grid-template-columns: 1fr; } }

/* Website offers in My account */
.xt-sale-follow { display: inline-block; margin-top: 6px; font-weight: 700; color: inherit; }
.xt-deal-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.xt-deal-list a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--xr-line, #EDE5D0); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--xr-ink, #1D2330); }
.xt-deal-list a:hover { border-color: var(--xr-navy, #163B78); }
.xt-deal-li-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.xt-deal-li-main small { color: var(--xr-ink-2, #3E4656); }
.xt-deal-li-right { display: grid; justify-items: end; gap: 4px; }
.xt-deal-badge { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; background: #FFF1C2; color: #1D2330; white-space: nowrap; }
.xt-deal-badge.is-accepted, .xt-deal-badge.is-paid { background: #E6F4EA; color: #1E5631; }
.xt-deal-badge.is-transferred, .xt-deal-badge.is-done { background: var(--xr-navy, #163B78); color: #fff; }
.xt-deal-badge.is-declined, .xt-deal-badge.is-cancelled { background: #F1EEE6; color: #5a6070; }
.xt-deal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; background: var(--xr-paper-2, #FFF6DA); border-radius: 20px; padding: 20px; margin: 8px 0 16px; }
.xt-deal-head h2 { margin: 6px 0 4px !important; }
.xt-deal-head p { margin: 0; }
.xt-deal-head .xt-sale-refchip { display: inline-block; background: #fff; }
.xt-deal-state { display: grid; justify-items: end; gap: 4px; align-content: start; }
.xt-deal-state b { font-family: var(--xr-head-font, Georgia, serif); font-size: 28px; font-weight: 600; }
.xt-deal-state small { color: var(--xr-ink-2, #3E4656); }
.xt-deal-thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.xt-deal-msg { background: #fff; border: 1px solid var(--xr-line, #EDE5D0); border-radius: 16px; padding: 12px 16px; max-width: 88%; }
.xt-deal-msg.is-mine { justify-self: end; background: var(--xr-paper-2, #FFF6DA); border-color: transparent; }
.xt-deal-msg.is-team { justify-self: center; max-width: 100%; background: #F4F6FA; border-color: transparent; }
.xt-deal-msg p { margin: 0; }
.xt-deal-meta { font-size: 12px; color: var(--xr-ink-2, #3E4656); }
.xt-deal-amount { font-size: 15px; margin-top: 2px !important; }
.xt-deal-amount strong { font-size: 18px; }
.xt-deal-text { margin-top: 4px !important; line-height: 1.5; }
.xt-deal-actions { display: grid; gap: 12px; max-width: 760px; }
.xt-deal-form { margin: 0; }
.xt-deal-inline { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.xt-deal-inline span { display: flex; gap: 8px; flex-wrap: wrap; }
.xt-deal-inline input { flex: 1; min-width: 140px; min-height: 46px; border-radius: 12px; }
.xt-deal-write textarea { width: 100%; border-radius: 12px; }
.xt-deal-actions .xt-deal-write + .xt-sale-btn { margin-top: 8px; }
.xt-deal-paybox { background: #E6F4EA; border-radius: 14px; padding: 12px 14px; margin: 0 0 8px; color: #1E5631; }

/* Buy or sell page */
.xt-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xt-trade-card { display: flex; flex-direction: column; gap: 6px; }
.xt-trade-card .xt-btn { margin-top: auto; }
.xt-soft-bg .xt-sale-steps, .xt-sec .xt-sale-steps { --s-ink: var(--xr-ink, #1D2330); --s-ink2: var(--xr-ink-2, #3E4656); --s-line: var(--xr-line, #EDE5D0); --s-acc: var(--xr-accent, #FFC613); }
@media (max-width: 800px) { .xt-trade { grid-template-columns: 1fr; } }

/* Price check */
.xt-fair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; background: #F4F6FA; color: #1D2330; }
.xt-fair b { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.xt-fair b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.xt-fair span { color: #3E4656; }
.xt-fair.is-good { background: #E3F2EA; } .xt-fair.is-good b { color: #17603F; }
.xt-fair.is-fair { background: #F0F8F3; } .xt-fair.is-fair b { color: #2F8F5B; }
.xt-fair.is-high { background: #FBF6E6; } .xt-fair.is-high b { color: #8A6A0B; }
.xt-fair.is-steep { background: #FCEDEA; } .xt-fair.is-steep b { color: #A12A1A; }
.xt-fair.is-none b { color: #5a6070; }
.xt-sale-mandate + .xt-fair, .xt-deal-head + .xt-fair { margin: 0 0 14px; max-width: 760px; }
