/**
 * BOS Posebna ponuda - storefront styles.
 *
 * Layout inspired by compact "bought together" offer boxes.
 */

.bos-product-offer {
	position: relative;
	margin: 18px 0 20px;
	border: 2px solid #f5c400;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.bos-product-offer__header {
	display: block;
	padding: 13px 15px;
	background: linear-gradient(90deg, #fff8d9, #fffdf3);
	border-bottom: 1px solid #e5e5e5;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bos-product-offer__label {
	display: grid;
	grid-template-columns: auto 60px 1fr;
	grid-template-areas: "check thumb text";
	gap: 4px 10px;
	align-items: start;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 15px;
	cursor: pointer;
	font-weight: 400;
	line-height: 1.4;
}

.bos-product-offer__label input[type="checkbox"] {
	grid-area: check;
	width: 18px;
	height: 18px;
	margin: 4px 0 0;
	cursor: pointer;
	accent-color: #f5c400;
}

.bos-product-offer__image {
	grid-area: thumb;
	width: 60px;
	height: 60px;
	align-self: start;
	margin: 0;
}

.bos-product-offer__thumb,
.bos-product-offer__image img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 1px solid #eee;
	border-radius: 6px;
}

.bos-product-offer__text {
	grid-area: text;
	min-width: 0;
	align-self: center;
}

.bos-product-offer__name {
	display: block;
	color: #111;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.bos-product-offer__price {
	display: block;
	margin-top: 4px;
	color: #111;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.bos-product-offer__price del {
	margin-right: 8px;
	color: #999;
	font-size: 14px;
	font-weight: 400;
}

.bos-product-offer__price ins {
	color: #dc3232;
	font-weight: 700;
	text-decoration: none;
}

.bos-product-offer__discount {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #f5c400;
	color: #111;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
	vertical-align: 1px;
}

.bos-product-offer__stock {
	margin: 0 15px 12px;
	padding: 7px 10px;
	background: #fff1f1;
	border-left: 4px solid #dc3232;
	border-radius: 4px;
	color: #8a1f1f;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.bos-product-offer__label.is-unavailable {
	opacity: 0.65;
	cursor: not-allowed;
}

.bos-offer-cart-note {
	display: block;
	margin-top: 0.15em;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.8;
}

@media (max-width: 600px) {
	.bos-product-offer__label {
		grid-template-columns: auto 50px 1fr;
		gap: 3px 8px;
		padding: 10px 12px;
	}

	.bos-product-offer__image,
	.bos-product-offer__thumb,
	.bos-product-offer__image img {
		width: 50px;
		height: 50px;
	}

	.bos-product-offer__name {
		font-size: 13px;
	}

	.bos-product-offer__price {
		font-size: 15px;
	}

	.bos-product-offer__stock {
		margin: 0 12px 10px;
		font-size: 12px;
	}
}
