.ozb-engrave-block {
	width: 100%;
	max-width: 340px;
	min-width: 0;
	box-sizing: border-box;
	margin: 8px 0 2px;
	padding: 10px 11px;
	border: 1px solid #ddd;
	border-left: 4px solid #d89a22;
	border-radius: 6px;
	background: #fffaf1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
	color: #222;
}

/* Keep the compact cart editor below Flatsome's safe table-column width so
 * it cannot consume the gutter or collide with Cart totals. */
.woocommerce-cart-form .ozb-engrave-block {
	width: auto;
	max-width: 275px;
}

.ozb-engrave-block.is-complete {
	border-left-color: #25823f;
	background: #f7fcf8;
}

.ozb-ge-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	line-height: 1.2;
}

.ozb-ge-summary {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.ozb-ge-summary-title {
	overflow: hidden;
	font-size: 12px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ozb-ge-summary-meta {
	color: #a05b00;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: .45px;
	text-transform: uppercase;
}

.ozb-engrave-block.is-complete .ozb-ge-summary-meta {
	color: #25823f;
}

.ozb-ge-toggle,
.ozb-ge-done {
	flex: 0 0 auto;
	appearance: none;
	margin: 0;
	padding: 4px 8px;
	border: 1px solid #17824c;
	border-radius: 4px;
	background: #fff;
	color: #0a7142;
	font-size: 10px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.ozb-ge-toggle:hover,
.ozb-ge-done:hover {
	background: #edf8f1;
	color: #075b35;
}

.ozb-ge-toggle:focus-visible,
.ozb-ge-done:focus-visible,
.ozb-ge-fix-choice:focus-visible,
.ozb-ge-decision-input:focus-visible + span {
	outline: 2px solid #222;
	outline-offset: 2px;
}

.ozb-ge-done:disabled {
	border-color: #ccc;
	background: #eee;
	color: #888;
	cursor: not-allowed;
}

.ozb-ge-editor {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e4d6bf;
}

.ozb-ge-decision {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ozb-ge-decision legend {
	margin: 0;
	color: #222;
	font-size: 12px;
	font-weight: 750;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

.ozb-ge-decision-help {
	display: block;
	margin: 2px 0 7px;
	color: #6a6257;
	font-size: 9px;
	line-height: 1.3;
}

.ozb-ge-decision-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

.ozb-ge-decision-option {
	position: relative;
	display: block;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.ozb-ge-decision-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ozb-ge-decision-option > span {
	display: grid;
	grid-template-columns: 13px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-content: center;
	column-gap: 7px;
	row-gap: 1px;
	min-width: 0;
	min-height: 46px;
	box-sizing: border-box;
	padding: 6px 8px;
	border: 1px solid #d4d4d4;
	border-radius: 5px;
	background: #fff;
	color: #333;
	font-size: 10px;
	line-height: 1.15;
}

.ozb-ge-decision-option > span::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: center;
	width: 11px;
	height: 11px;
	border: 2px solid #aaa;
	border-radius: 50%;
	background: #fff;
}

.ozb-ge-decision-option > span strong {
	grid-column: 2;
	min-width: 0;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.12;
}

.ozb-ge-decision-option > span small {
	grid-column: 2;
	min-width: 0;
	color: #777;
	font-size: 9px;
	line-height: 1.15;
	white-space: normal;
	overflow-wrap: anywhere;
}

.ozb-ge-decision-input:checked + span {
	border-color: #25823f;
	background: #edf8f1;
	box-shadow: 0 0 0 1px #25823f;
}

.ozb-ge-decision-input:checked + span::before {
	border-color: #25823f;
	background: #25823f;
	box-shadow: inset 0 0 0 3px #fff;
}

.ozb-ge-engraving-fields {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e7e1d7;
}

.ozb-ge-field {
	display: block;
	margin: 0;
}

.ozb-ge-field > span {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 5px;
	margin: 0 0 3px;
	color: #555;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .35px;
	text-transform: uppercase;
}

.ozb-ge-field > span small {
	color: #777;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.ozb-engrave-block .ozb-ge-name,
.ozb-engrave-block .ozb-ge-font {
	width: 100%;
	height: 32px;
	box-sizing: border-box;
	margin: 0;
	padding: 4px 8px;
	font-size: 12px;
}

.ozb-ge-extra {
	margin-top: 7px;
}

.ozb-ge-options {
	display: grid;
	grid-template-columns: minmax(86px, .8fr) minmax(105px, 1.2fr);
	gap: 7px;
	align-items: end;
}

.ozb-ge-preview-field {
	min-width: 0;
}

.ozb-engrave-block .ozb-ge-preview {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	height: 46px !important;
	min-height: 46px;
	box-sizing: border-box;
	padding: 5px 7px;
	border: 1px solid #d4d4d4;
	border-radius: 3px;
	background: #fff;
	line-height: 1.2 !important;
	overflow: hidden;
}

.ozb-engrave-block .ozb-ge-preview-text {
	display: inline-block;
	flex: 0 0 auto;
	max-width: none;
	line-height: 1.2 !important;
	white-space: nowrap;
}

.ozb-engrave-block .ozb-ge-preview.hublland .ozb-ge-preview-text {
	font-family: hublland, cursive;
	font-size: 25px !important;
}

.ozb-engrave-block .ozb-ge-preview.arial .ozb-ge-preview-text {
	font-family: Arial, sans-serif;
	font-size: 14px !important;
}

.ozb-ge-confirm-label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 7px 0 0;
	color: #444;
	font-size: 10px;
	line-height: 1.25;
}

.ozb-ge-confirm-label input {
	margin: 0;
}

.ozb-ge-editor-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 7px;
}

.ozb-ge-save-status {
	display: block;
	min-width: 92px;
	min-height: 14px;
	color: #777;
	font-size: 10px;
	line-height: 14px;
	text-align: right;
}

.ozb-ge-save-status.is-error {
	color: #b42318;
	font-weight: 700;
}

.ozb-ge-required-note {
	margin: 7px 0 0;
	padding: 6px 7px;
	border-radius: 4px;
	background: #fff1d7;
	color: #7a4500;
	font-size: 9px;
	font-weight: 650;
	line-height: 1.3;
}

.ozb-ge-checkout-note {
	margin: 0 0 10px;
	padding: 9px 10px;
	border: 1px solid #e4b04d;
	border-radius: 5px;
	background: #fff7e8;
	color: #6f4300;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
	text-align: left;
}

.ozb-ge-fix-choice {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #0a7142;
	font: inherit;
	font-weight: 750;
	text-decoration: underline;
	cursor: pointer;
}

body.ozb-ge-choice-needed a.checkout-button,
body.ozb-ge-choice-needed button.checkout,
body.ozb-ge-choice-needed button.checkout-button,
body.ozb-ge-choice-needed .woocommerce-mini-cart__buttons a.checkout,
body.ozb-ge-choice-needed .woocommerce-mini-cart__buttons a.button.checkout.wc-forward,
body.ozb-ge-choice-needed .btn-afterpay_express,
body.ozb-ge-choice-needed .wc-stripe-cart-checkout-button {
	opacity: .45;
	filter: grayscale(.65);
}

body.ozb-ge-choice-needed .ppc-button-wrapper {
	opacity: .45;
	filter: grayscale(.65);
	pointer-events: none;
}

body.ozb-ge-choice-needed .wc-stripe-cart-checkout-container {
	opacity: .45;
	filter: grayscale(.65);
	pointer-events: none;
}

.ozb-ge-meta-required {
	color: #9b4f00;
	font-weight: 700;
}

@media (max-width: 849px) {
	.ozb-engrave-block { width: 100%; max-width: 340px; }
	.woocommerce-cart-form .ozb-engrave-block { width: auto; max-width: 275px; }
	.ozb-ge-options { grid-template-columns: 96px minmax(110px, 1fr); }
}

@media (min-width: 850px) and (max-width: 899px) {
	.woocommerce-cart-form .ozb-engrave-block { max-width: 240px; }
}

@media (max-width: 380px) {
	.ozb-ge-decision-options { grid-template-columns: 1fr; }
	.ozb-ge-options { grid-template-columns: 1fr; }
	.ozb-ge-confirm-label { font-size: 11px; }
}
