/* -------------------------------------------------------------------------
 * Shared subscription cart / mini-cart styles
 * ------------------------------------------------------------------------- */

.wcsatt-sub-options {
	display: none !important;
}

/* Refill addon subscription — conversion-focused cart line */
.calio-refill-cart {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: #223565;
}

.calio-refill-cart__pill {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: #f9edc8;
	margin-bottom: 2px;
}

.calio-refill-cart__pill-hl {
	font-weight: 700;
	margin-left: 4px;
}

.calio-refill-cart__note {
	color: #6a7181;
}

.calio-refill-cart__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
}

/* Normalise wc_price output to the block font; the <del> tag provides the only strike. */
.calio-refill-cart .amount {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: inherit !important;
}

.calio-refill-cart__price-before .amount {
	color: #9aa3b8 !important;
}

.calio-refill-cart__price-now .amount,
.calio-refill-cart__price-pack-now .amount {
	font-weight: 700 !important;
}

/* Cart page only: the recurring block (in the name column) replaces the native
   per-unit price column, so hide it. NOT scoped to the mini cart, where the block
   itself is rendered inside .product-price. */
table.shop_table .calio-subscription-item .product-price {
	display: none !important;
}

@media only screen and (min-width: 768px) {
	table.shop_table .calio-subscription-item .product-price {
		display: table-cell !important;
	}
}

@media only screen and (max-width: 768px) {
	.woocommerce-cart .calio-subscription-item .col-product-info {
		flex-basis: 100% !important;
	}
}

/* Struck "Pris pr. pakke" line (the <del> provides the strike). */
.calio-refill-cart__price-pack .amount {
	color: #9aa3b8 !important;
}

/* Product page: WCS-ATT's own subscribe prompt is replaced by the custom tabs. */
.wcsatt-options-product-prompt {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Magnetic nosestrips bundle layout
 * ------------------------------------------------------------------------- */

.calio-bundle,
.calio-bundle * {
	box-sizing: border-box;
}

.calio-bundle input[type="checkbox"] {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.calio-bundle {
	margin: 0 0 22px;
}

.calio-bundle__stack {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.calio-bundle-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #ffffff;
}

.calio-bundle-card.is-selected {
	border-color: #eee;
}

.calio-bundle-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.calio-bundle-card__left {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	flex: 1 1 auto;
	min-width: 0;
}

.calio-bundle-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	flex: 1 1 auto;
	cursor: pointer;
}

.calio-bundle-card__title {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0;
	color: #223565;
}

.calio-bundle-card__desc {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.45;
	color: #6a7181;
}

.calio-bundle-card__price {
	flex: 0 0 auto;
	text-align: right;
	white-space: nowrap;
}

.calio-bundle-card__price .price,
.calio-bundle-card__price .amount {
	font-size: 18px !important;
	line-height: 1.1 !important;
	font-weight: 700 !important;
	color: #223565 !important;
}

.calio-bundle-card__price del .amount {
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #9aa3b8 !important;
}

.calio-bundle-card__price ins {
	background: transparent;
	text-decoration: none;
}

.calio-check {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: 0 0 auto;
}

.calio-check__box {
	border: 1px solid #e8aa7d;
	border-radius: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	transition: all 0.2s ease;
}

.calio-check__tick {
	line-height: 1;
	font-weight: 700;
	color: #ffffff;
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.2s ease;
}

.calio-check--refill {
	margin-top: 3px;
}

.calio-check--refill .calio-check__box {
	width: 22px;
	height: 22px;
}

.calio-check--refill .calio-check__tick {
	font-size: 15px;
}

.calio-check--small .calio-check__box {
	width: 20px;
	height: 20px;
}

.calio-check--small .calio-check__tick {
	font-size: 11px;
}

.calio-check input:checked + .calio-check__box {
	background: #e8aa7d;
	border-color: #e8aa7d;
}

.calio-check input:checked + .calio-check__box .calio-check__tick {
	opacity: 1;
	transform: scale(1);
}

.calio-subscribe {
	width: 100%;
	padding: 14px;
	border-radius: 6px;
	background: #f3f4f69e;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.calio-subscribe__header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
}

.calio-subscribe__header-left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.calio-subscribe__title-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	cursor: pointer;
}

.calio-subscribe__title {
	font-size: 17px;
	line-height: 1.3;
	font-weight: 700;
	color: #223565;
}

.calio-subscribe__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 6px;
	border-radius: 4px;
	background: #e5a12e;
	color: #ffffff;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	white-space: nowrap;
}

.calio-subscribe__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.calio-subscribe__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.calio-subscribe__row--meta {
	justify-content: flex-start;
	margin-top: 5px;
}

.calio-subscribe__fake-input-wrap {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 10px !important;
	width: 100% !important;
}

.calio-subscribe__fake-input {
	width: auto !important;
	min-width: 96px !important;
	min-height: unset !important;
	height: 32px !important;
	padding: 0 8px !important;
	border: 1px solid #d6deeb !important;
	border-radius: 4px !important;
	background: #ffffff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #223565 !important;
	outline: none !important;
	box-shadow: none !important;
	flex: 0 0 96px !important;
	appearance: auto !important;
	-webkit-appearance: menulist !important;
}

.calio-subscribe__inline-text {
	font-size: 15px;
	color: #30426d;
	white-space: nowrap;
	flex: 0 0 auto;
}

.calio-subscribe__pill {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: #f9edc8;
	font-size: 14px;
	color: #223565;
}

.calio-subscribe__subscription-price {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: #223565;
}

.calio-subscribe__subscription-price-before {
	font-size: 15px;
	line-height: 1.1;
	font-weight: 500;
	text-decoration: line-through;
	opacity: 0.55;
}

.calio-subscribe__subscription-price-before .amount {
	color: inherit;
	font-weight: inherit;
}

.calio-subscribe__subscription-price-main {
	font-size: 22px;
	line-height: 1.1;
	font-weight: 700;
}

.calio-subscribe__subscription-price-main .amount {
	color: inherit;
	font-weight: inherit;
}

.calio-subscribe__subscription-price-suffix {
	font-size: 14px;
	line-height: 1.2;
	font-weight: 500;
}

.calio-subscribe__benefits {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.calio-subscribe__benefit {
	font-size: 14px;
	line-height: 1.45;
	color: #223565;
}

.calio-subscribe__disclaimer {
	font-size: 13px;
	line-height: 1.5;
	color: #6d7890;
}

.calio-subscribe__disclaimer a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.calio-order-box {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px;
	border: 1px solid #eee;
	border-radius: 6px;
	background: #fff;
}

.calio-order-box__section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.calio-order-box__section-title {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;
	color: #223565;
}

.calio-order-box__table {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.calio-order-box__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.calio-order-box__label {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
}

.calio-order-box__value {
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	text-align: right;
	white-space: nowrap;
}

.calio-order-box__value .amount {
	font-weight: 400;
}

.calio-order-box__row--total .calio-order-box__value {
	font-weight: 400;
}

.calio-order-box__usps {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	padding-top: 8px;
	margin-top: 2px;
	color: #8a92a3;
}

.calio-order-box__usp {
	font-size: 13px;
	line-height: 1.4;
	color: #8a92a3;
}

/* -------------------------------------------------------------------------
 * Mobile adjustments
 * ------------------------------------------------------------------------- */

@media (max-width: 767px) {
	/* Force the mobile cart price column hidden (overrides the un-!important theme rule). */
	.woocommerce-page table.shop_table .product-price {
		display: none !important;
	}

	.calio-bundle-card {
		padding: 14px;
	}

	.calio-bundle-card__top {
		align-items: flex-start;
	}

	.calio-bundle-card__title {
		font-size: 18px;
	}

	.calio-bundle-card__desc {
		font-size: 14px;
	}

	.calio-subscribe {
		padding: 12px;
	}

	.calio-subscribe__header {
		align-items: flex-start;
	}

	.calio-subscribe__row {
		flex-wrap: wrap;
	}

	.calio-subscribe__fake-input-wrap {
		flex-wrap: nowrap !important;
	}

	.calio-subscribe__inline-text {
		white-space: normal;
	}

	.calio-order-box {
		padding: 14px;
	}
}

/* -------------------------------------------------------------------------
 * Default subscription flow (mouth tape) — product page tabs + cart USPs
 * Migrated from WP "Additional CSS". The quantity-hider rule
 * ([aria-label*="Abonnement"] ~ .quantity) was intentionally dropped so
 * subscription cart items keep their normal quantity selector.
 * ------------------------------------------------------------------------- */

.subscription-image img {
	border-radius: 4px;
}

/* Subscription tab without the product image — content fills the row. */
.subscription-pane .subscription-content--no-image {
	display: block;
}

/* Subscription tab reuses the refill card; the title-wrap isn't a clickable label here. */
.calio-subscribe--tab .calio-subscribe__title-wrap {
	cursor: default;
}

.subscription-right h6 {
	margin-bottom: 5px;
	font-size: 20px;
}

.subscription-price {
	display: flex;
	align-items: center;
}

span.subscription-price-inner,
span.subscription-price-inner .amount {
	color: #0A6DFF;
	font-weight: 600;
	margin-left: 3px;
}

span.subscription-price-inner .amount {
	font-size: 120%;
}

.subscription-lowest-price {
	color: #fff;
	background-color: var(--minimog-color-heading);
	border-radius: 4px;
	text-transform: uppercase;
	font-weight: 600;
	padding: 4px 5px;
	font-size: 60%;
	margin-left: 10px;
	line-height: 1.25;
}

.subscription-usp {
	display: flex;
	align-items: center;
	margin: 4px 0;
}

.subscription-usp-text {
	margin-left: 5px;
}

.fly-cart-body .subscription-usps {
	margin-left: -10px;
}

.fly-cart-body .subscription-usp {
	font-size: 90%;
	margin: 0;
}

@media only screen and (max-width: 768px) {
	.subscription-image {
		flex-basis: 15%;
		margin-right: 15px;
	}

	.subscription-usps {
		margin: 5px 0;
	}

	.subscription-usp {
		margin: 0;
	}

	.subscription-usp-text {
		font-size: 90%;
	}

	.subscription-right h6 {
		font-size: 18px !important;
	}
}

/* Cart page: right-align the native WooCommerce Subscriptions price (desktop).
   .subscription-price is display:flex globally, so push its content to the end. */
@media only screen and (min-width: 768px) {
	.woocommerce-cart .subscription-price {
		display: flex;
		justify-content: flex-end;
		text-align: right;
	}
}

/* -------------------------------------------------------------------------
 * Recurring-total rows (migrated from WP Additional CSS):
 * style the "Løbende betaling" subtotal and hide the extra recurring rows.
 * ------------------------------------------------------------------------- */

body.woocommerce-cart tr.cart-subtotal.recurring-total > th {
	max-width: unset;
	font-weight: 600;
}

/* Right-align only on desktop. */
@media only screen and (min-width: 768px) {
	body.woocommerce-cart tr.cart-subtotal.recurring-total > th {
		flex-basis: 80%;
		text-align: right;
	}
}

.fly-cart-wrap .shipping.recurring-total,
.woocommerce-cart .shipping.recurring-total {
	display: none;
}

.fly-cart-wrap tr.order-total.recurring-total,
.woocommerce-cart tr.order-total.recurring-total {
	display: none;
}

.fly-cart-wrap tr.recurring-totals,
.woocommerce-cart tr.recurring-totals {
	display: none;
}

.woocommerce-checkout tr.cart-subtotal.recurring-total,
.woocommerce-checkout .recurring-totals {
	display: none;
}

.woocommerce-checkout tr.order-total.recurring-total .includes_tax {
	display: none;
}
