/* V9.0.7.1–3 — presentation-only overrides; keep the existing marketplace, needs and matchmaking logic. */
#sellRows .photo-carousel85 .photo-arrow85,
#exportGrid .photo-carousel85 .photo-arrow85 {
  display:grid!important;place-items:center!important;
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  border-radius:50%!important;border:1.5px solid rgba(255,255,255,.75)!important;
  background:rgba(11,32,27,.80)!important;color:#fff!important;
  font-size:35px!important;font-weight:400;line-height:1!important;padding:0!important;
  box-shadow:0 3px 13px #0004;opacity:.96!important;z-index:9!important;
  touch-action:manipulation;transition:background .18s ease,box-shadow .18s ease,scale .18s ease!important;
}
#sellRows .photo-carousel85 .photo-arrow85.previous,#exportGrid .photo-carousel85 .photo-arrow85.previous{left:9px!important}
#sellRows .photo-carousel85 .photo-arrow85.next,#exportGrid .photo-carousel85 .photo-arrow85.next{right:9px!important}
#sellRows .photo-carousel85 .photo-arrow85:is(:hover,:focus-visible),
#exportGrid .photo-carousel85 .photo-arrow85:is(:hover,:focus-visible){background:rgba(15,61,48,.98)!important;scale:1.07;outline:2px solid #f3d28d;outline-offset:2px}
#sellRows .photo-carousel85,#exportGrid .photo-carousel85{isolation:isolate}
#sellRows .photo-carousel85 .photo-count85,#exportGrid .photo-carousel85 .photo-count85{z-index:8}
/* Exact same card density target as the desktop Marché, while retaining action buttons and filters. */
#buy #needs9Rows,#opportunities #opportunityRows{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;align-items:stretch!important;min-width:0;
}
#buy #needs9Rows>.empty-state,#opportunities #opportunityRows>.empty-state,
#opportunities #opportunityRows>.access-lock{grid-column:1/-1}
#buy #needs9Rows .n9-card{
  display:flex!important;flex-direction:column!important;gap:10px!important;align-items:stretch!important;
  margin:0!important;padding:0!important;min-width:0;overflow:hidden;
  border:1px solid #deded6;background:#fff;border-radius:14px;box-shadow:0 3px 14px #103b2d12;
}
#buy #needs9Rows .n9-illustration{
  width:100%!important;height:auto!important;min-height:112px!important;aspect-ratio:1.85/1;
  border-radius:0!important;background:linear-gradient(145deg,#e3eee8,#f2f0e8)!important;
  display:flex!important;justify-content:center;align-items:center;gap:2px;font-size:40px;color:#0f3d30;
}
#buy #needs9Rows .n9-illustration small{font-size:11px;font-weight:700}
#buy #needs9Rows .n9-card-main,#buy #needs9Rows .n9-professional{padding:0 12px;min-width:0}
#buy #needs9Rows .n9-card-main{display:grid;gap:5px;align-content:start}
#buy #needs9Rows .n9-card-main h3{font-size:15px;line-height:1.28;margin:4px 0 2px;overflow-wrap:anywhere}
#buy #needs9Rows .n9-card-main p{font-size:11px;line-height:1.45;margin:1px 0;color:#5f6f64;overflow-wrap:anywhere}
#buy #needs9Rows .n9-card-main strong{font-size:15px;color:#0f3d30;overflow-wrap:anywhere}
#buy #needs9Rows .n9-tags{display:flex;flex-wrap:wrap;gap:4px}
#buy #needs9Rows .n9-tags span{font-size:9px;line-height:1.2;padding:4px 6px}
#buy #needs9Rows .n9-professional{display:grid;gap:3px;align-content:start;border-top:1px solid #eee9df;padding-top:9px}
#buy #needs9Rows .n9-professional button{font-size:11px;overflow-wrap:anywhere}
#buy #needs9Rows .n9-professional small{font-size:10px;line-height:1.4}
#buy #needs9Rows .n9-actions{display:grid!important;grid-template-columns:1fr!important;grid-column:auto!important;gap:6px!important;margin-top:auto;padding:3px 12px 12px}
#buy #needs9Rows .n9-actions button,#buy #needs9Rows .n9-actions summary{width:100%;min-height:36px;font-size:11px;padding:8px 6px;box-sizing:border-box}
#buy #needs9Rows .n9-actions details{grid-column:1/-1}
#buy #needs9Rows .n9-management{grid-template-columns:1fr}
/* The original matching cards retain their detailed reasons, contacts, permissions and pricing. */
#opportunities #opportunityRows>.v662-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  grid-template-columns:none!important;grid-column:auto!important;grid-row:auto!important;
  gap:9px!important;padding:0 0 12px!important;margin:0!important;min-width:0;overflow:hidden;
  border:1px solid #deded6;border-radius:14px;background:white;box-shadow:0 3px 14px #103b2d12;
}
#opportunities #opportunityRows .v662-photo{width:100%!important;height:auto!important;aspect-ratio:1.65/1;max-width:none!important;min-height:0;border-radius:0!important;overflow:hidden}
#opportunities #opportunityRows .v662-photo img{width:100%;height:100%;object-fit:cover}
#opportunities #opportunityRows .v662-photo>span{font-size:9px;max-width:100%}
#opportunities #opportunityRows .v662-vehicle,
#opportunities #opportunityRows .v662-match,
#opportunities #opportunityRows .v662-criteria,
#opportunities #opportunityRows .v662-actions,
#opportunities #opportunityRows .op3-explanations{padding-left:11px!important;padding-right:11px!important;min-width:0;grid-column:auto!important;grid-row:auto!important}
#opportunities #opportunityRows .v662-vehicle{display:grid;gap:5px}
#opportunities #opportunityRows .v662-vehicle h3{font-size:14px;line-height:1.27;margin:0;overflow-wrap:anywhere}
#opportunities #opportunityRows .v662-vehicle p{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
#opportunities #opportunityRows .v662-vehicle strong{font-size:15px;color:#0f3d30}
#opportunities #opportunityRows .v662-match{border-left:0!important;border-top:1px solid #eee9df;padding-top:8px!important;display:flex!important;align-items:center;gap:9px}
#opportunities #opportunityRows .v662-score{width:46px;height:46px;min-width:46px;min-height:46px!important;border-width:4px}
#opportunities #opportunityRows .v662-score strong{font-size:12px}
#opportunities #opportunityRows .v662-match>div{min-width:0;overflow-wrap:anywhere}
#opportunities #opportunityRows .v662-criteria{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px}
#opportunities #opportunityRows .v662-criterion{font-size:9px;min-width:0;overflow-wrap:anywhere}
#opportunities #opportunityRows .v662-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px;margin-top:auto}
#opportunities #opportunityRows .v662-actions button{font-size:10px;min-height:34px;padding:7px 5px;overflow-wrap:anywhere}
#opportunities #opportunityRows .v662-actions .primary,#opportunities #opportunityRows .v662-actions .v662-propose,#opportunities #opportunityRows .v662-actions .op31-actions-more{grid-column:1/-1!important}
#opportunities #opportunityRows .op3-explanations{border-top:1px solid #e9e4da;padding-top:8px}
@media(max-width:1180px){#buy #needs9Rows,#opportunities #opportunityRows{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:800px){#buy #needs9Rows,#opportunities #opportunityRows{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}}
@media(max-width:380px){
 #buy #needs9Rows .n9-card-main,#buy #needs9Rows .n9-professional{padding-left:8px;padding-right:8px}
 #buy #needs9Rows .n9-actions{padding:3px 8px 9px}
 #buy #needs9Rows .n9-card-main h3{font-size:13px}
 #opportunities #opportunityRows .v662-vehicle h3{font-size:12px}
 #opportunities #opportunityRows .v662-criteria{grid-template-columns:1fr!important}
 #sellRows .photo-carousel85 .photo-arrow85,#exportGrid .photo-carousel85 .photo-arrow85{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;font-size:31px!important}
}
@media(prefers-reduced-motion:reduce){#sellRows .photo-carousel85 .photo-arrow85,#exportGrid .photo-carousel85 .photo-arrow85{transition:none!important}}
/* Payment success/cancel/pending overlay. Rendering requires a server-verifiable purchase. */
dialog.ca907-receipt-overlay{position:fixed;inset:0;z-index:99999;border:none;max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;padding:18px;box-sizing:border-box;background:transparent;place-items:center;overflow:auto;overscroll-behavior:contain;color:inherit}
dialog.ca907-receipt-overlay:not([open]){display:none!important}
dialog.ca907-receipt-overlay[open]{display:grid}
dialog.ca907-receipt-overlay::backdrop{background:rgba(6,27,22,.72)}
.ca907-receipt{width:min(600px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;box-sizing:border-box;background:#fffdf9;border:1px solid #e4dccb;border-radius:22px;box-shadow:0 20px 75px #0004;padding:28px;color:#153d32;font-size:14px;line-height:1.5}
.ca907-receipt header{text-align:center;display:grid;justify-items:center;gap:8px;margin-bottom:21px}
.ca907-receipt-mark{height:66px;width:66px;display:grid;place-items:center;border-radius:50%;background:#e3f1e7;color:#0b664b;font-size:36px;font-weight:800}
.ca907-receipt-mark.pending{background:#fff1d8;color:#82560c}
.ca907-receipt h2{font:650 27px/1.15 Georgia,serif;color:#143f33;margin:0}
.ca907-receipt p{margin:0;color:#667369}
.ca907-receipt-row{display:flex;align-items:start;justify-content:space-between;gap:12px;border:1px solid #e0e1d8;background:#f9f8f2;padding:13px;border-radius:12px;margin-bottom:10px}
.ca907-receipt-row span{display:block;color:#607065;font-size:12px}
.ca907-receipt h3{margin:18px 0 8px;font-size:15px}
.ca907-benefits{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.ca907-benefits li:before{content:'✓';color:#08714f;margin-right:9px;font-weight:900}
.ca907-receipt-mail{background:#e7f2e9;border-radius:11px;margin:18px 0;padding:12px;color:#234937;font-size:12px}
.ca907-receipt-actions{display:grid;gap:9px}.ca907-receipt-actions button{width:100%;min-height:46px;border-radius:11px;font-size:14px;font-weight:750;cursor:pointer}
.ca907-receipt-actions .primary{background:#0f3d30;color:#fff;border:0}
.ca907-receipt-actions .secondary{background:#fff;border:1px solid #d3d5c9;color:#0f3d30}
@media(max-width:480px){.ca907-receipt{padding:19px;border-radius:16px}.ca907-receipt h2{font-size:24px}}

/* Older need catalog fallback: same density even when the V9 catalog is temporarily unavailable. */
#buy #buyRows.need-grid-v43{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
@media(max-width:1180px){#buy #buyRows.need-grid-v43{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:800px){
 #buy #buyRows.need-grid-v43{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 #buy #buyRows.need-grid-v43>.need-card-v72{display:flex!important;flex-direction:column!important;min-width:0}
 #buy #buyRows.need-grid-v43 .need-default-visual-v7821{height:95px!important;min-height:0!important;aspect-ratio:1.6/1;border-right:0!important;background-size:contain}
 #buy #buyRows.need-grid-v43 .need-card-v72 h3{font-size:13px!important;overflow-wrap:anywhere}
 #buy #buyRows.need-grid-v43 .need-card-actions-v43{flex-direction:column!important}
 #buy #buyRows.need-grid-v43 .need-card-actions-v43 button{width:100%}
}
