/* Photos of the customer's own car for a trade-in request: guided tiles, camera or gallery. */
.tradein-photos{margin:6px 0 4px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--soft)}
.tradein-photos h4{margin:0 0 4px;font-size:1.0625rem;line-height:1.3}
.tradein-photos-hint{margin:0 0 14px;color:var(--muted);font-size:.8125rem;line-height:1.45}
.tradein-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tradein-tile{position:relative;aspect-ratio:1/1;border:1.5px dashed var(--line);border-radius:14px;overflow:hidden;background:var(--white)}
.tradein-tile.is-filled{border-style:solid}
.tradein-tile.has-error{border-color:var(--red)}
.tradein-tile-main{position:relative;width:100%;height:100%;padding:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:.8125rem;font-weight:600;line-height:1.2;text-align:center;cursor:pointer;touch-action:manipulation}
.tradein-tile-main .icon{width:28px;height:28px;color:var(--red)}
.tradein-tile-main:hover{background:rgba(227,6,19,.06)}
.tradein-tile-main:focus-visible,.tradein-tile-remove:focus-visible{outline:3px solid rgba(227,6,19,.45);outline-offset:-3px}
.tradein-tile.is-filled .tradein-tile-main{padding:0;justify-content:flex-end}
.tradein-tile-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tradein-tile.is-filled .tradein-tile-main span{position:relative;z-index:1;width:100%;padding:20px 8px 7px;background:linear-gradient(transparent,rgba(10,11,14,.8));color:#fff;text-align:left}
.tradein-tile-remove{position:absolute;z-index:2;top:0;right:0;width:44px;height:44px;border:0;background:transparent;color:#fff;font-size:1.375rem;line-height:1;cursor:pointer;touch-action:manipulation}
.tradein-tile-remove::before{content:"";position:absolute;top:7px;right:7px;width:28px;height:28px;border-radius:50%;background:rgba(10,11,14,.72);z-index:-1}
.tradein-tile-remove{display:grid;place-items:start end;padding:8px 14px 0 0}
.tradein-tile-busy{position:absolute;inset:0;z-index:3;display:grid;place-items:center;background:rgba(10,11,14,.55)}
.tradein-tile-busy::after,.tradein-tile.is-busy:not(.is-filled)::after{content:"";width:26px;height:26px;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:tradein-spin .8s linear infinite}
.tradein-tile.is-busy{pointer-events:none}
.tradein-photos-status{min-height:1.4em;margin:10px 0 0;color:var(--red);font-size:.8125rem;line-height:1.4}
/* "Photo removed. Bring it back": a calm note with a real touch target, not an error. */
.tradein-photos-status.is-note{color:var(--muted)}
.tradein-undo{min-height:44px;margin-left:2px;padding:0 10px;border:0;background:none;color:var(--ink);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;touch-action:manipulation}
.tradein-undo:focus-visible{outline:3px solid rgba(227,6,19,.45);outline-offset:-3px}
/* Service and detailing: no frame and no angle names, one quiet button; thumbnails appear beside it. */
.tradein-photos.is-free{margin:2px 0 0;padding:0;border:0;border-radius:0;background:transparent}
.tradein-photos.is-free .tradein-photos-hint{margin:8px 0 0}
.tradein-photo-grid.is-free-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.is-free .tradein-tile{flex:none;width:60px;height:60px;aspect-ratio:auto;border-radius:14px}
.is-free .tradein-tile.is-add{border-style:dashed;background:transparent}
.is-free .tradein-tile.is-add.is-wide{width:auto;height:46px;border-radius:999px}
.is-free .tradein-tile.is-add .tradein-tile-main{width:100%;padding:0;flex-direction:row;gap:8px}
.is-free .tradein-tile.is-add.is-wide .tradein-tile-main{width:auto;padding:0 18px 0 14px;font-size:.9375rem}
.is-free .tradein-tile-main .icon{width:22px;height:22px}
.is-free .tradein-tile.is-filled{border-style:solid}
.is-free .tradein-tile-remove{padding:7px 10px 0 0;font-size:.875rem;font-weight:700;line-height:1}
.is-free .tradein-tile-remove::before{top:4px;right:4px;width:20px;height:20px}
.is-free .tradein-tile.is-filled>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.is-free .tradein-tile.is-busy:not(.is-filled)::after{position:absolute;left:50%;top:50%;margin:-13px 0 0 -13px}
.is-free .tradein-tile.is-add.is-busy .tradein-tile-main{opacity:.35}
.is-free .tradein-photos-status{min-height:0;margin-top:6px}
.is-free .tradein-photos-status:empty{display:none}
@keyframes tradein-spin{to{transform:rotate(360deg)}}
@media(max-width:420px){.tradein-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.tradein-tile-busy::after,.tradein-tile.is-busy:not(.is-filled)::after{animation:none}}
