.sf-marketplace {
  --deal-navy: #082942;
  --deal-blue: #0e537b;
  --deal-ink: #071226;
  --deal-copy: #66778e;
  --deal-green: #82cf2e;
  min-height: 600px;
  padding: 48px 0 84px;
  background: #f5f8fa;
  color: var(--deal-ink);
  font-family: "Inter", sans-serif;
}
.sf-marketplace *, .sf-marketplace *::before, .sf-marketplace *::after { box-sizing: border-box; }
.sf-deals-container { width: min(100% - 40px, 1180px); margin: auto; }
.sf-deals-banner { padding: 48px; border-radius: 22px; background: linear-gradient(115deg, #092941, #124d70); color: #fff; box-shadow: 0 18px 35px -20px rgba(5,30,50,.65); }
.sf-deals-banner span { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 99px; background: rgba(132,211,47,.18); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sf-deals-banner span::before { width: 8px; height: 8px; border-radius: 50%; background: var(--deal-green); content: ""; }
.sf-deals-banner h1 { margin: 0 0 14px; font-size: 34px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.sf-deals-banner p { max-width: 700px; margin: 0; color: #c9d8e4; font-size: 14px; line-height: 1.7; }
.sf-deals-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin: 46px 0 32px; padding: 18px 22px; border: 1px solid #e8eef2; border-radius: 16px; background: #fff; }
.sf-category-filters { display: flex; min-width: 0; flex-wrap: wrap; gap: 9px; }
.sf-category-filters a { padding: 9px 15px; border-radius: 99px; background: #f0f4f7; color: #50627a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sf-category-filters a:hover, .sf-category-filters a.is-active { background: var(--deal-blue); color: #fff; }
.sf-deals-filters { display: flex; align-items: flex-end; gap: 12px; }
.sf-deal-filter { display: grid; gap: 6px; margin: 0; }
.sf-deal-filter > span { color: #718198; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sf-deal-filter select { width: 175px; height: 42px; padding: 0 32px 0 12px; border: 1px solid #dbe4ec; border-radius: 10px; background: #fff; color: #3f5066; font: 600 12px/1 "Inter", sans-serif; cursor: pointer; }
.sf-deal-filter select:focus { border-color: var(--deal-blue); outline: 3px solid rgba(14,83,123,.1); }
.sf-deals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
#deal-results { scroll-margin-top: 24px; transition: opacity .18s ease; }
#deal-results.is-loading { opacity: .48; pointer-events: none; }
.sf-market-deal { display: flex; min-height: 430px; overflow: hidden; flex-direction: column; border: 1px solid #e9eef2; border-radius: 20px; background: #fff; box-shadow: 0 16px 34px -25px rgba(17,47,70,.35); }
.sf-market-deal-main { flex: 1; padding: 24px 24px 20px; }
.sf-market-deal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf-market-category, .sf-market-roi { padding: 5px 9px; border-radius: 6px; background: #f3f8e9; color: #63a519; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.sf-market-roi { padding: 7px 10px; border-radius: 9px; font-size: 11px; }
.sf-market-deal h2 { margin: 16px 0 4px; overflow-wrap: anywhere; color: var(--deal-ink); font-size: 19px; font-weight: 800; line-height: 1.25; }
.sf-market-buyer { min-height: 36px; margin: 0; color: #93a0b2; font-size: 11px; line-height: 1.55; }
.sf-market-progress-head { display: flex; justify-content: space-between; gap: 12px; margin: 20px 0 7px; color: #8090a5; font-size: 10px; font-weight: 700; }
.sf-market-progress-head strong { color: #34475e; font-size: 10px; }
.sf-market-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e7edf2; }
.sf-market-progress i { display: block; height: 100%; border-radius: inherit; background: var(--deal-blue); }
.sf-market-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf1f4; }
.sf-market-metrics span, .sf-market-metrics strong { display: block; }
.sf-market-metrics span { margin-bottom: 5px; color: #9aa7b7; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.sf-market-metrics strong { color: #34475e; font-size: 13px; }
.sf-market-metrics strong.is-profit { color: #68b421; }
.sf-market-lifecycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 19px; padding-top: 17px; border-top: 1px solid #edf1f4; }
.sf-market-lifecycle span, .sf-market-lifecycle strong { display: block; }
.sf-market-lifecycle span { margin-bottom: 5px; color: #9aa7b7; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.sf-market-lifecycle strong { color: #34475e; font-size: 10px; line-height: 1.35; }
.sf-market-deal-foot { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 24px; background: #f8fafb; color: #75869b; font-size: 10px; }
.sf-market-deal-foot i { margin-right: 5px; color: #77bd29; }
.sf-invest-button { padding: 10px 18px; border: 0; border-radius: 10px; background: var(--deal-blue); color: #fff !important; font: 800 11px/1.2 "Inter", sans-serif; cursor: pointer; }
.sf-invest-button:hover { background: #073e61; }
.sf-market-deal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sf-view-details { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid #b9c9d8; border-radius: 10px; background: #fff; color: var(--deal-blue) !important; font: 800 11px/1.2 "Inter", sans-serif; text-decoration: none !important; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.sf-view-details:hover { border-color: var(--deal-blue); background: #eef5f8; transform: translateY(-1px); }
.sf-invested-badge { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #cfe5b9; border-radius: 10px; background: #eff8e7; color: #599d1b; font: 800 10px/1.2 "Inter", sans-serif; }
.sf-invested-badge i { margin: 0; color: #68b421; }
.sf-add-money-button { display: inline-flex; align-items: center; gap: 6px; background: #9a6800; text-decoration: none !important; }
.sf-add-money-button:hover { background: #7c5400; }
.sf-add-money-button i { margin: 0; color: #fff; }
.sf-empty-deals { grid-column: 1 / -1; padding: 70px 25px; border: 1px solid #e7edf1; border-radius: 20px; background: #fff; text-align: center; }
.sf-empty-deals i { margin-bottom: 16px; color: var(--deal-green); font-size: 34px; }
.sf-empty-deals h2 { font-size: 22px; font-weight: 800; }
.sf-empty-deals p { margin: 8px 0 0; color: var(--deal-copy); font-size: 13px; }
.sf-deal-pagination { display: flex; justify-content: center; margin-top: 38px; }
.sf-deal-pagination nav { max-width: 100%; }
.sf-deal-pagination .pagination { margin: 0; }
.sf-deal-pagination .page-link { border-color: #dfe7ed; color: var(--deal-blue); }
.sf-deal-pagination .active .page-link { border-color: var(--deal-blue); background: var(--deal-blue); }

body.sf-modal-open { overflow: hidden; }
.sf-invest-modal { --deal-navy:#082942;--deal-blue:#0e537b;--deal-ink:#071226;--deal-copy:#66778e;--deal-green:#82cf2e;position: fixed; z-index: 12000; inset: 0; display: grid; padding: 24px; place-items: center; }
.sf-invest-modal,.sf-invest-modal *{box-sizing:border-box}
.sf-invest-modal[hidden] { display: none; }
.sf-invest-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7, 26, 44, .62); cursor: default; backdrop-filter: blur(5px); }
.sf-invest-dialog { position: relative; z-index: 1; display: grid; width: min(100%, 590px); max-height: calc(100vh - 48px); grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; padding: 0; border:1px solid rgba(255,255,255,.75); border-radius: 26px; background: #fff; box-shadow: 0 35px 90px rgba(4, 24, 42, .35); color: var(--deal-ink); font-family: "Inter", sans-serif; }
.sf-invest-close { position: absolute; z-index:4; top: 20px; right: 20px; display: grid; width: 34px; height: 34px; border: 1px solid #e7edf2; place-items: center; border-radius: 10px; background: #f8fafb; color: #91a0b3; font-size: 15px; cursor: pointer; }
.sf-invest-close:hover { background: #f1f4f7; color: var(--deal-ink); }
.sf-invest-dialog-header { display:flex;align-items:center;gap:14px;padding:24px 64px 20px 28px;border-bottom:1px solid #edf1f4;background:#fff; }
.sf-invest-header-icon{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border-radius:13px;background:#edf7e4;color:#68ae1d;font-size:16px}
.sf-invest-kicker{display:block;margin-bottom:3px;color:#69aa23;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.sf-invest-dialog header h2 { margin: 0; color: var(--deal-ink); font-size: 25px; font-weight: 800; }
.sf-invest-dialog header p { margin: 4px 0 0; color: #91a0b3; font-size: 12px; }
.sf-invest-dialog header p strong { font-weight: 500; }
.sf-invest-dialog-body{min-height:0;overflow-y:auto;padding:22px 28px 20px;scrollbar-color:#bdc9d3 transparent;scrollbar-width:thin}
.sf-invest-dialog-body::-webkit-scrollbar{width:5px}.sf-invest-dialog-body::-webkit-scrollbar-track{background:transparent}.sf-invest-dialog-body::-webkit-scrollbar-thumb{border-radius:10px;background:#bdc9d3}
.sf-invest-summary { display: grid; grid-template-columns:1fr 1fr; gap:0; margin:0 0 20px; padding: 0; overflow:hidden;border: 1px solid #e5ebf0; border-radius: 17px; background: #f7f9fb; }
.sf-invest-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #29384b; font-size: 12px; line-height: 1.4; }
.sf-invest-summary > div{display:block;padding:13px 16px;border-bottom:1px solid #e8edf1}.sf-invest-summary > div:nth-child(odd){border-right:1px solid #e8edf1}.sf-invest-summary > div:nth-last-child(-n+2){border-bottom:0}.sf-invest-summary > div span,.sf-invest-summary > div strong{display:block;text-align:left}.sf-invest-summary > div span{margin-bottom:4px;color:#8492a5;font-size:9px;font-weight:700;text-transform:uppercase}.sf-invest-summary > div strong{font-size:12px}
.sf-invest-summary > div:nth-last-child(2){border-bottom:1px solid #e8edf1}
.sf-invest-summary strong { color: #142237; text-align: right; }
.sf-invest-summary strong.is-positive, .sf-invest-payment-source strong { color: #68ae1d; }
.sf-invest-payment-source { grid-column:1/-1;margin-top: 0; padding: 13px 16px!important; border-top: 0; font-weight: 800; }
.sf-invest-summary > div.sf-invest-payment-source{display:flex;align-items:center;justify-content:space-between;border-right:0}
.sf-invest-summary > div.sf-invest-payment-source span,.sf-invest-summary > div.sf-invest-payment-source strong{margin:0}
.sf-invest-payment-source i { margin-right: 4px; }
.sf-invest-amount-label { display: block; margin-bottom: 9px; color: #62738b; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.sf-invest-amount-label span { color: #728198; }
.sf-invest-amount-control{position:relative}.sf-invest-amount-control>span{position:absolute;z-index:2;top:50%;left:16px;color:#61738b;font-size:15px;font-weight:800;transform:translateY(-50%);pointer-events:none}
#sf-invest-amount { width: 100%; min-width:0; height: 53px; padding: 0 16px 0 34px; border: 1px solid #dbe4ec; border-radius: 13px; background: #fff; color: var(--deal-ink); font: 700 14px/1 "Inter", sans-serif; }
.sf-invest-estimate>div{min-width:0}
.sf-invest-estimate strong{max-width:100%;overflow-wrap:anywhere}
#sf-invest-amount:focus { border-color: #70b725; outline: 3px solid rgba(130,207,46,.14); }
.sf-invest-limit { display: block; margin-top: 7px; color: #91a0b3; font-size: 10px; }
.sf-invest-amount-error { display: block; margin-top: 7px; color: #c93645; font-size: 10px; font-weight: 700; }
.sf-invest-amount-error[hidden] { display: none; }
.sf-invest-estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sf-invest-estimate > div { padding: 12px 16px; border: 1px solid #e8eef3; border-radius: 13px; background: #f7f9fb; }
.sf-invest-estimate span { display: block; margin-bottom: 5px; color: #718097; font-size: 10px; font-weight: 700; }
.sf-invest-estimate strong { display: block; color: var(--deal-ink); font-size: 15px; font-weight: 800; }
.sf-invest-estimate strong.is-positive { color: #68ae1d; }
.sf-invest-terms { position: relative; display: grid; grid-template-columns: 23px 1fr; gap: 10px; align-items: start; margin: 16px 0 7px; color: #64748a; font-size: 11px; line-height: 1.55; cursor: pointer; }
.sf-invest-terms > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-invest-check { display: grid; width: 23px; height: 23px; margin-top: 1px; place-items: center; border: 2px solid #cad6df; border-radius: 7px; background: #fff; color: transparent; transition: .18s ease; }
.sf-invest-terms > input:checked + .sf-invest-check { border-color: #79c329; background: #79c329; color: #fff; }
.sf-invest-terms > input:focus-visible + .sf-invest-check { outline: 3px solid rgba(14,83,123,.18); }
.sf-invest-terms a { color: #5fa519; font-weight: 800; text-decoration: underline; }
.sf-invest-terms-error { display: block; margin-bottom: 10px; color: #c93645; font-size: 10px; font-weight: 700; }
.sf-invest-dialog-footer{display:grid;gap:10px;padding:14px 28px 22px;border-top:1px solid #edf1f4;background:#fff}.sf-invest-dialog-footer>span{color:#8a98aa;font-size:9px;font-weight:600;text-align:center}.sf-invest-dialog-footer>span i{margin-right:4px;color:#6dad25}
.sf-invest-submit { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; margin:0; border: 0; border-radius: 13px; background: var(--deal-blue); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 9px 20px rgba(14,83,123,.2); cursor: pointer; }
.sf-invest-submit:hover { background: #093f61; }
.sf-invest-submit:disabled { background: #8ca5b5; cursor: wait; }
.sf-invest-button-spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sfInvestSpin .75s linear infinite; }
.sf-invest-processing { position: fixed; z-index: 12020; inset: 0; display: grid; padding: 22px; place-items: center; background: rgba(7,26,44,.68); backdrop-filter: blur(7px); }
.sf-invest-processing[hidden] { display: none; }
.sf-invest-processing-card { width: min(100%, 370px); padding: 34px 30px 30px; border: 1px solid rgba(134,211,50,.28); border-top:4px solid var(--deal-green);border-radius: 22px; background: #fff; box-shadow: 0 28px 75px rgba(4,24,42,.4); text-align: center; }
.sf-invest-processing-card strong, .sf-invest-processing-card > span:last-child { display: block; }
.sf-invest-processing-card strong { color: var(--deal-ink); font-size: 18px; font-weight: 800; }
.sf-invest-processing-card > span:last-child { margin-top: 8px; color: #718097; font-size: 12px; line-height: 1.55; }
.sf-invest-spinner { position:relative;display:grid; width: 58px; height: 58px; margin: 0 auto 19px; place-items:center;border-radius: 50%;background:#edf7e4;color:#62a91b;font-size:17px}
.sf-invest-spinner::before{position:absolute;inset:-5px;border:3px solid #e4f1d7;border-top-color:var(--deal-green);border-radius:50%;content:"";animation:sfInvestSpin .8s linear infinite}
.sf-invest-processing-line{display:block!important;height:5px;margin-top:22px;overflow:hidden;border-radius:10px;background:#e8edf1}.sf-invest-processing-line i{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6caf22,#8bd23a);animation:sfInvestProgress 1.25s ease-in-out infinite}
.sf-invest-confirm{position:fixed;z-index:12030;inset:0;display:grid;padding:22px;place-items:center;background:rgba(7,26,44,.72);backdrop-filter:blur(8px)}.sf-invest-confirm[hidden]{display:none}.sf-invest-confirm-card{width:min(100%,430px);padding:32px;border:1px solid rgba(130,207,46,.25);border-top:4px solid var(--deal-green);border-radius:24px;background:#fff;box-shadow:0 32px 90px rgba(4,24,42,.45);text-align:center}.sf-invest-confirm-icon{display:grid;width:62px;height:62px;margin:0 auto 16px;place-items:center;border-radius:18px;background:linear-gradient(145deg,#edf8e4,#dff0d0);color:#61a91e;font-size:22px}.sf-invest-confirm-kicker{display:block;margin-bottom:7px;color:#63a91f;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.sf-invest-confirm-card h3{margin:0;color:#071226;font-size:23px;font-weight:800}.sf-invest-confirm-card>p{margin:11px auto 0;color:#687a91;font-size:13px;line-height:1.65}.sf-invest-confirm-card>p strong{color:#10233c}.sf-invest-confirm-note{display:flex;align-items:center;gap:9px;margin-top:19px;padding:12px 14px;border-radius:12px;background:#f4f8fb;color:#6e8095;font-size:10px;line-height:1.45;text-align:left}.sf-invest-confirm-note i{color:#68ae1d}.sf-invest-confirm-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px;margin-top:20px}.sf-invest-confirm-actions button{min-height:46px;border-radius:12px;font:800 11px/1.2 "Inter",sans-serif;cursor:pointer}.sf-invest-confirm-cancel{border:1px solid #d6e0e8;background:#fff;color:#60738b}.sf-invest-confirm-submit{border:0;background:#0e537b;color:#fff;box-shadow:0 8px 18px rgba(14,83,123,.18)}
@keyframes sfInvestSpin { to { transform: rotate(360deg); } }
@keyframes sfInvestProgress{0%{transform:translateX(-110%)}100%{transform:translateX(340%)}}
@media (prefers-reduced-motion: reduce) {
  .sf-invest-spinner, .sf-invest-button-spinner { animation-duration: 1.6s; }
}

@media (max-width: 991px) {
  .sf-deals-toolbar { grid-template-columns: 1fr; }
  .sf-deals-filters { justify-content: flex-end; }
  .sf-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.sf-market-deal-foot{display:flex!important}
  footer.sf-invest-dialog-footer{display:grid!important}
  .back-to-top{display:none!important}
}
@media (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .sf-marketplace { padding: 28px 0 60px; }
  .sf-marketplace,
  .sf-deals-container,
  .sf-deals-banner,
  .sf-deals-toolbar,
  #deal-results,
  .sf-deals-grid,
  .sf-market-deal,
  .sf-market-deal-main,
  .sf-market-deal-foot { min-width: 0; max-width: 100%; }
  .sf-deals-container { width: calc(100% - 28px); }
  .sf-deals-banner { padding: 32px 24px; border-radius: 17px; }
  .sf-deals-banner h1 { font-size: 28px; }
  .sf-deals-banner h1,
  .sf-deals-banner p,
  .sf-market-deal h2,
  .sf-market-buyer { max-width: 100%; overflow-wrap: anywhere; }
  .sf-deals-toolbar { margin: 28px 0 24px; padding: 16px; }
  .sf-category-filters,
  .sf-deals-filters { width: 100%; min-width: 0; align-items: stretch; flex-direction: column; }
  .sf-deal-filter, .sf-deal-filter select { width: 100%; min-width: 0; }
  .sf-deals-grid { grid-template-columns: 1fr; }
  .sf-market-deal-main { padding: 21px 18px 18px; }
  .sf-market-deal-top { min-width: 0; align-items: flex-start; }
  .sf-market-category { min-width: 0; max-width: calc(100% - 76px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sf-market-roi { flex: 0 0 auto; }
  .sf-market-progress-head > * { min-width: 0; }
  .sf-market-progress-head strong { max-width: 58%; text-align: right; overflow-wrap: anywhere; }
  .sf-market-metrics,
  .sf-market-lifecycle { min-width: 0; gap: 15px; }
  .sf-market-metrics > div,
  .sf-market-lifecycle > div { min-width: 0; }
  .sf-market-metrics strong,
  .sf-market-lifecycle strong { overflow-wrap: anywhere; }
  body>.sf-invest-modal { position:fixed!important;inset:0 auto auto 0!important;display:block;width:var(--mobile-viewport-width,100%)!important;max-width:var(--mobile-viewport-width,100%)!important;height:100vh;margin:0;padding:0;overflow-x:hidden;overflow-y:auto!important;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;transform:none!important; }
  body>.sf-invest-modal>.sf-invest-backdrop{position:fixed;inset:0 auto auto 0;width:var(--mobile-viewport-width,100%);max-width:var(--mobile-viewport-width,100%);height:100vh}
  body>.sf-invest-modal>.sf-invest-dialog { position:relative!important;inset:auto!important;display:flex;width:100%;min-width:0;max-width:100%;min-height:100%;height:auto;max-height:none;margin:0;overflow:visible;flex-direction:column;border:0;border-radius:0;transform:none!important; }
  .sf-invest-close { position:fixed;top:14px;right:auto;left:calc(var(--mobile-viewport-width,100vw) - 52px);width:38px;height:38px;border-color:#dfe7ee;background:#f5f8fa;box-shadow:0 5px 14px rgba(7,24,47,.08);color:#687c94; }
  .sf-invest-dialog-header{position:sticky;z-index:3;top:0;min-height:94px;flex:0 0 auto;padding:18px 62px 17px 18px;box-shadow:0 1px 0 #edf1f4}.sf-invest-header-icon{width:40px;height:40px;flex-basis:40px}
  .sf-invest-dialog-body{min-width:0;max-width:100%;overflow:visible;padding:17px 18px 20px;flex:1 0 auto}
  footer.sf-invest-dialog-footer{position:sticky;z-index:3;bottom:0;display:grid!important;min-width:0;flex:0 0 auto;padding:11px 18px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(7,24,47,.075)}
  .sf-invest-dialog header h2 { font-size: 22px; }
  .sf-invest-dialog-header>div,.sf-invest-dialog form,.sf-invest-summary,.sf-invest-summary>div,.sf-invest-estimate,.sf-invest-terms{min-width:0;max-width:100%}
  .sf-invest-summary { width:100%;margin:0 0 18px; }
  .sf-invest-estimate { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sf-invest-estimate>div{min-width:0;padding:14px}.sf-invest-estimate strong{font-size:16px;overflow-wrap:anywhere}.sf-invest-field input{width:100%;min-width:0}
  body>.sf-invest-modal .sf-invest-processing,
  body>.sf-invest-modal .sf-invest-confirm{inset:0 auto auto 0;width:var(--mobile-viewport-width,100%);max-width:var(--mobile-viewport-width,100%);height:100vh}
  footer.sf-market-deal-foot{display:grid!important;grid-template-columns:1fr;gap:10px;padding:13px 16px 16px}
  .sf-market-deal-actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .sf-market-deal-actions>.sf-view-details,.sf-market-deal-actions>.sf-invest-button,.sf-market-deal-actions>.sf-invested-badge{width:100%;min-width:0;justify-content:center;text-align:center}
  .back-to-top{display:none!important}
}

@supports (height:100dvh){
  @media (max-width:767px){
    body>.sf-invest-modal{height:100dvh}
    body>.sf-invest-modal>.sf-invest-dialog{min-height:100dvh;height:auto}
  }
}
@media (max-width:359px){
  .sf-invest-summary,.sf-invest-estimate{grid-template-columns:1fr}
}
