/* J A Milton – Button Covering popup */
html.jam-bc-open { overflow: hidden; }

.jam-bc-modal[hidden] { display: none !important; }
.jam-bc-modal {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.jam-bc-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.jam-bc-dialog {
	position: relative; background: #fff; color: #222;
	width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto;
	padding: 28px 28px 24px; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	font-size: 15px; line-height: 1.5;
}
.jam-bc-dialog h2 { margin: 0 32px 8px 0; font-size: 22px; line-height: 1.25; }
.jam-bc-dialog > p { margin: 0 0 18px; }
.jam-bc-x {
	position: absolute; top: 10px; right: 12px; background: none; border: 0;
	font-size: 28px; line-height: 1; cursor: pointer; color: #555; padding: 4px 8px;
}
.jam-bc-x:hover { color: #000; }

.jam-bc-field { border: 0; margin: 0 0 16px; padding: 0; }
.jam-bc-field legend, .jam-bc-field > label { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.jam-bc-choice {
	display: inline-flex; align-items: center; gap: 6px;
	margin: 0 8px 8px 0; padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px;
	cursor: pointer; font-weight: 400;
}
.jam-bc-choice:has(input:checked) { border-color: #222; background: #f4f4f4; }
.jam-bc-choice input { margin: 0; }
.jam-bc-field textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
.jam-bc-field .req, .jam-bc-ack .req { color: #b00; }
.jam-bc-field .opt { font-weight: 400; color: #777; }

.jam-bc-advice { background: #f7f5f0; border-left: 4px solid #c9b88a; padding: 12px 16px; margin: 0 0 16px; font-size: 14px; }
.jam-bc-advice ul { margin: 6px 0 0 18px; padding: 0; }
.jam-bc-advice li { margin: 2px 0; }

.jam-bc-ack { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 0 0 12px; cursor: pointer; }
.jam-bc-ack input { margin-top: 4px; }
.jam-bc-note { font-size: 13px; color: #555; margin: 0 0 18px; }

.jam-bc-error { background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bc; padding: 10px 12px; border-radius: 4px; margin-bottom: 14px; }
.jam-bc-error[hidden] { display: none; }

.jam-bc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.jam-bc-primary { cursor: pointer; }
.jam-bc-cancel { background: none; border: 0; text-decoration: underline; cursor: pointer; color: #444; padding: 8px 4px; font: inherit; }

@media (max-width: 480px) {
	.jam-bc-dialog { padding: 22px 18px 18px; }
	.jam-bc-dialog h2 { font-size: 19px; }
	.jam-bc-actions { flex-direction: column; align-items: stretch; }
	.jam-bc-primary { width: 100%; text-align: center; }
}

/* Order confirmation box */
.jam-bc-send { border: 2px solid #222; padding: 20px 24px; margin: 0 0 28px; border-radius: 4px; }
.jam-bc-send h2 { margin-top: 0; }
.jam-bc-send .jam-bc-ordernum { font-size: 18px; }
.jam-bc-send address { font-style: normal; margin: 12px 0; line-height: 1.6; }
