/* RoVault V35 — listing action + offer modal polish */

/* Active listing actions now share one deliberate control system. */
.rv28-offer-row.best-offer:before{display:none!important}
.rv28-offer-price{position:relative;align-content:center;min-width:140px}
.v35-lowest-pill{width:max-content;display:inline-flex;align-items:center;gap:5px;margin-bottom:3px;padding:4px 7px;border:1px solid color-mix(in srgb,#54d995 38%,var(--line));border-radius:999px;background:color-mix(in srgb,#54d995 9%,transparent);color:#69e3a4;font-size:8px!important;font-weight:850;letter-spacing:.09em;text-transform:uppercase;line-height:1}
.v35-lowest-pill:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;box-shadow:0 0 10px color-mix(in srgb,currentColor 65%,transparent)}
.rv28-offer-actions{gap:7px;align-items:center}
.rv28-offer-actions button{height:40px;min-width:0;border-radius:10px!important;padding:0 13px!important;font-family:inherit;font-size:10px!important;font-weight:780!important;letter-spacing:0!important;line-height:1!important;white-space:nowrap;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.rv28-offer-actions button:hover{transform:translateY(-1px)}
.rv28-offer-actions .v34-make-offer{border:1px solid var(--line2,var(--line))!important;background:transparent!important;color:var(--text)!important}
.rv28-offer-actions .v34-make-offer:hover{background:var(--panel-2)!important;border-color:color-mix(in srgb,var(--text) 24%,var(--line))!important}
.rv28-offer-actions [data-add-cart]{border:1px solid var(--line)!important;background:var(--panel-2)!important;color:var(--text)!important}
.rv28-offer-actions [data-add-cart]:hover{background:color-mix(in srgb,var(--text) 7%,var(--panel-2))!important}
.rv28-offer-actions [data-buy-listing]{min-width:86px;border:1px solid var(--text)!important;background:var(--text)!important;color:var(--bg)!important;box-shadow:none!important}
.rv28-offer-actions [data-buy-listing]:hover{background:color-mix(in srgb,var(--text) 88%,var(--bg))!important;box-shadow:0 7px 22px rgba(0,0,0,.16)!important}

/* The hero purchase controls match the listing actions instead of looking bolted on. */
.rv28-item-buy .v34-hero-offer{border:1px solid var(--line2,var(--line));background:transparent;color:var(--text);height:43px;border-radius:10px}
.rv28-item-buy [data-buy-listing]{height:43px;border-radius:10px}
.v34-accepts-offers{margin-top:0;color:var(--muted)}

/* Offer modal: fixed amount input and clearer buyer-facing rule copy. */
.v35-offer-modal h2{font-size:27px;letter-spacing:-.025em;margin:8px 0 0}
.v35-offer-modal .v34-offer-modal-price{margin:14px 0 17px;padding:13px 14px;background:var(--panel-2);border-color:var(--line);border-radius:11px}
.v35-offer-field{display:grid!important;gap:7px!important;margin:0!important;color:var(--text)!important;font-size:10px!important;font-weight:760!important}
.v35-offer-field>span{color:var(--muted);font-size:10px;font-weight:700}
.v35-offer-input-shell{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;width:100%;height:50px;border:1px solid var(--line2,var(--line));border-radius:11px;background:var(--panel-2);padding:0 13px;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.v35-offer-input-shell:focus-within{border-color:color-mix(in srgb,var(--text) 36%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--text) 5%,transparent)}
.v35-offer-input-shell.invalid{border-color:#c95f5f;box-shadow:0 0 0 3px rgba(201,95,95,.07)}
.v35-offer-input-shell>b{font-size:16px;color:var(--muted);font-weight:750}
.v35-offer-input-shell input{width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;color:var(--text)!important;box-shadow:none!important;font:inherit!important;font-size:18px!important;font-weight:800!important;appearance:textfield}
.v35-offer-input-shell input::-webkit-outer-spin-button,.v35-offer-input-shell input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.v35-offer-modal .v34-offer-range{margin:10px 0 17px;gap:5px}
.v35-offer-modal .v34-offer-range span{font-size:11px;font-weight:720;color:var(--text)}
.v35-offer-modal .v34-offer-range small{font-size:9px;line-height:1.45;color:var(--muted)}
.v35-offer-modal .v34-offer-range.invalid span{color:#d97d7d}
.v35-send-offer{height:48px;border-radius:11px!important;font-size:12px!important}
.v35-send-offer:disabled{opacity:.38;cursor:not-allowed}
.v35-send-offer:disabled:hover{transform:none}
.v35-offer-modal>.auth-note{display:block;margin:10px auto 0;max-width:310px;text-align:center;line-height:1.45}

html[data-theme="light"] .v35-lowest-pill{background:#effbf5;border-color:#bdebd1;color:#138a50}
html[data-theme="light"] .v35-offer-input-shell{background:#fff;border-color:#d8dde3}
html[data-theme="light"] .rv28-offer-actions .v34-make-offer{background:#fff!important}
html[data-theme="light"] .rv28-offer-actions [data-add-cart]{background:#f5f7f9!important}

@media(max-width:760px){
  .rv28-offer-price{min-width:0}
  .rv28-offer-actions{display:grid!important;grid-template-columns:1fr 1fr 1.15fr!important;gap:7px!important}
  .rv28-offer-actions button{width:100%;padding:0 8px!important}
}
@media(max-width:480px){
  .rv28-offer-actions{grid-template-columns:1fr 1fr!important}
  .rv28-offer-actions [data-buy-listing]{grid-column:1/-1}
}
