/* Bluecedar Print my files */
.bc-pmf { font-family: arial, sans-serif; max-width: 640px; margin: 1em 0; }
.bc-pmf h3 { margin: 0 0 .3em; }
.bc-pmf__note { color: #555; font-size: 13px; margin: 0 0 1em; }
.bc-pmf__subhead { margin: 1.4em 0 .4em; }

.bc-pmf__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 14px; }
/* Direct children only. These are (0,1,1) and would otherwise outrank the
   (0,1,0) .bc-pmf__paper-opt / .bc-pmf__papers-filter rules further down —
   stacking each paper checkbox above its label and giving it text-input
   chrome. The paper labels are great-grandchildren, so `> label` misses them. */
.bc-pmf__fields > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: bold; color: #444; }
.bc-pmf__fields > label input, .bc-pmf__fields > label textarea {
	font: inherit; font-weight: normal; padding: 7px 9px;
	border: 1px solid #c9bcd6; border-radius: 4px;
}
.bc-pmf__fields > label input:focus, .bc-pmf__fields > label textarea:focus { outline: 0; border-color: #8b5a9c; box-shadow: 0 0 0 2px rgba(139,90,156,.3); }
.bc-pmf__field--wide { grid-column: 1 / -1; }
.bc-pmf__req { color: #b23; }
.bc-pmf__fieldnote { grid-column: 1 / -1; margin: 0; font-size: 12px; font-weight: normal; color: #888; }

.bc-pmf__drop {
	border: 2px dashed #9a8bb0;
	border-radius: 8px;
	background: #faf8fc;
	padding: 28px 16px;
	text-align: center;
	cursor: pointer;
	color: #5e4b73;
	transition: background .15s, border-color .15s;
}
.bc-pmf__drop strong { display: block; font-size: 18px; }
.bc-pmf__drop span { font-size: 13px; color: #888; }
.bc-pmf__drop.is-over { background: #efe3f7; border-color: #8b5a9c; }
.bc-pmf__drop:focus { outline: 2px solid #8b5a9c; outline-offset: 2px; }

.bc-pmf__queue, .bc-pmf__list { list-style: none; margin: 12px 0 0; padding: 0; }

.bc-pmf__qitem {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	padding: 8px 10px;
	border: 1px solid #e0d6ea;
	border-radius: 5px;
	margin-bottom: 6px;
	font-size: 14px;
}
.bc-pmf__qname { font-weight: bold; word-break: break-all; }
.bc-pmf__qstatus { color: #666; font-size: 12px; white-space: nowrap; }
.bc-pmf__bar { grid-column: 1 / -1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
.bc-pmf__bar > div { height: 100%; width: 0; background: #8b5a9c; transition: width .15s; }
.bc-pmf__qitem.is-done .bc-pmf__qstatus { color: #0a7d2c; }
.bc-pmf__qitem.is-error { border-color: #c00; }
.bc-pmf__qitem.is-error .bc-pmf__qstatus { color: #c00; }
.bc-pmf__qitem.is-error .bc-pmf__bar > div { background: #c00; }

.bc-pmf__litem {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px;
	border: 1px solid #e0d6ea;
	border-radius: 5px;
	margin-bottom: 6px;
	font-size: 14px;
	line-height: 1.45;
}
.bc-pmf__thumb { flex: none; width: 64px; height: 64px; object-fit: contain; border-radius: 4px; background: #f3eef7; }
.bc-pmf__linfo { min-width: 0; flex: 1 1 auto; }
.bc-pmf__linfo strong { word-break: break-all; }
.bc-pmf__linfo small { color: #777; }
/* Always their own full-width row under the file, never inline beside it —
   otherwise rows wrap or not depending on how many buttons and how long the
   saved selection is, and no two rows line up. */
.bc-pmf__lactions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1 0 100%;
	justify-content: flex-start;
	margin-top: 2px;
}
.bc-pmf__empty { color: #999; font-size: 14px; }

/* `display: inline-block` below outranks the hidden attribute, so a button
   told to hide itself would stay on screen. Put the attribute back in charge. */
.bc-pmf [hidden] { display: none !important; }

.bc-pmf__btn {
	display: inline-block;
	background: #8b5a9c;
	color: #fff !important;
	text-decoration: none;
	border: 0;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
}
.bc-pmf__btn:hover { background: #6f4480; }
.bc-pmf__btn--alt { background: #555; }
.bc-pmf__btn--sm { padding: 5px 10px; font-size: 13px; }
.bc-pmf__btn--del { background: #b23; }
.bc-pmf__btn--del:hover { background: #901a2b; }
.bc-pmf--gate { background: #faf8fc; border: 1px solid #d9d2e0; border-radius: 6px; padding: 1em 1.2em; }

/* ---- "Limit paper choices" toggle + multiselect panel ------------------- */
.bc-pmf__papers { margin-top: 2px; }
.bc-pmf__papers-toggle::before { content: '▸ '; }
.bc-pmf__papers-toggle.is-open::before { content: '▾ '; }
.bc-pmf__papers-panel {
	margin-top: 10px;
	padding: 12px 14px;
	border: 1px solid #e2d6ea;
	border-radius: 6px;
	background: #faf7fc;
}
.bc-pmf__papers-tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 4px;
}
.bc-pmf__papers-filter {
	flex: 1 1 auto;
	padding: 7px 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
}
.bc-pmf__papers-count { font-size: 13px; color: #8b5a9c; white-space: nowrap; }
.bc-pmf__papers-clear {
	background: none;
	border: 0;
	color: #666;
	cursor: pointer;
	font-size: 13px;
	text-decoration: underline;
	padding: 2px 4px;
}
.bc-pmf__papers-toggle.has-sel::after { content: ' ●'; color: #8b5a9c; }
.bc-pmf__papers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 5px 14px;
	margin-top: 6px;
	max-height: 260px;
	overflow-y: auto;
	padding-right: 4px;
}
.bc-pmf__paper-opt {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 7px;
	font-weight: normal;
	font-size: 14px;
	cursor: pointer;
}
.bc-pmf__paper-opt input { width: auto; }

/* ---- Dashboard: header + New upload form ------------------------------- */
.bc-pmf__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bc-pmf__head h3 { margin: 0; }
.bc-pmf__new::before { content: '▸ '; }
.bc-pmf__new.is-open::before { content: '▾ '; }
/* [hidden] is only display:none at zero specificity from the UA sheet, so any
   `display` declared here would defeat it. State it explicitly instead. */
.bc-pmf__form[hidden] { display: none; }
.bc-pmf__form {
	border: 1px solid #e2d6ea;
	border-radius: 6px;
	background: #faf7fc;
	padding: 14px 16px;
	margin: 0 0 16px;
}
.bc-pmf__formactions {
	display: flex;
	gap: 8px;
	border-top: 1px solid #e2d6ea;
	padding-top: 12px;
	margin-top: 12px;
}
.bc-pmf__formerror { color: #b23; font-size: 13px; margin: 10px 0 0; }
.bc-pmf__formerror[hidden] { display: none; }
.bc-pmf__btn--alt:hover { background: #3f3f3f; }
.bc-pmf__btn:disabled { opacity: .55; cursor: default; }

/* Files staged for submission (nothing is sent until Submit) */
.bc-pmf__chosen { list-style: none; margin: 10px 0 0; padding: 0; }
.bc-pmf__chosen[hidden] { display: none; }
.bc-pmf__chosen-item {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 10px; border: 1px solid #e0d6ea; border-radius: 5px;
	margin-bottom: 5px; font-size: 13px;
}
/* Preview painted straight from the File object — no upload needed. */
.bc-pmf__chosen-thumb {
	flex: none; width: 64px; height: 64px;
	/* contain, never cover — the customer is checking their whole artwork,
	   so it must not be cropped to fill the square. */
	object-fit: contain; border-radius: 4px; background: #f3eef7;
}
.bc-pmf__chosen-thumb--none {
	display: flex; align-items: center; justify-content: center;
	border: 1px dashed #d6c9e0; background: #faf8fc;
	color: #8b5a9c; font-size: 11px; font-weight: bold; letter-spacing: .03em;
}
.bc-pmf__chosen-info { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.bc-pmf__chosen-info strong { display: block; word-break: break-all; font-weight: normal; }
.bc-pmf__chosen-info small { color: #888; }
.bc-pmf__chosen-item.is-error .bc-pmf__chosen-info small { color: #b23; }
.bc-pmf__chosen-item.is-error { border-color: #b23; color: #b23; }
.bc-pmf__chosen-del {
	background: none; border: 0; color: #666; cursor: pointer;
	font-size: 16px; line-height: 1; padding: 2px 6px;
}
.bc-pmf__chosen-del:hover { color: #b23; }

/* ---- Dashboard: submissions -------------------------------------------- */
.bc-pmf__subs { list-style: none; margin: 12px 0 0; padding: 0; }
.bc-pmf__sub {
	border: 1px solid #e0d6ea;
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 10px;
}
.bc-pmf__sub.is-gone { opacity: .62; background: #faf8fc; border-color: #ece6f0; }
.bc-pmf__sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-pmf__sub-title { margin: 0; font-size: 15px; word-break: break-word; }
.bc-pmf__sub-meta { margin: 4px 0 0; font-size: 12px; color: #777; }
.bc-pmf__sub-note { margin: 6px 0 0; font-size: 12px; color: #555; }
.bc-pmf__files { list-style: none; margin: 10px 0 0; padding: 0; }
.bc-pmf__sub--single .bc-pmf__files { margin-top: 8px; }

.bc-pmf__status {
	font-size: 12px; padding: 2px 9px; border-radius: 10px;
	white-space: nowrap; flex: none; font-weight: normal;
}
.bc-pmf__status--uploaded { color: #2b6cb0; background: #eaf1fa; }
.bc-pmf__status--ordered   { color: #b8620b; background: #fdf1e3; }
.bc-pmf__status--cancelled { color: #8a3d3d; background: #fbecec; }
.bc-pmf__status--progress { color: #0a7d2c; background: #e9f6ed; }
.bc-pmf__status--mixed    { color: #8b5a9c; background: #f3eef7; }
.bc-pmf__status--terminal { color: #666;    background: #f0eef2; }

.bc-pmf__keep {
	display: inline-flex; align-items: center; gap: 7px;
	margin: 9px 0 0; font-size: 13px; color: #555; cursor: pointer;
}
.bc-pmf__keep input { width: auto; }

.bc-pmf__litem.is-gone { background: #faf8fc; border-color: #ece6f0; }
.bc-pmf__thumb--none { display: block; border: 1px dashed #e0d6ea; background: #faf8fc; }

/* Print-size picker (same shape as the paper options, fewer of them) */
.bc-pmf__sizes-label { display: block; font-size: 13px; font-weight: bold; color: #444; margin-bottom: 6px; }
.bc-pmf__sizes-grid { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bc-pmf__size-opt {
	display: flex; flex-direction: row; align-items: center; gap: 7px;
	font-weight: normal; font-size: 14px; cursor: pointer;
}
.bc-pmf__size-opt input { width: auto; }

/* ---- Pricing a file from the dashboard --------------------------------- */
.bc-pmf__calc[hidden] { display: none; }
/* Full-width own line inside the file row, never a squeezed flex sibling of
   the thumbnail and buttons. */
.bc-pmf__calc {
	flex: 1 0 100%;
	min-width: 0;
	max-width: 100%;
	/* The row is content-box, so 100% + padding would overhang it. */
	box-sizing: border-box;
	border: 1px solid #e2d6ea;
	border-radius: 6px;
	background: #faf7fc;
	padding: 14px 16px;
	margin: 10px 0 4px;
}
.bc-pmf__calcactions {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	border-top: 1px solid #e2d6ea; padding-top: 12px; margin-top: 12px;
}
.bc-pmf__calcmsg { font-size: 13px; color: #555; }
.bc-pmf__btn--go { background: #0a7d2c; }
.bc-pmf__btn--go:hover { background: #086322; }
.bc-pmf__chosen-sel { color: #8b5a9c !important; font-weight: bold; }
.bc-pmf__addimg { margin-top: 10px; }

/* ---- Order footer: one decision for everything priced ------------------- */
.bc-pmf__order[hidden] { display: none; }
.bc-pmf__order {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px;
	border: 1px solid #c9b8d4; border-radius: 6px;
	background: #f6f1fa; padding: 12px 14px; margin: 12px 0 0;
}
.bc-pmf__ordertotal { display: flex; align-items: baseline; gap: 10px; }
.bc-pmf__orderlabel { font-size: 13px; color: #555; }
.bc-pmf__ordersum { font-size: 19px; font-weight: bold; color: #2b2b3a; }
.bc-pmf__orderactions { display: flex; align-items: center; gap: 10px; }
.bc-pmf__ordersum--part { color: #777; }
/* Cancel asks us to stop; Remove destroys the file. Different weight. */
.bc-pmf__btn--cancel { background: #8a6d3b; }
.bc-pmf__btn--cancel:hover { background: #6e552c; }
.bc-pmf__order--committed { background: #fdf7f0; border-color: #e3cdb0; }

/* Size and quantity lead the chosen-options line — they're what people scan for. */
.bc-pmf__chosen-sel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 3px; }
.bc-pmf__selsize {
	font-size: 15px; color: #2b2b3a; background: #efe7f5;
	border-radius: 4px; padding: 1px 8px; white-space: nowrap;
}
.bc-pmf__selqty {
	font-size: 15px; font-weight: bold; color: #8b5a9c; background: #f6f1fa;
	border: 1px solid #ddd0e8; border-radius: 4px; padding: 1px 8px; white-space: nowrap;
}
.bc-pmf__selrest { font-size: 12px; color: #777; min-width: 0; overflow-wrap: anywhere; }
.bc-pmf__seldpi {
	font-size: 12px; color: #0a7d2c; background: #e9f6ed;
	border-radius: 10px; padding: 1px 8px; white-space: nowrap;
}
.bc-pmf__seldpi.is-low { color: #b3261e; }
.bc-pmf__status--printed   { color: #1d6fa5; background: #e8f2f9; }
.bc-pmf__status--delivered { color: #0a7d2c; background: #e2f3e7; }

/* ---- List toolbar ------------------------------------------------------- */
.bc-pmf__listhead {
	display: flex; align-items: baseline; justify-content: space-between;
	flex-wrap: wrap; gap: 8px 16px; margin: 1.4em 0 .4em;
}
.bc-pmf__listhead .bc-pmf__subhead { margin: 0; }
.bc-pmf__tools[hidden] { display: none; }
.bc-pmf__tools { display: flex; gap: 14px; flex-wrap: wrap; }
.bc-pmf__tool { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #666; }
.bc-pmf__tool select {
	font: inherit; font-size: 13px; padding: 4px 8px;
	border: 1px solid #c9bcd6; border-radius: 4px; background: #fff; color: #333;
}
.bc-pmf__tool select:focus { outline: 0; border-color: #8b5a9c; box-shadow: 0 0 0 2px rgba(139,90,156,.25); }
.bc-pmf__basketmsg { color: #0a7d2c; font-weight: bold; margin-right: 8px; }
.bc-pmf__orderactions a.bc-pmf__btn--go { color: #fff !important; text-decoration: none; }
.bc-pmf__buymore { background: #55607a; margin-top: 10px; }
.bc-pmf__buymore:hover { background: #414a60; }
.bc-pmf__reordernote { color: #b8620b !important; font-weight: bold; }
.bc-pmf__sub.is-new { border-color: #8b5a9c; box-shadow: 0 0 0 3px rgba(139,90,156,.18); }
.bc-pmf__order--again { background: #f2f5fa; border-color: #b8c6da; }
.bc-pmf__againnote { flex: 1 0 100%; margin: 8px 0 0; font-size: 12px; color: #55607a; }

/* ---- The index -------------------------------------------------------------
 * One line per submission: recognise the job, see where it is up to, go in.
 * Everything you can DO to it lives on its own page, which is what keeps this
 * list scannable however many jobs are on it.
 */
/* The actions sit in a fixed-width column inside the card rather than an
   `auto` one: each card lays itself out independently, so an automatic column
   would size to its own content and cards without an Order again button would
   put "View" in a different place from the ones that have it. */
.bc-pmf { --bc-rowaction: 118px; }
.bc-pmf__row { margin-bottom: 8px; }
.bc-pmf__rowacts {
	flex: 0 0 var(--bc-rowaction); width: var(--bc-rowaction);
	display: flex; flex-direction: column; align-items: stretch; gap: 6px;
}
.bc-pmf__rowagain { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.bc-pmf__row.is-gone { opacity: .62; }
.bc-pmf__rowlink {
	display: flex; align-items: center; gap: 14px;
	border: 1px solid #e0d6ea; border-radius: 6px; padding: 10px 12px;
	text-decoration: none; color: inherit; background: #fff;
	transition: border-color .12s, box-shadow .12s, background .12s;
}
.bc-pmf__rowlink:hover, .bc-pmf__rowlink:focus-visible {
	border-color: #7f54b3; background: #fcfaff;
	box-shadow: 0 1px 4px rgba(127, 84, 179, .12);
}
.bc-pmf__rowthumb {
	flex: 0 0 auto; width: 56px; height: 56px; border-radius: 4px;
	background: #f4f1f7; display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.bc-pmf__rowthumb img { max-width: 100%; max-height: 100%; display: block; }
.bc-pmf__rowbody { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-pmf__rowtop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-pmf__rowtitle { font-size: 15px; word-break: break-word; }
.bc-pmf__rowmeta { font-size: 12px; color: #777; }
.bc-pmf__rowmoney { font-size: 13px; color: #444; }
.bc-pmf__rowlink { cursor: pointer; }
.bc-pmf__rowgo {
	font-size: 13px; color: #7f54b3; font-weight: 600;
	text-align: center; text-decoration: none;
}
.bc-pmf__rowlink:hover .bc-pmf__rowgo { text-decoration: underline; }

/* ---- One submission, on its own page -------------------------------------- */
.bc-pmf__backrow { list-style: none; margin: 0 0 10px; }
.bc-pmf__back { font-size: 13px; color: #7f54b3; text-decoration: none; }
.bc-pmf__back:hover { text-decoration: underline; }
/* No border or card edge here: it is the page now, not one row among many. */
.bc-pmf--detail .bc-pmf__sub { border: 0; padding: 0; margin: 0; }
.bc-pmf--detail .bc-pmf__sub-title { font-size: 20px; }

@media (max-width: 560px) {
	/* Narrow: let the actions sit under the details rather than squeezing a
	   long title into what is left beside them. */
	.bc-pmf__rowlink { flex-wrap: wrap; gap: 10px; padding: 9px 10px; }
	.bc-pmf__rowthumb { width: 44px; height: 44px; }
	.bc-pmf__rowacts {
		flex: 1 0 100%; width: auto; flex-direction: row; justify-content: flex-end;
		align-items: center; gap: 10px;
	}
}

/* Quantity gets its own line under the actions, always present. While the
   size and paper panel is open this row holds bc-calc's own input (moved, not
   copied — see hoistQty), so it must look the same either way. */
.bc-pmf__qtyrow {
	display: flex; align-items: center; gap: 8px;
	margin: 8px 0 0; font-size: 13px; color: #555;
}
.bc-pmf__qtylabel { font-size: 13px; color: #555; }
.bc-pmf__qtyrow input {
	width: 76px; padding: 6px 8px; font-size: 14px;
	border: 1px solid #ccc; border-radius: 4px;
}
.bc-pmf__qtyhint { color: #999; font-size: 12px; }

/* A choice already made: still reachable, no longer shouting for attention. */
.bc-pmf__btn--quiet {
	background: transparent; color: #7f54b3 !important;
	border: 1px solid #d9cbe9; padding-top: 7px; padding-bottom: 7px;
}
.bc-pmf__btn--quiet:hover { background: #f6f2fb; border-color: #7f54b3; }

/* In the basket: priced and chosen, but not paid for — so it reads as a step
   beyond Saved without claiming to be with us for printing. */
.bc-pmf__status--basket { background: #e8f0fb; color: #1f4b8e; }

/* The live title check. Inside the label, so it is hidden with the form. */
.bc-pmf__titlecheck { display: block; font-size: 12px; margin-top: 4px; min-height: 1em; }
.bc-pmf__titlecheck.is-taken { color: #8a1f18; }
.bc-pmf__titlecheck.is-free  { color: #0a5c22; }

/* Destructive, but not shouting about it until you are actually on it. */
.bc-pmf__btn--danger:hover {
	background: #fdeceb; border-color: #c0392b; color: #8a1f18 !important;
}

/* ---- File cards on a submission's own page --------------------------------
 * Two columns: the artwork on the left, everything about it on the right.
 * The preview earns the space here — this is the page where the size, paper
 * and quantity are decided, and those are judgements about the picture.
 * The thumb spans every row so the right-hand column can grow without
 * leaving it stranded at the top, and the calculator spans both so it still
 * gets the full width when it opens.
 */
@media (min-width: 700px) {
	.bc-pmf--detail .bc-pmf__litem {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		/* No row gap: the details, the quantity and the buttons are one
		   continuous read down the right-hand column, and each already carries
		   its own spacing. A gap here only pushed Quantity away from the price
		   it belongs to. */
		gap: 0 18px;
		align-items: start;
	}
	.bc-pmf--detail .bc-pmf__litem > .bc-pmf__thumbcol {
		grid-column: 1; grid-row: 1 / span 5;
		display: flex; flex-direction: column; align-items: stretch; gap: 8px;
	}
	.bc-pmf--detail .bc-pmf__thumbcol > .bc-pmf__thumb {
		/* `span 5`, not `1 / -1`: with no explicit rows declared, -1 resolves
		   to the end of the EXPLICIT grid — which is line 1 here — so the
		   thumbnail occupied row 1 alone and sized that row to the height of
		   the picture, pushing Quantity down to meet its bottom edge. Spanning
		   more rows than the card will ever have costs nothing: the surplus
		   are implicit rows of no height. */
		grid-column: 1; grid-row: 1 / span 5;
		width: 100%; height: auto; max-height: 260px;
		object-fit: contain; align-self: start;
	}
	.bc-pmf--detail .bc-pmf__thumbcol > .bc-pmf__thumb--none {
		min-height: 120px; display: flex; align-items: center; justify-content: center;
	}
	.bc-pmf--detail .bc-pmf__litem > * { grid-column: 2; }
	/* Full width: it carries a sheet preview and a price table of its own. */
	.bc-pmf--detail .bc-pmf__litem > .bc-pmf__calc { grid-column: 1 / -1; }
}

/* The chosen size/paper/price, stacked. The pills (size, quantity, DPI) stay
   together on the first line; the paper name and the price each get their
   own, so a long paper name never splits across a line break with the price
   marooned after it. */
.bc-pmf__chosen-sel {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
	margin-top: 4px;
}
.bc-pmf__selrest, .bc-pmf__selprice { flex: 1 0 100%; }
.bc-pmf__selprice { color: #333; font-weight: 600; }

/* Rows sized to their content, packed at the top. Without this the thumbnail
   spans every row, and any height it has over the details is shared out
   between them — which pushed Quantity and the buttons down to meet the
   bottom of the picture instead of following the text they belong to. */
@media (min-width: 700px) {
	.bc-pmf--detail .bc-pmf__litem { align-content: start; grid-auto-rows: min-content; }
}

/* Quantity follows straight on from the price, rather than sitting apart from
   it. Tighter here than on a narrow screen, where the card is one column and
   the separation is what tells the two blocks apart. */
@media (min-width: 700px) {
	.bc-pmf--detail .bc-pmf__qtyrow { margin-top: 6px; }
	.bc-pmf--detail .bc-pmf__linfo { margin-bottom: 0; }
}

/* ---- Size & paper dialog --------------------------------------------------- */
.bc-pmf__modal { position: fixed; inset: 0; z-index: 99999; }
.bc-pmf__modal[hidden] { display: none; }
.bc-pmf__modal-back { position: absolute; inset: 0; background: rgba(20, 14, 28, .55); }
.bc-pmf__modal-box {
	position: relative; margin: 4vh auto; max-width: 760px; width: calc(100% - 24px);
	max-height: 92vh; overflow: auto; background: #fff; border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0,0,0,.3); outline: none;
}
.bc-pmf__modal-head {
	position: sticky; top: 0; z-index: 1; background: #fff;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 16px; border-bottom: 1px solid #ece6f0;
}
.bc-pmf__modal-title { margin: 0; font-size: 16px; word-break: break-word; }
.bc-pmf__modal-x {
	background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer;
	color: #777; padding: 0 4px;
}
.bc-pmf__modal-x:hover { color: #333; }
.bc-pmf__modal-body { padding: 14px 16px 18px; }
/* In a dialog it is the whole content, so it needs none of the inset framing
   it had when it was expanding inside a card. */
.bc-pmf__modal-body .bc-pmf__calc { border: 0; padding: 0; margin: 0; background: none; }
body.bc-pmf-modal-open { overflow: hidden; }

/* Download belongs with the picture, not with the pricing controls. */
@media (min-width: 700px) {
	.bc-pmf__thumbdl { text-align: center; }
}

/* The basket state, standing where its button used to. */
.bc-pmf__basketstate {
	color: #0a5c22; font-weight: 700; font-size: 14px; white-space: nowrap;
	align-self: center;
}

/* The quantity price matrix, on the card rather than inside the chooser: it
   is what you consult while deciding how many, and that decision is made
   here. Doubles as the control — press a quantity to take it. */
.bc-pmf__breaks { margin: 6px 0 0; overflow-x: auto; }
.bc-pmf__breaks table { border-collapse: collapse; font-size: 12px; }
.bc-pmf__breaks th, .bc-pmf__breaks td {
	border: 1px solid #e6dced; padding: 3px 9px; text-align: center; white-space: nowrap;
}
.bc-pmf__breaks th:first-child, .bc-pmf__breaks td:first-child {
	background: #faf8fc; color: #777; font-weight: 400; cursor: default;
}
.bc-pmf__breaks th:not(:first-child), .bc-pmf__breaks td:not(:first-child) { cursor: pointer; }
.bc-pmf__breaks th:not(:first-child):hover, .bc-pmf__breaks td:not(:first-child):hover { background: #f6f2fb; }
.bc-pmf__breaks .is-on { background: #ede4f8; color: #4b2e78; font-weight: 700; }

/* The size selector on a card. Small and quiet until you look at it: the one
   that is set reads as a statement, the rest as an offer. */
.bc-pmf__sizepick { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bc-pmf__sizeopt {
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	background: #fff; border: 1px solid #ddd3e6; border-radius: 4px;
	padding: 4px 9px; font-size: 12px; color: #6b5a7a; cursor: pointer; line-height: 1.35;
	min-width: 74px;
}
.bc-pmf__sizename { font-weight: 700; font-size: 13px; color: #4b2e78; }
.bc-pmf__sizedim  { font-size: 10px; color: #999; white-space: nowrap; }
.bc-pmf__sizedpi  { font-size: 10px; color: #0a5c22; font-weight: 600; }
.bc-pmf__sizedpi.is-low { color: #b3261e; }
.bc-pmf__sizeopt:hover:not(:disabled) { border-color: #7f54b3; color: #4b2e78; background: #faf7fd; }
.bc-pmf__sizeopt.is-on {
	background: #ede4f8; border-color: #b79ad6; color: #4b2e78; font-weight: 700;
}
.bc-pmf__sizeopt:disabled { opacity: .55; cursor: default; }

/* DPI on a line of its own: it is a verdict on the size just chosen, so it
   belongs under the sizes rather than trailing after them where it reads as
   one more option. */
/* No box and no fill: it is a sentence, and it has to wrap like one. The
   badge styling it inherited kept it on a single nowrap line with a pink
   ground, which in a narrow column ran off the edge. */
.bc-pmf__seldpi {
	flex: 1 0 100%; margin-top: 4px; font-size: 12px; line-height: 1.5;
	color: #b3261e; background: none; border: 0; padding: 0; border-radius: 0;
	white-space: normal; overflow-wrap: anywhere; display: block;
}

/* The paper list, on the card. Full width under the sizes: the names run long
   ("Infinity Somerset Enhanced Velvet 330gsm") and squeezing them beside the
   size buttons truncated the part that distinguishes one from another. */
.bc-pmf__paperpick { flex: 1 0 100%; margin-top: 4px; }
.bc-pmf__paperopt {
	max-width: 100%; font-size: 12px; padding: 4px 6px;
	border: 1px solid #ddd3e6; border-radius: 4px; background: #fff; color: #4b2e78;
}
.bc-pmf__paperopt:disabled { opacity: .6; }

/* The sheet preview: the paper at its true proportions, the artwork sitting
   on it at its own, and the paper that leaves showing as paper. */
.bc-pmf__sheet { margin-top: 6px; }
.bc-pmf__sheetpaper {
	width: 100%; background: #fff; border: 1px solid #cfc6d8;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
	display: flex; align-items: center; justify-content: center;
}
.bc-pmf__sheetart { background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #eee; }
.bc-pmf__sheetnote { margin: 4px 0 0; font-size: 11px; color: #777; text-align: center; }
.bc-pmf__paperlabel { display: block; font-size: 12px; color: #666; margin-bottom: 2px; }

/* What this image comes to. The total leads; the unit price sits beside it as
   the workings behind it. */
.bc-pmf__linetotal {
	display: flex; align-items: baseline; gap: 8px;
	margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0ecf4;
}
.bc-pmf__linesum { font-size: 17px; color: #333; }
.bc-pmf__linetotal .bc-pmf__selprice { flex: 0 1 auto; font-weight: 400; color: #777; font-size: 12px; }
.bc-pmf__linetodo { color: #777; font-size: 12px; }

/* The custom-size popup: three fields that are one number seen three ways. */
.bc-pmf__pop {
	position: absolute; z-index: 60; margin-top: 6px;
	background: #fff; border: 1px solid #d9cbe9; border-radius: 6px;
	box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 10px 12px; min-width: 210px;
}
.bc-pmf__pop-row { margin-bottom: 6px; }
.bc-pmf__pop-row label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }
.bc-pmf__pop-row input { width: 74px; padding: 4px 6px; font-size: 13px; border: 1px solid #ccc; border-radius: 4px; }
.bc-pmf__pop-note { margin: 6px 0 8px; font-size: 11px; color: #0a5c22; line-height: 1.4; }
.bc-pmf__pop-note.is-low { color: #b3261e; }
.bc-pmf__pop-act { display: flex; gap: 6px; }
.bc-pmf__sizepick { position: relative; }
