/* Phone finder (/phones/), on top of tools9.css and banks11.css, whose list, filters, compare grid and tray it shares.
   Rename this file (phones4.css) whenever it changes: Cloudflare keeps static files. */
.phone-card { display: grid; grid-template-columns: 1fr; gap: 12px; }
.phone-card:has(.phone-img) { grid-template-columns: 72px 1fr; }
.phone-img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--wash); }
.phone-price { margin: 6px 0 0; font-size: .95rem; }
.phone-price b { font-size: 1.15rem; }
/* Availability: words first, colour only backs them up */
.phone-avail { display: inline-block; margin: 6px 0 0; padding: 2px 8px; border-radius: 6px; background: var(--wash); color: var(--soft); font-size: .8rem; font-weight: 800; }
.phone-avail.is-now { background: #e7f5ee; color: #0b5c3f; }
.phone-avail.is-out, .phone-avail.is-discontinued { background: #fdecea; color: #9b1c1c; }
.phone-avail.is-coming { background: #e8f0fb; color: #1d4f91; }
.phone-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.phone-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.phone-chips a:hover { background: var(--wash); }
/* One phone */
.phone-top { display: grid; gap: 16px; margin: 12px 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.phone-figure { margin: 0; text-align: center; }
.phone-figure img { width: 160px; height: 160px; object-fit: contain; }
.phone-figure figcaption { color: var(--soft); font-size: .75rem; }
@media (min-width: 720px) { .phone-top:has(.phone-figure) { grid-template-columns: 200px 1fr; } }
.phone-h { margin: 14px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.phone-top .phone-h:first-child { margin-top: 0; }
.phone-variants { margin-bottom: 4px; }
.phone-big { margin: 10px 0 0; }
.phone-big b { display: block; font-size: 1.7rem; line-height: 1.2; }
.phone-big span { color: var(--soft); font-size: .9rem; }
.phone-actions { flex-wrap: wrap; }
.phone-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--link); font: inherit; font-weight: 700; cursor: pointer; }
.phone-offers { display: grid; gap: 8px; margin: 8px 0 14px; padding: 0; list-style: none; }
ol.phone-offers { counter-reset: offer; }
.phone-offer { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.phone-offer p { margin: 0; }
.phone-offer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-weight: 700; }
.phone-offer-top b { font-size: 1.05rem; }
.phone-needs { margin-top: 4px !important; padding: 4px 8px; border-radius: 6px; background: #fff4d6; color: #5c3b00; font-size: .88rem; }
.phone-specs dl { margin: 0; }
.phone-specs dl > div { display: grid; grid-template-columns: minmax(8rem, 38%) 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.phone-specs dt { color: var(--soft); font-size: .88rem; font-weight: 600; }
.phone-specs dd { margin: 0; font-size: .92rem; }
.phone-sources { margin: 4px 0 12px; padding-left: 1.2em; font-size: .85rem; }
.phone-sources a { overflow-wrap: anywhere; }
.is-unknown { color: var(--soft); font-style: italic; }
.phone-note .bus-label { margin-top: 0; }
/* Side by side */
.phone-picker { margin: 10px 0 14px; }
.phone-picker fieldset:first-of-type { margin-top: 12px; }
.phone-picker fieldset + fieldset { margin-top: 10px; }
.phone-picker fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); align-items: end; gap: 8px 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.phone-picker legend { padding: 0 4px; font-weight: 800; }
.phone-picker label { display: grid; align-content: start; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--soft); }
.phone-picker select, .phone-picker label > input:not([type="checkbox"]) { min-height: 44px; padding: 0 10px; border: 1px solid #c5ccd3; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.phone-gap { display: block; color: var(--soft); font-size: .78rem; }
.phone-cost td .bank-lines { margin: 0; padding-left: 1em; }
/* The outright-or-telco form: two clearly separate ways, each box with a line of help under it */
.phone-way { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px 14px; margin: 14px 14px 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; }
.phone-way legend { padding: 0 6px; font-weight: 800; }
.phone-way label, .phone-period { display: grid; align-content: start; gap: 4px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.phone-way small, .phone-period small { font-weight: 400; color: var(--soft); font-size: .8rem; }
.phone-way select, .phone-way > label > input, .phone-period input { min-height: 44px; padding: 0 10px; border: 1px solid #c5ccd3; border-radius: 8px; background: #fff; font: inherit; color: var(--ink); }
.phone-period { max-width: 260px; margin-top: 12px; }
.phone-way .bank-money input { min-height: 40px; border: 0; outline: 0; box-shadow: none; background: transparent; padding: 0; }  /* one box, not a box in a box */
