.ozb-gift-choice-block {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d8d8d8;
	border-left: 5px solid #dfa313;
	border-radius: 8px;
	background: #fffaf0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
	text-align: left;
	container-type: inline-size;
}

.woocommerce-cart-form tr.cart_item.has-ozb-fgc-companion-row > td {
	padding-bottom: 8px;
	border-bottom: 0;
}

.woocommerce-cart-form tr.ozb-fgc-companion-row > td.ozb-fg-customizer-cell {
	width: 100%;
	padding: 0 0 16px !important;
	border-top: 0;
}

.woocommerce-cart-form tr.ozb-fgc-companion-row .ozb-gift-choice-block {
	width: 100%;
	max-width: none;
}

.ozb-gift-choice-block.is-complete {
	padding-top: 9px;
	padding-bottom: 9px;
	border-color: #cfe1d4;
	border-left-color: #238b45;
	background: #f4fbf6;
}

.ozb-fgc-heading,
.ozb-fgc-summary {
	display: flex;
	min-width: 0;
}

.ozb-fgc-heading {
	align-items: center;
	gap: 10px;
}

.ozb-fgc-summary {
	flex: 1 1 auto;
	flex-direction: column;
	line-height: 1.15;
}

.ozb-fgc-summary-title {
	font-size: 15px;
	letter-spacing: .02em;
	color: #292929;
	white-space: normal;
}

.ozb-fgc-summary-meta {
	margin-top: 3px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #a05b00;
}

.is-complete .ozb-fgc-summary-meta {
	color: #237c39;
}

.ozb-fgc-toggle {
	flex: 0 0 auto;
	min-height: 34px;
	padding: 5px 12px;
	border: 1px solid #16864b;
	border-radius: 5px;
	background: transparent;
	color: #137543;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.ozb-fgc-options {
	display: grid;
	grid-template-columns: minmax(190px, .85fr) minmax(0, 2.5fr);
	grid-template-rows: auto auto 1fr;
	column-gap: 20px;
	align-items: center;
	min-width: 0;
	margin: 10px 0 0;
	padding: 10px 0 0;
	border: 0;
	border-top: 1px solid #ead8b5;
}

.ozb-fgc-options[hidden] {
	display: none !important;
}

.ozb-fgc-options legend {
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	margin: 0 0 3px;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
}

.ozb-fgc-help {
	grid-column: 1;
	grid-row: 2;
	margin: 0;
	font-size: 11px;
	line-height: 1.35;
	color: #656565;
}

.ozb-fgc-grid {
	display: grid;
	grid-column: 2;
	grid-row: 1 / 4;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	align-self: stretch;
}

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

.ozb-fgc-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ozb-fgc-option-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 46px;
	padding: 7px 4px;
	border: 1px solid #d4d4d4;
	border-radius: 7px;
	background: #fff;
	line-height: 1.1;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ozb-fgc-colour-dot {
	display: block;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--ozb-fgc-colour, #d6d6d6);
	box-shadow: 0 0 0 1px #aeb2b6;
}

.ozb-fgc-option-card strong {
	min-width: 0;
	font-size: 11px;
	line-height: 1.1;
	text-align: left;
	overflow-wrap: normal;
	word-break: normal;
	white-space: nowrap;
}

.ozb-fgc-option-card small {
	font-size: 9px;
	color: #777;
}

.ozb-fgc-input:checked + .ozb-fgc-option-card {
	border-color: #238b45;
	background: #eef8f1;
	box-shadow: 0 0 0 1px #238b45;
}

.ozb-fgc-input:focus-visible + .ozb-fgc-option-card {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

.ozb-fgc-option.is-unavailable {
	cursor: not-allowed;
}

.ozb-fgc-option.is-unavailable .ozb-fgc-option-card {
	opacity: .5;
	background: #f1f1f1;
}

.ozb-fgc-status {
	grid-column: 1;
	grid-row: 3;
	align-self: end;
	min-height: 17px;
	margin: 5px 0 0;
	font-size: 11px;
	font-weight: 600;
	color: #8a5400;
}

.ozb-fgc-status.is-error {
	color: #b42318;
}

.ozb-fg-choice-meta-required {
	font-weight: 700;
	color: #a05b00;
}

.ozb-fg-choice-cart-link {
	font-weight: 700;
	color: #087944;
	text-decoration: underline;
}

body.ozb-fg-choice-needed .wc-proceed-to-checkout a.checkout-button,
body.ozb-fg-choice-needed .woocommerce-mini-cart__buttons a.checkout {
	opacity: .55 !important;
	cursor: not-allowed !important;
}

body.ozb-fg-choice-needed .ppc-button-wrapper,
body.ozb-fg-choice-needed .wc-stripe-cart-checkout-button,
body.ozb-fg-choice-needed .wc-stripe-checkout-banner-gateway,
body.ozb-fg-choice-needed .afterpay-express-button,
body.ozb-fg-choice-needed #wc-stripe-payment-request-button {
	opacity: .55 !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}

.ozb-fgc-checkout-note {
	margin: 0 0 10px;
	padding: 10px 11px;
	border-left: 4px solid #dfa313;
	border-radius: 4px;
	background: #fff8e7;
	color: #5c3a00;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.ozb-fgc-checkout-note button {
	margin-left: 5px;
	padding: 2px 7px;
	border: 1px solid #9b6800;
	border-radius: 3px;
	background: #fff;
	color: #6f4800;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

@container (max-width: 650px) {
	.ozb-fgc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container (max-width: 650px) {
	.ozb-fgc-options {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		row-gap: 5px;
	}

	.ozb-fgc-options legend,
	.ozb-fgc-help,
	.ozb-fgc-grid,
	.ozb-fgc-status {
		grid-column: 1;
		grid-row: auto;
	}

	.ozb-fgc-grid {
		margin-top: 4px;
	}
}

@container (max-width: 460px) {
	.ozb-fgc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ozb-fgc-option-card {
		min-height: 44px;
	}
}

@container (max-width: 360px) {
	.ozb-fgc-heading {
		align-items: flex-start;
	}

	.ozb-fgc-summary-title {
		font-size: 13px;
	}
}

@media (max-width: 549px) {
	.woocommerce-cart-form tr.ozb-fgc-companion-row > td.ozb-fg-customizer-cell {
		padding-bottom: 13px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ozb-fgc-option-card {
		transition: none;
	}
}
