/* Warranty Service: loaded on every page after css/portal.css (templates/base.html). New Warranty Service styles go at the end of this file. */

.ws-form .card h3.minor { margin-top: 18px; }
.ws-form .card h3.minor:first-of-type { margin-top: 4px; }
.ws-csz { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 12px; }
.ws-atdealer { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-bottom: 6px !important; }
.ws-atdealer .sub { display: block; }
.ws-form input[type=file] { display: block; margin: 8px 0; font-family: var(--sans); font-size: 14px; }
.ws-chosen li { padding: 3px 0; font-size: 14px; }
.ws-chosen li.bad { color: var(--bad); }
.ws-text { white-space: normal; max-width: 760px; }
.ws-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ws-files figure { margin: 0; min-width: 0; }
.ws-files img, .ws-files video { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.ws-files video { object-fit: contain; background: #1c1c1d; }
.ws-nopreview { height: 170px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; border-radius: 8px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.ws-files figcaption { font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.ws-files figcaption .sub { display: block; }
@media screen and (max-width: 720px) { .ws-csz { grid-template-columns: 1fr; } }

/* Warranty Service: the thread of responses and notes */
.ws-thread { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-note { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; }
.ws-note.staff-only { background: var(--warn-bg); border-color: var(--tan); }
.ws-note.closing { border-left: 4px solid var(--brown); }
.ws-note.system { background: var(--mutedp-bg); border-style: dashed; }
.ws-note.system .ws-text { color: var(--ink-2); font-size: 14px; }
.ws-note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.ws-note .ws-text { margin: 0; }
.ws-reply { margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.ws-addfiles { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.inline-form.ws-pick { grid-template-columns: 1fr auto; border-top: 0; margin-top: 0; padding-top: 0; max-width: 620px; }
.inline-form.ws-linkorder { grid-template-columns: 2fr 1.4fr auto; }
.ws-refresh { display: block; margin-top: 8px; }
.ws-refresh .linklike { font-size: 12.5px; text-decoration: underline; color: var(--terracotta); }
@media screen and (max-width: 860px) { .inline-form.ws-linkorder { grid-template-columns: 1fr; } }
.ws-addfiles input[type=file] { margin: 6px 10px 6px 0; font-family: var(--sans); font-size: 14px; }
.ws-files figcaption form { display: inline; margin-left: 2px; }
