/* Pottery bat page - same colours as the shape calculator. */
.bmd-bat { --c-ink: #2b2418; --c-muted: #6b6255; --c-line: #e3ddd2; --c-soft: #f7f4ee; --c-accent: #934F43; --c-err: #a12d22; max-width: 1060px; margin: 0 auto; padding: 16px 16px 48px; color: var(--c-ink); line-height: 1.6; font-size: 16px; direction: rtl; text-align: right; }
.bmd-bat *, .bmd-bat *:before, .bmd-bat *:after { box-sizing: border-box; }
.bmd-bat [hidden] { display: none !important; }
.bmd-bat h1 { font-size: clamp(26px, 4vw, 35px); margin: 0 0 4px; }
.bmd-bat h2 { font-size: 24px; margin: 32px 0 10px; }
.bmd-bat h3 { font-size: 18px; margin: 0 0 4px; }
.bmd-bat .pb-intro { margin: 0 0 18px; color: var(--c-muted); }
.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bmd-bat .pb-form { margin: 0; min-width: 0; }
.bmd-bat .pb-form fieldset { border: 1px solid var(--c-line); border-radius: 12px; padding: 10px 14px 14px; margin: 0 0 12px; background: #fff; min-width: 0; }
.bmd-bat .pb-form legend { font-size: 17px; font-weight: 700; padding: 0 6px; margin: 0; width: auto; }
.pb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bmd-bat .pb-card, .bmd-bat .pb-chip { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.bmd-bat .pb-card input, .bmd-bat .pb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pb-card span { display: flex; flex-direction: column; justify-content: space-between; height: 100%; border: 1px solid #cfc7b8; border-radius: 10px; padding: 8px 6px; text-align: center; line-height: 1.35; }
.pb-card b { font-size: 14px; }
.pb-card small { color: var(--c-muted); font-size: 13px; }
.pb-card em { font-style: normal; font-weight: 700; color: var(--c-accent); }
.pb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.pb-chip span { display: inline-block; min-height: 44px; border: 1px solid #cfc7b8; border-radius: 999px; padding: 9px 16px; }
.bmd-bat .pb-card input:checked + span { border: 2px solid var(--c-accent); background: #f6ebe7; padding: 7px 5px; }
.bmd-bat .pb-chip input:checked + span { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.bmd-bat .pb-card input:focus-visible + span, .bmd-bat .pb-chip input:focus-visible + span { outline: 3px solid #2b6cb0; outline-offset: 2px; }
.bmd-bat .pb-field { display: flex; flex-direction: column; font-size: 15px; font-weight: 400; margin: 0 0 8px; }
.bmd-bat .pb-field input, .bmd-bat .pb-field select { width: 100%; max-width: 100%; height: auto; min-height: 44px; margin: 0; padding: 8px 10px; border: 1px solid #cfc7b8; border-radius: 8px; font: inherit; font-size: 16px; background-color: #fff; color: var(--c-ink); }
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.bmd-bat .pb-label { margin: 4px 0 6px; font-size: 15px; }
.pb-wheelnote { background: var(--c-soft); border-radius: 8px; padding: 8px 10px; font-size: 15px; }
.bmd-bat .pb-disclaimer { background: #fdf0d5; border-right: 4px solid #d9a441; border-radius: 8px; padding: 8px 12px; margin: 8px 0; font-size: 15px; }
.pb-badge { display: inline-block; border-radius: 999px; padding: 0 10px; font-size: 13px; font-weight: 700; }
.pb-badge.is-ok { background: #e2f1e8; color: #1f6b43; }
.pb-badge.is-warn { background: #fdf0d5; color: #8a5a00; }
.pb-guide summary { cursor: pointer; font-weight: 700; min-height: 36px; }
.pb-guide ol { padding-right: 20px; padding-left: 0; margin: 6px 0 0; font-size: 15px; }
.pb-guidefig { max-width: 260px; margin: 0 auto; }
.pb-order { background: #fff; border: 2px solid var(--c-accent); border-radius: 12px; padding: 10px 16px 14px; }
.bmd-bat .pb-total { font-size: 28px; font-weight: 700; color: var(--c-accent); margin: 0; }
.pb-total small { font-size: 14px; font-weight: 400; color: var(--c-muted); }
.bmd-bat .pb-unit { margin: 0 0 6px; font-size: 15px; }
.bmd-bat .pb-qty { max-width: 140px; }
.pb-unit s { color: var(--c-muted); }
.bmd-bat .pb-confirm { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; margin: 4px 0 10px; cursor: pointer; }
.bmd-bat .pb-confirm input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; }
.pb-errors { background: #fbecea; border: 1px solid #efc2bc; color: var(--c-err); border-radius: 10px; padding: 2px 12px; margin-bottom: 10px; }
.bmd-bat .pb-errors p { margin: 6px 0; }
.bmd-bat .pb-add { width: 100%; min-height: 52px; background: #1f6b43; color: #fff; border: 0; border-radius: 8px; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.bmd-bat .pb-add:disabled { opacity: .6; cursor: default; }
.bmd-bat .pb-added a { font-weight: 700; text-decoration: underline; }
.pb-preview { position: sticky; top: 120px; min-width: 0; }
.pb-stage { background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 12px; min-height: 240px; padding: 8px; }
.pb-svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; font-family: inherit; direction: ltr; }
.pb-disc { stroke: #6b4a34; }
.pb-mdf { fill: #c9d3b8; }
.pb-birch { fill: #ecd9b8; }
.pb-head { fill: none; stroke: #6b6255; }
.pb-axis { stroke: #6b4a34; fill: none; }
.pb-hole { fill: #fff; stroke: #2b2418; }
.pb-ring { fill: none; stroke: #934F43; }
.pb-dim path { stroke: #333; fill: none; }
.pb-dim path.pb-arrow { fill: #333; stroke: none; }
.pb-dim text { fill: #2b2418; stroke: none; font-weight: 700; }
.pb-guidehead { fill: #e9e5dc; stroke: #6b6255; }
.pb-guidepin { fill: #934F43; }
.bmd-bat .pb-data { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 0; border: 0; }
.bmd-bat .pb-data th, .bmd-bat .pb-data td { border: 0; border-bottom: 1px solid var(--c-line); padding: 6px 4px; text-align: right; vertical-align: top; }
.bmd-bat .pb-data th { font-weight: 400; color: var(--c-muted); width: 45%; background: none; }
.pb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pb-two > div { background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 16px; }
.pb-muted { color: var(--c-muted); font-size: 15px; }
.pb-info details { border-bottom: 1px solid var(--c-line); padding: 8px 0; }
.pb-info summary { cursor: pointer; font-weight: 700; min-height: 36px; }

@media (max-width: 900px) {
	/* one column: choices, then the drawing, then price and button */
	.pb-layout { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
	.bmd-bat .pb-form { display: contents; }
	.pb-preview { position: static; order: 1; }
	.pb-order { order: 2; }
	.pb-two { grid-template-columns: 1fr; }
	.pb-svg { max-width: 360px; }
}
@media (max-width: 400px) {
	.pb-grid { grid-template-columns: 1fr; }
	.pb-chips { gap: 6px; }
	.pb-chip span { padding: 9px 11px; }
}
