/* /cart: the cart optimizer (js/cart-page.js). Builds on css/page.css. */
body.cartpage main { max-width: 900px; }
.cart-form { margin: 8px 0 26px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.line { position: relative; display: grid; grid-template-columns: 1.5fr .6fr 1.1fr 1.1fr 1.1fr auto; gap: 12px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.line select, .line input {
  font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 10px; width: 100%;
}
.line select:focus, .line input:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.line select option { background: #0b0e22; }
.line .remove { width: 38px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.line .remove:hover:not([disabled]) { color: #fff; border-color: var(--line-2); }
.line .remove[disabled] { opacity: .3; cursor: default; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 14px; }
.add-line, .reset { font: inherit; cursor: pointer; border-radius: 999px; padding: 9px 16px; }
.add-line { color: #fff; border: 0; font-weight: 600; background: linear-gradient(90deg, #36e3ff, #8a6bff 55%, #ff4f8b); box-shadow: 0 0 16px rgba(138, 107, 255, .35); }
.add-line[disabled] { opacity: .4; cursor: default; }
.reset { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.results-head { font-size: 17px; margin-bottom: 14px; color: var(--body); }
.results-head strong { color: var(--good); }
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); padding: 18px 20px; margin: 0 0 18px; }
.plan--best { border-color: rgba(46, 255, 162, .45); box-shadow: 0 0 28px rgba(46, 255, 162, .1); }
.plan header { margin-bottom: 10px; }
.plan header p { margin: 0 0 4px; }
.plan-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); font-weight: 600; }
.plan--best .plan-title { color: var(--good); }
.plan-total { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--text); }
.store { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.store-head { display: flex; justify-content: space-between; align-items: baseline; }
.store ul { list-style: none; padding: 0; margin: 8px 0; }
.store li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-bottom: 8px; }
.store li .muted { grid-column: 1; font-size: 13px; }
.store li .amt { grid-row: 1; grid-column: 2; }
.amt { font-family: var(--mono); font-weight: 700; color: var(--text); }
.store-foot { font-size: 14px; color: var(--body); }
.good { color: var(--good); font-weight: 600; }
.warn { color: var(--warn); }
.nudge { margin: 6px 0 0; font-size: 13.5px; color: var(--accent-2); }
.compare { padding: 12px 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--body); }
.warn-box { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 177, 61, .4); color: var(--warn); }
/* Colour swatch dot (next to the Color label and in front of a colour variant's name). */
.sw { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -.05em; margin-right: .35em; background: var(--sw, #888); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.line label .sw { margin: 0 0 0 .2em; width: .9em; height: .9em; }
@media (max-width: 900px) {
  .line { grid-template-columns: 1.4fr .6fr 1fr 1fr; }
  .line .f-cat { grid-column: 1 / 3; }
  .line .kg { grid-column: 3 / 4; }
  .line .remove { grid-column: 4; justify-self: end; }
}
@media (max-width: 640px) {
  .line { grid-template-columns: 1fr 1fr; }
  .line .f-cat { grid-column: 1 / -1; padding-right: 48px; }
  .line .kg { grid-column: auto; }
  .line .remove { position: absolute; top: 10px; right: 0; grid-column: auto; }
  .plan-total { font-size: 25px; }
}
