.ja-cbf {
	--ja-cbf-bg: #f3ffee;
	--ja-cbf-text: #023427;
	--ja-cbf-muted: #51645c;
	--ja-cbf-accent: #72af5e;
	--ja-cbf-accent-dark: #0e342b;
	--ja-cbf-badge: #e50b00;
	--ja-cbf-border: #d9e9d2;
	background: var(--ja-cbf-bg);
	color: var(--ja-cbf-text);
	padding: 30px 26px;
	width: 100%;
	box-sizing: border-box;
}

.ja-cbf,
.ja-cbf * {
	box-sizing: border-box;
}

.ja-cbf__items {
	display: grid;
	gap: 0;
}

.ja-cbf__row {
	display: grid;
	grid-template-columns: minmax(280px, 1.3fr) minmax(240px, 1fr) minmax(170px, auto);
	align-items: center;
	min-height: 111px;
	column-gap: 34px;
}

.ja-cbf__type {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ja-cbf__type-icon {
	width: 75px;
	height: 75px;
	object-fit: contain;
	flex: 0 0 75px;
}

.ja-cbf__type-copy {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.ja-cbf__type-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ja-cbf-text);
	text-transform: uppercase;
}

.ja-cbf__roll-size {
	display: block;
	font-size: 18px;
	line-height: 1.2;
	color: #000;
}

.ja-cbf__price {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.ja-cbf__price-main {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--ja-cbf-text);
}

.ja-cbf__price-main .price {
	display: contents;
}

.ja-cbf__price-main .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.ja-cbf__price-main del,
.ja-cbf__price-main del .woocommerce-Price-amount {
	font-size: 24px;
	color: var(--ja-cbf-muted);
}

.ja-cbf__price-main ins {
	text-decoration: none;
}

.ja-cbf__price-main small,
.ja-cbf__price-main .woocommerce-price-suffix {
	display: block;
	flex-basis: 100%;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ja-cbf-muted);
}

.ja-cbf__roll-complete {
	position: absolute;
	left: calc(100% + 7px);
	top: 38px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ja-cbf-text);
	white-space: nowrap;
}

.ja-cbf__roll-m2-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 96px;
	height: 31px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--ja-cbf-badge);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.ja-cbf__roll-m2-price .woocommerce-Price-amount,
.ja-cbf__roll-m2-price .woocommerce-Price-currencySymbol {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.ja-cbf__quantity {
	display: grid;
	justify-items: start;
	gap: 6px;
}

.ja-cbf__quantity-label {
	font-size: 13px;
	line-height: 1.2;
	color: var(--ja-cbf-text);
}

.ja-cbf__stepper {
	display: grid;
	grid-template-columns: 45px 76px 45px;
	align-items: center;
	gap: 8px;
	width: max-content;
	overflow: visible;
}

.ja-cbf__qty-btn {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 45px !important;
	min-width: 45px !important;
	max-width: 45px !important;
	height: 49px !important;
	min-height: 49px !important;
	padding: 0 !important;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--ja-cbf-accent-dark) !important;
	font-size: 20px;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.12s ease, color 0.12s ease, opacity 0.12s ease;
	flex: 0 0 45px !important;
}

.ja-cbf__qty-btn:hover,
.ja-cbf__qty-btn:focus-visible {
	background: var(--ja-cbf-accent-dark) !important;
	color: #fff !important;
	outline: none;
}

.ja-cbf__qty-btn:disabled {
	background: #fff !important;
	color: var(--ja-cbf-muted) !important;
	opacity: 0.45;
	cursor: not-allowed;
}

.ja-cbf__qty-input {
	box-sizing: border-box !important;
	width: 76px !important;
	min-width: 76px !important;
	max-width: 76px !important;
	height: 49px !important;
	min-height: 49px !important;
	margin: 0;
	padding: 0 8px !important;
	border: 1px solid var(--ja-cbf-border);
	border-radius: 0;
	background: #fff;
	color: var(--ja-cbf-text);
	font: inherit;
	font-size: 18px;
	line-height: 1;
	text-align: center;
	box-shadow: none;
	appearance: textfield;
	flex: 0 0 76px !important;
}

.ja-cbf__qty-input::-webkit-outer-spin-button,
.ja-cbf__qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ja-cbf__stock {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--ja-cbf-accent-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.ja-cbf__notice {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
}

.ja-cbf__notice--error {
	color: #b42318;
}

.ja-cbf__notice--success {
	color: var(--ja-cbf-accent-dark);
}

.ja-cbf__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 192px;
	min-height: 49px;
	margin-top: 15px;
	padding: 12px 30px;
	border: 0;
	border-radius: 20px;
	background: var(--ja-cbf-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.ja-cbf__submit:hover,
.ja-cbf__submit:focus-visible {
	background: var(--ja-cbf-accent-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
	outline: none;
}

.ja-cbf__submit:active {
	transform: translateY(0);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.ja-cbf__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.ja-cbf__submit-icon {
	width: 21px;
	height: 21px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.ja-cbf__submit-total {
	font-weight: 700;
}

.ja-cbf__submit-total:empty {
	display: none;
}

@media (max-width: 900px) {
	.ja-cbf {
		padding: 22px 18px;
	}

	.ja-cbf__items {
		gap: 14px;
	}

	.ja-cbf__row {
		grid-template-columns: 1fr;
		min-height: 0;
		gap: 11px;
		padding: 15px 14px;
		border: 1px solid var(--ja-cbf-accent);
		border-radius: 8px;
	}

	.ja-cbf__row:last-child {
		padding-bottom: 15px;
		border: 1px solid var(--ja-cbf-accent);
	}

	.ja-cbf__price-main {
		font-size: 28px;
	}

	.ja-cbf__roll-complete {
		position: static;
		flex-basis: 100%;
	}

	.ja-cbf__roll-m2-price {
		margin-left: auto;
	}

	.ja-cbf__quantity {
		justify-items: start;
	}

	.ja-cbf__submit {
		width: auto;
		min-width: 183px;
		margin-top: 15px;
	}
}

@media (max-width: 520px) {
	.ja-cbf {
		padding: 16px 14px;
	}

	.ja-cbf__row {
		gap: 12px;
		padding: 14px 12px;
	}

	.ja-cbf__type {
		gap: 10px;
	}

	.ja-cbf__type-icon {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}

	.ja-cbf__type-copy,
	.ja-cbf__type-title {
		min-width: 0;
	}

	.ja-cbf__type-title {
		font-size: 15px;
		line-height: 1.15;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.ja-cbf__roll-size {
		font-size: 16px;
	}

	.ja-cbf__price {
		flex-wrap: wrap;
	}

	.ja-cbf__price-main {
		font-size: 28px;
	}

	.ja-cbf__price--rollo {
		display: grid;
		grid-template-columns: minmax(120px, 1fr) auto;
		column-gap: 8px;
		align-items: start;
		min-height: 0;
		padding-right: 0;
	}

	.ja-cbf__price--rollo .ja-cbf__price-main {
		display: block;
		grid-column: 1;
		min-width: 120px;
	}

	.ja-cbf__price--rollo .ja-cbf__price-main .woocommerce-Price-amount,
	.ja-cbf__price--rollo .ja-cbf__price-main .woocommerce-Price-currencySymbol {
		white-space: nowrap;
	}

	.ja-cbf__price--rollo .woocommerce-price-suffix {
		display: block;
		flex-basis: auto;
		margin-top: 3px;
	}

	.ja-cbf__price--rollo .ja-cbf__roll-complete {
		display: block;
		font-size: 15px;
		line-height: 1.1;
		margin-top: 3px;
		white-space: nowrap;
	}

	.ja-cbf__roll-m2-price {
		position: static;
		grid-column: 2;
		grid-row: 1;
		align-self: center;
		min-width: 86px;
		height: 30px;
		margin-top: 6px;
		margin-left: 0;
		padding: 0 10px;
		font-size: 15px;
	}

	.ja-cbf__price--corte .ja-cbf__price-main {
		display: flex;
		flex-wrap: nowrap;
		align-items: baseline;
		gap: 8px;
	}

	.ja-cbf__price--corte .woocommerce-price-suffix {
		display: inline;
		flex-basis: auto;
	}

	.ja-cbf__submit {
		width: auto;
		min-width: 183px;
		font-size: 16px;
	}
}
@media (max-width: 520px) {
	.ja-cbf__type-copy {
		flex: 1 1 auto;
		max-width: calc(100% - 58px);
	}

	.ja-cbf__type-title {
		max-width: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: normal;
	}

	.ja-cbf__price-main del .woocommerce-Price-amount,
	.ja-cbf__price-main ins .woocommerce-Price-amount,
	.ja-cbf__price-main del .woocommerce-Price-currencySymbol,
	.ja-cbf__price-main ins .woocommerce-Price-currencySymbol {
		white-space: nowrap;
	}

	.ja-cbf__price--rollo .ja-cbf__price-main del,
	.ja-cbf__price--rollo .ja-cbf__price-main ins {
		display: block;
		width: max-content;
		max-width: 100%;
	}

	.ja-cbf__price--rollo .ja-cbf__price-main ins {
		margin-top: 2px;
	}

	.ja-cbf__price--rollo .ja-cbf__roll-complete {
		clear: both;
	}

	.ja-cbf__price--corte .ja-cbf__price-main {
		flex-wrap: wrap;
		gap: 5px 8px;
	}

	.ja-cbf__price--corte .ja-cbf__price-main del,
	.ja-cbf__price--corte .ja-cbf__price-main ins {
		white-space: nowrap;
	}

	.ja-cbf__price--corte .ja-cbf__price-main del ~ .woocommerce-price-suffix {
		display: block;
		flex-basis: 100%;
	}
}

@media (max-width: 520px) {
	.ja-cbf__type-title {
		overflow-wrap: break-word;
	}

	.ja-cbf__price--rollo {
		position: relative;
		display: block;
		padding-right: 0;
	}

	.ja-cbf__price--rollo .ja-cbf__price-main {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 3px 5px;
		width: 100%;
		min-width: 0;
	}

	.ja-cbf__price--rollo .ja-cbf__price-main del {
		display: block;
		flex: 0 0 100%;
		width: auto;
		max-width: none;
	}

	.ja-cbf__price--rollo .ja-cbf__price-main ins {
		display: inline-flex;
		flex: 0 0 auto;
		width: auto;
		max-width: none;
		margin-top: 0;
	}

	.ja-cbf__price--rollo .ja-cbf__roll-complete {
		display: inline-flex;
		flex: 0 0 auto;
		clear: none;
		margin-top: 0;
		font-size: 15px;
		line-height: 1;
		white-space: nowrap;
	}

	.ja-cbf__price--rollo .woocommerce-price-suffix {
		display: block;
		flex: 0 0 100%;
		margin-top: 0;
	}

	.ja-cbf__price--rollo .ja-cbf__roll-m2-price {
		position: absolute;
		top: 2px;
		right: 0;
		margin: 0;
	}

	.ja-cbf__price--corte .ja-cbf__price-main {
		display: flex;
		flex-wrap: nowrap;
		align-items: baseline;
		gap: 8px;
	}

	.ja-cbf__price--corte .woocommerce-price-suffix,
	.ja-cbf__price--corte .ja-cbf__price-main del ~ .woocommerce-price-suffix {
		display: inline;
		flex: 0 0 auto;
		flex-basis: auto;
	}
}
