/* A mix-and-match set page (/designs/sets/{set}): group prices, the designs to tap, and the group being built. */
.dls-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: 0 0 6px; padding: 0; list-style: none; }
.dls-prices li { padding: 12px 14px; border: 1px solid #dbe7f5; border-radius: 12px; background: #f5f9fe; }
.dls-prices strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; color: #0D4F8C; }
.dls-prices span { display: block; margin-top: 2px; font-size: 13px; color: #4b5563; }
.dls-prices-note { margin: 0 0 22px; font-size: 13px; color: #6b7280; }

.dls-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.dls h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: #111827; }
.dls-hint { margin: 0 0 12px; font-size: 14px; color: #4b5563; }
.dls-find { width: 100%; max-width: 320px; height: 42px; margin: 0 0 14px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; }
.dls-find:focus { border-color: #1776C8; outline: 2px solid rgba(23, 118, 200, .25); }

.dls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin: 0; padding: 0; list-style: none; }
.dls-grid > li[hidden] { display: none; }
.dls-tile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.dls-tile-pic { display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.dls-tile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dls-tile:hover .dls-tile-pic, .dls-tile:focus-visible .dls-tile-pic { border-color: #1776C8; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.dls-tile:focus-visible { outline: 2px solid #1776C8; outline-offset: 3px; border-radius: 12px; }
.dls-tile-name { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.3; color: #111827; }
.dls-tile-add { position: absolute; top: 8px; right: 8px; padding: 4px 9px; border-radius: 999px; background: #1776C8; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; }
.dls-tile.is-added .dls-tile-add { background: #15803d; }
.dls-tile-link { display: inline-block; margin-top: 2px; font-size: 12px; color: #1776C8; }

.dls-group { padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.dls-empty { margin: 8px 0 0; font-size: 14px; color: #6b7280; }
.dls-empty[hidden], .dls-total[hidden], .dls-done[hidden] { display: none; }
.dls-rows { margin: 10px 0 0; padding: 0; list-style: none; }
.dls-row { position: relative; display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #f1f5f9; }
.dls-row:first-child { border-top: 0; }
.dls-row-pic { flex: none; width: 72px; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid #eef2f7; border-radius: 8px; background: #fff; }
.dls-row-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dls-row-main { flex: 1; min-width: 0; }
.dls-row-name { margin: 0 28px 8px 0; font-size: 14px; font-weight: 700; line-height: 1.3; color: #111827; }
.dls-row-name span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.dls-fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
/* Garment and style share a line (the garment alone takes it all); colour, size and quantity share the next. */
.dls-fields label { grid-column: span 6; }
.dls-fields label:first-child:nth-last-child(4) { grid-column: span 12; }
.dls-fields label:nth-last-child(3) { grid-column: span 5; }
.dls-fields label:nth-last-child(2) { grid-column: span 4; }
.dls-fields label:nth-last-child(1) { grid-column: span 3; }
.dls-fields label { display: block; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #6b7280; }
.dls-fields select, .dls-fields input { display: block; width: 100%; height: 40px; margin-top: 3px; padding: 0 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #111827; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dls-fields select:focus, .dls-fields input:focus { border-color: #1776C8; outline: 2px solid rgba(23, 118, 200, .25); }
.dls-row-price { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #0D4F8C; }
.dls-remove { position: absolute; top: 8px; right: 0; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f1f5f9; color: #475569; font-size: 18px; line-height: 1; cursor: pointer; }
.dls-remove:hover { background: #fee2e2; color: #b91c1c; }

.dls-total { margin-top: 12px; padding-top: 14px; border-top: 2px solid #e2e8f0; }
.dls-total-line { margin: 0; font-size: 16px; color: #111827; }
.dls-total-line strong { font-size: 22px; font-weight: 800; }
.dls-nudge { margin: 4px 0 12px; font-size: 13px; color: #4b5563; }
.dls-submit { display: block; width: 100%; padding: 14px 18px; border: 0; border-radius: 999px; background: #1776C8; color: #fff; font-size: 16px; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.dls-submit:hover, .dls-submit:focus { background: #125A9C; color: #fff; text-decoration: none; }
.dls-submit[disabled] { opacity: .7; cursor: default; }
.dls-msg { margin: 10px 0 0; font-size: 14px; color: #15803d; }
.dls-msg.is-error { color: #b91c1c; }
.dls-done { margin-top: 12px; padding: 14px; border-radius: 12px; background: #f0fdf4; }
.dls-done p { margin: 0 0 10px; font-size: 15px; color: #14532d; }
.dls-more { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 0; background: none; color: #1776C8; font-size: 14px; font-weight: 700; cursor: pointer; }

/* The set's line on a design page and its banner on a listing. */
.dls-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #dbe7f5; border-radius: 12px; background: #f5f9fe; color: #0f172a; font-size: 15px; line-height: 1.45; }
.dls-note strong { color: #0D4F8C; }
.dls-note a { flex: none; padding: 8px 16px; border-radius: 999px; background: #1776C8; color: #fff; font-weight: 700; text-decoration: none; }
.dls-note a:hover, .dls-note a:focus { background: #125A9C; color: #fff; text-decoration: none; }

@media (min-width: 600px) {
    .dls-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .dls-layout { grid-template-columns: minmax(0, 1fr) 400px; }
    .dls-group { position: sticky; top: 190px; }
    /* The people scroll inside the panel, so the total and the button stay in view. */
    .dls-rows { max-height: calc(100vh - 520px); min-height: 180px; overflow-y: auto; padding-right: 6px; }
    .dls-remove { right: 6px; }
}
@media (min-width: 1200px) {
    .dls-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .dls-tile-pic, .dls-submit { transition: none; }
}
