.woocommerce-variation-add-to-cart:has(> .opta-obt) {
    row-gap: 25px;
}
.opta-obt {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    clear: both;
    margin-bottom: 40px;
    background: #f8f9f6;
    padding: 12px 20px;
    border: 1px solid #d9d9d7;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Header */
.opta-obt__heading {
    margin: -12px -20px 7px;
    padding: 8px 20px;
    background: #342e2e;
    color: #fff;
    border-radius: 3px 3px 0 0;
    font-size: 0.96em;
    font-weight: 700;
    line-height: 1.45;
}
.opta-obt__note {
	margin: -1px 0 9px;
	font-size: 0.9em;
	line-height: 1.45;
	color: inherit;
	opacity: 0.76;
}
/* Produkt */
.opta-obt__item {
    display: grid;
    grid-template-columns: 20px 43px minmax(0, 1fr) minmax(72px, auto);
    align-items: center;
    column-gap: 10px;

    min-height: 70px;
    padding: 10px 0;

    border: 0;
    box-sizing: border-box;
}
/* Kun linje MELLOM produktene */
.opta-obt__item + .opta-obt__item {
    border-top: 1px solid rgba(0, 0, 0, 0.09);
}
.opta-obt__item.is-unavailable {
	opacity: 0.58;
}
.opta-obt__check {
	display: flex;
	align-items: center;
	justify-content: center;
}
.opta-obt__checkbox {
	width: 15px;
	height: 15px;
	margin: 0;
	cursor: pointer;
}
.opta-obt__checkbox:disabled {
	cursor: not-allowed;
}
.opta-obt__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
}
.opta-obt__image {
	display: block;
	max-width: 50px;
	max-height: 50px;
	width: auto;
	height: auto;
	object-fit: contain;
	border:1px solid #dbdbdb;
}
.opta-obt__content {
	min-width: 0;
	font-size: 0.91em;
	line-height: 1.42;
}
.opta-obt__title {
    display: inline;
    font-weight: 500;
    color: #222 !important;
    text-decoration: none;
}
.opta-obt__title:hover {
    color: #111 !important;
    text-decoration: underline;
}
.opta-obt__stock {
	margin-top: 2px;
	font-size: 0.92em;
}
.opta-obt__stock .stock,
.opta-obt__stock p {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: inherit;
}
.opta-obt__choose-variation {
	opacity: 0.7;
}
.opta-obt__price {
	align-self: center;
	min-width: 72px;
	text-align: right;
	font-size: 0.9em;
	line-height: 1.35;
	white-space: nowrap;
}
.opta-obt__price .opta-obt__current-price,
.opta-obt__price del {
	display: block;
}
.opta-obt__price .opta-obt__current-price {
	font-weight: 500;
}
.opta-obt__price del {
	margin-top: 1px;
	opacity: 0.5;
	font-size: 0.94em;
}
.opta-obt__price .woocommerce-price-suffix {
	display: block;
	margin-top: 1px;
	font-size: 0.82em;
	opacity: 0.68;
}
.opta-obt__price ins,
.opta-obt-main-price ins {
	text-decoration: none;
}
.opta-obt__variation-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 6px 0 3px;
}
.opta-obt__variation-field {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	font-size: 0.9em;
	font-weight: 400;
}
.opta-obt__variation-field > span {
	opacity: 0.76;
}
.opta-obt__variation-field select {
	width: auto;
	min-width: 86px;
	max-width: 150px;
	height: 30px;
	min-height: 30px;
	padding: 2px 25px 2px 8px;
	margin: 0;
	font-size: 0.95em;
	line-height: 1.2;
}
.opta-obt__message {
	padding: 8px 10px;
	margin-top: 8px;
	background: rgba(181, 37, 37, 0.06);
	border-left: 3px solid #b52525;
	font-size: 0.88em;
	line-height: 1.4;
}
.opta-obt__message[hidden] {
	display: none;
}
/* Totalsum i kompakt/mobil visning. JavaScript viser raden først når minst ett tillegg er valgt. */
.opta-obt__total {
	display: none;
}
.opta-obt__total[hidden],
.opta-obt__total-regular[hidden] {
	display: none !important;
}
@media (max-width: 1100px) {
	.opta-obt__total:not([hidden]) {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		margin-top: 8px;
		padding-top: 12px;
		border-top: 1px solid rgba(0, 0, 0, 0.09);
	}
	.opta-obt__total-label {
		font-size: 0.92em;
		font-weight: 700;
		line-height: 1.35;
	}
	.opta-obt__total-prices {
		display: inline-flex;
		align-items: baseline;
		justify-content: flex-end;
		gap: 8px;
		white-space: nowrap;
		line-height: 1.35;
	}
	.opta-obt__total-regular,
	.opta-obt__total-regular .woocommerce-Price-amount {
		color: #777;
		opacity: 0.72;
		font-size: 0.9em;
		font-weight: 400;
	}
	.opta-obt__total-current,
	.opta-obt__total-current .woocommerce-Price-amount {
		color: #222;
		font-size: 1em;
		font-weight: 700;
	}
	.opta-obt__total.has-discount .opta-obt__total-current,
	.opta-obt__total.has-discount .opta-obt__total-current .woocommerce-Price-amount {
		color: var(--opta-tilbud, #d93025) !important;
	}
}
.opta-obt-main-price[aria-live="polite"] {
	display: inline;
}
@media (max-width: 480px) {
	.opta-obt__item {
		grid-template-columns: 18px 38px minmax(0, 1fr) auto;
		column-gap: 8px;
	}
	.opta-obt__image-wrap {
		width: 38px;
		height: 38px;
	}
	.opta-obt__image {
		max-width: 38px;
		max-height: 38px;
	}
	.opta-obt__variation-fields {
		display: grid;
		grid-template-columns: 1fr;
	}
	.opta-obt__variation-field {
		justify-content: space-between;
	}
	.opta-obt__variation-field select {
		max-width: 58%;
	}
}
/* UX Builder shortcode target. The surrounding UX Builder element controls
 * padding, background, border and radius; the module itself drops its automatic
 * outer spacing when it has been moved into the shortcode position. */
.opta-obt-shortcode-target {
	width: 100%;
	max-width: 100%;
}
.opta-obt-shortcode-target:empty {
	display: none;
}
.opta-obt-shortcode-target > .opta-obt {
	margin: 0;
}
/* Rabattpris på hovedprodukt */
.single-product .product-page-price:has(del) ins,
.single-product .product-page-price:has(del) ins .amount,
.single-product .product-page-price:has(del) ins bdi {
    color: #d93025 !important;
}
/* Rabattpris i Bought Together */
.opta-obt__price:has(del) .opta-obt__current-price,
.opta-obt__price:has(del) .opta-obt__current-price .amount {
    color: #d93025 !important;
}