/* Blue Cedar Print Calculator */
.bc-calc {
	clear: both;          /* drop below the floated product image + summary */
	width: 100%;
	box-sizing: border-box;
	margin: 1.5em 0;
	padding: 1em 1.2em;
	border: 1px solid #d9d2e0;
	border-radius: 6px;
	background: #faf8fc;
	font-family: arial, sans-serif;
}
.bc-calc__title {
	margin: 0 0 .5em;
	font-size: 1.1em;
}
.bc-calc__choices {
	font-size: 16px;
	line-height: 2;
}
.bc-calc__cm {
	margin-top: .4em;
}
.bc-calc .bc-choice {
	font-size: 15px;
	padding: 2px 4px;
	margin: 0 2px;
	max-width: 100%;
}
.bc-calc__hint {
	margin: .8em 0 .4em;
	font-size: 13px;
	color: #555;
}
.bc-calc__grid-toggle {
	margin: .8em 0 .2em;
	padding: .4em .9em;
	font-size: 14px;
	cursor: pointer;
	background: #efe8f5;
	border: 1px solid #cfc6d8;
	border-radius: 4px;
}
.bc-calc__grid-toggle:hover { background: #e2d6ee; }
.bc-calc__none {
	color: #a00;
	font-size: 14px;
}
.bc-calc__grid-scroll {
	overflow-x: auto;
	max-width: 100%;
}
.bc-calc__grid {
	border-collapse: collapse;
	font-size: 13px;
}
.bc-calc__grid th,
.bc-calc__grid td {
	border: 1px solid #cfc6d8;
	padding: 5px 7px;
	text-align: right;
	white-space: nowrap;
}
.bc-calc__grid thead th,
.bc-calc__grid tbody th {
	background: #efe8f5;
	font-weight: bold;
	text-align: center;
	position: sticky;
	left: 0;
}
.bc-calc__cell {
	cursor: pointer;
}
.bc-calc__cell:hover,
.bc-calc__cell:focus {
	background: #d8b6d8;
	outline: none;
}
.bc-calc__cell.is-selected {
	background: #8b5a9c;
	color: #fff;
	font-weight: bold;
	outline: 3px solid #222;
	outline-offset: -3px;
}
.bc-calc__empty {
	background: #f3f0f6;
}
.bc-calc__summary {
	margin: 0 0 .8em;
	padding: .6em .8em;
	background: #fffce0;
	border: 1px solid #d8c800;
	font-size: 14px;
}
.bc-calc-price {
	font-size: .9em;
}

/* ---- image-driven aspect / DPI guide ---- */
#bc-calc-banner {
	padding: 8px 12px;
	margin: 0 0 8px;
	background: #fffce0;
	border: 1px solid #d8c800;
	font-size: 13px;
}
#bc-calc-dpi-notice {
	padding: 8px 12px;
	margin: 0 0 8px;
	background: #fde7e7;
	border: 1px solid #c00;
	color: #700;
	font-size: 13px;
}
#bc-calc-results .A4-row, #bc-calc-results .A4-col { background: #e7f3ff; }
#bc-calc-results .A3-row, #bc-calc-results .A3-col { background: #e7f9e7; }
#bc-calc-results .A2-row, #bc-calc-results .A2-col { background: #fff0e0; }
#bc-calc-results .aspect-alt  { background: #8b5a9c; color: #fff; font-weight: bold; cursor: pointer; }
#bc-calc-results .aspect-near { background: #f3e2f3; cursor: pointer; }
#bc-calc-results .aspect-alt:hover  { background: #5e3270; }
#bc-calc-results .aspect-near:hover { background: #d8b6d8; }
#bc-calc-results .A4-center,
#bc-calc-results .A3-center,
#bc-calc-results .A2-center { color: #fff; text-align: center; font-weight: bold; padding: 6px !important; }
#bc-calc-results .A4-center { background: #1976d2 !important; }
#bc-calc-results .A3-center { background: #388e3c !important; }
#bc-calc-results .A2-center { background: #f57c00 !important; }

/* cm size pickers: pink chosen column / row, light-orange cross cell.
   Declared last + !important so they win over the A4/A3/A2 + aspect tints
   and the .is-selected mauve; the orange centre beats the pink lines. */
#bc-calc-results .bc-calc__cm-col,
#bc-calc-results .bc-calc__cm-row { background: #ffc6dd !important; color: #222 !important; }
#bc-calc-results .bc-calc__cm-center { background: #ffd9a8 !important; color: #222 !important; }

/* Re-assert the A4/A3/A2 markers AFTER the cm rules so the pink cross never
   paints over them — the bold markers always keep their colour. */
#bc-calc-results .A4-center { background: #1976d2 !important; color: #fff !important; }
#bc-calc-results .A3-center { background: #388e3c !important; color: #fff !important; }
#bc-calc-results .A2-center { background: #f57c00 !important; color: #fff !important; }

#bc-calc-layout {
	margin: 0 0 12px;
	padding: 12px;
	background: #fafafa;
	border: 1px solid #aaa;
	font-size: 13px;
}
.bc-calc-layout__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bc-calc-layout__paper {
	position: relative;
	background: #fff;
	box-shadow: inset 0 0 0 1px #333, 0 2px 6px rgba(0,0,0,.2);
	flex: none;
}
.bc-calc-layout__img {
	position: absolute;
	background: #cde;
	box-shadow: inset 0 0 0 1px #348;
	overflow: hidden;
}
.bc-calc-layout__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-calc-layout__warn { color: #a07; }
.bc-calc-layout__ok   { color: #070; }

/* ---- size-tab format (per-size product tabs + custom roll) ------------- */
.bc-st__sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bc-st__size {
	padding: 9px 16px; border: 1px solid #c9b8d4; background: #fff;
	border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1.2;
}
.bc-st__size small { display: block; opacity: .65; font-size: 11px; }
.bc-st__size.is-active { background: #8b5a9c; color: #fff; border-color: #8b5a9c; }
.bc-st__row { font-size: 15px; line-height: 2.2; }
.bc-st__row select.bc-choice, .bc-st__dim, .bc-st__qty {
	padding: 6px 8px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px;
}
.bc-st__dim { width: 70px; }
.bc-st__qty { width: 70px; }
.bc-st__custom { white-space: nowrap; }
.bc-st__out { margin-top: 12px; overflow-x: auto; }
.bc-st__breaks { border-collapse: collapse; font-size: 13px; }
.bc-st__breaks th, .bc-st__breaks td { border: 1px solid #e0d6ea; padding: 5px 12px; text-align: right; }
.bc-st__breaks thead th { background: #f0eaf4; }
.bc-st__dpi { display: inline-block; margin-top: 4px; font-size: 13px; }
.bc-st__dpi--ok { color: #0a7d2c; }
.bc-st__dpi--low { color: #b23; }
.bc-calc-layout__note { color: #777; font-size: 12px; }

/* Everyday calculator (multi-category price list). Buttons + selects that
   mirror the dashboard's Everyday calculator, styled to sit with .bc-choice. */
.bc-ev-row { display:flex; align-items:baseline; gap:10px; margin:0 0 10px; flex-wrap:wrap; }
.bc-ev-row > label { flex:0 0 84px; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:#666; }
.bc-ev-opts { display:flex; gap:6px; flex-wrap:wrap; }
.bc-ev-opt { padding:7px 13px; border:1px solid #cfe3d7; background:#fff; border-radius:3px; cursor:pointer; font-size:14px; }
.bc-ev-opt.is-on { background:#2f7d5b; color:#fff; border-color:#276a4d; }
.bc-ev-note { font-size:13px; color:#666; margin:0 0 10px; }
.bc-ev-rawwrap { overflow-x:auto; }
.bc-ev-raw { border-collapse:collapse; font-size:12px; }
.bc-ev-raw td { border:1px solid #eee; padding:3px 7px; white-space:nowrap; }
.bc-ev-raw tr:first-child td { background:#f5f5f5; font-weight:600; }
