:root {
	--boc-offer-accent: #ea631b;
	--boc-offer-ink: #242321;
	--boc-offer-muted: #736c64;
	--boc-offer-linen: #f5f0ed;
	--boc-offer-linen-border: #e4d7cd;
	--boc-offer-danger: #be1f17;
	--boc-offer-radius: 8px;
}

/* —— Modal —— */
.bocco-offer-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 1.25rem;
}

.bocco-offer-modal[hidden] {
	display: none !important;
}

.bocco-offer-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(36, 35, 33, 0.45);
	cursor: pointer;
}

.bocco-offer-modal__dialog {
	position: relative;
	width: min(440px, 100%);
	background: var(--boc-offer-linen);
	border: 1px solid var(--boc-offer-linen-border);
	border-radius: var(--boc-offer-radius);
	box-shadow: 0 12px 40px rgba(36, 35, 33, 0.12);
	padding: 1.75rem 1.5rem 1.5rem;
	text-align: center;
}

.bocco-offer-modal__visual {
	position: relative;
	width: 72px;
	height: 72px;
	margin: 0 auto 1rem;
	border-radius: var(--boc-offer-radius);
	background: #fff;
	border: 1px solid var(--boc-offer-linen-border);
}

.bocco-offer-modal__warning {
	display: none;
	width: 56px;
	height: 56px;
	margin: 0 auto 0.75rem;
	color: var(--boc-offer-accent);
}

.bocco-offer-modal__warning svg {
	width: 100%;
	height: 100%;
	display: block;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__warning {
	display: block;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__visual,
.bocco-offer-modal.is-warning .bocco-offer-modal__progress,
.bocco-offer-modal.is-warning .bocco-offer-modal__subtitle {
	display: none;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__meta:empty {
	display: none;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__meta {
	min-height: 0;
	margin: 0 0 0.85rem;
	text-align: center;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__meta .bocco-offer-banner__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__title {
	margin-bottom: 0.5rem;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__conflict {
	margin-top: 0;
	text-align: center;
}

.bocco-offer-modal.is-warning .bocco-offer-modal__conflict p {
	margin: 0 0 1.15rem;
	text-align: center;
}

.bocco-offer-modal__orb {
	display: none;
}

.bocco-offer-modal__ring {
	position: absolute;
	inset: 10px;
	border-radius: 50%;
	border: 2px solid var(--boc-offer-linen-border);
	border-top-color: var(--boc-offer-accent);
	animation: bocOfferSpin 1s linear infinite;
}

.bocco-offer-modal.is-success .bocco-offer-modal__ring,
.bocco-offer-modal.is-error .bocco-offer-modal__ring,
.bocco-offer-modal.is-idle .bocco-offer-modal__ring {
	animation: none;
	border-color: var(--boc-offer-linen-border);
}

.bocco-offer-modal.is-success .bocco-offer-modal__ring {
	border-color: var(--boc-offer-accent);
}

.bocco-offer-modal.is-error .bocco-offer-modal__ring {
	border-color: var(--boc-offer-danger);
}

.bocco-offer-modal__icon {
	position: absolute;
	inset: 16px;
	width: 40px;
	height: 40px;
	color: var(--boc-offer-accent);
}

.bocco-offer-modal.is-error .bocco-offer-modal__icon {
	color: var(--boc-offer-danger);
}

.bocco-offer-modal__check {
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	opacity: 0;
}

.bocco-offer-modal.is-success .bocco-offer-modal__check {
	opacity: 1;
	animation: bocOfferDraw 0.45s ease forwards 0.05s;
}

.bocco-offer-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--boc-offer-ink);
}

.bocco-offer-modal__subtitle {
	margin: 0 0 1rem;
	color: var(--boc-offer-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.bocco-offer-modal__progress {
	height: 6px;
	border-radius: 80px;
	background: #fff;
	border: 1px solid var(--boc-offer-linen-border);
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.bocco-offer-modal__progress-bar {
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: var(--boc-offer-accent);
	transition: width 0.35s ease;
}

.bocco-offer-modal.is-idle .bocco-offer-modal__visual,
.bocco-offer-modal.is-result .bocco-offer-modal__progress {
	display: none;
}

.bocco-offer-modal.is-idle .bocco-offer-modal__progress {
	display: none;
}

.bocco-offer-modal__meta {
	min-height: 1.25rem;
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	color: var(--boc-offer-muted);
}

.bocco-offer-modal__conflict,
.bocco-offer-modal__error,
.bocco-offer-modal__success {
	margin-top: 1rem;
	text-align: left;
}

.bocco-offer-modal__conflict p,
.bocco-offer-modal__success p {
	margin: 0 0 1rem;
	color: var(--boc-offer-ink);
	font-size: 0.95rem;
	line-height: 1.45;
}

.bocco-offer-modal__error {
	color: var(--boc-offer-danger);
	font-size: 0.92rem;
	line-height: 1.4;
	background: #fff;
	border: 1px solid #e8b4b0;
	border-radius: var(--boc-offer-radius);
	padding: 0.85rem 1rem;
}

.bocco-offer-modal__checks {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.bocco-offer-modal__checks li {
	display: grid;
	grid-template-columns: 1.1rem 1fr;
	gap: 0.55rem;
	align-items: start;
	background: #fff;
	border: 1px solid var(--boc-offer-linen-border);
	border-radius: var(--boc-offer-radius);
	padding: 0.7rem 0.85rem;
}

.bocco-offer-modal__checks .boc-check-mark {
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.1rem;
	border-radius: 50%;
	background: var(--boc-offer-accent);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.bocco-offer-modal__checks li.is-fail .boc-check-mark {
	background: var(--boc-offer-danger);
}

.bocco-offer-modal__checks .boc-check-label {
	margin: 0;
	color: var(--boc-offer-ink);
	font-size: 0.9rem;
	font-weight: 600;
}

.bocco-offer-modal__checks .boc-check-detail {
	margin: 0.2rem 0 0;
	color: var(--boc-offer-muted);
	font-size: 0.8rem;
	line-height: 1.35;
}

.bocco-offer-modal__footer {
	margin-top: 1rem;
}

.bocco-offer-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.bocco-offer-modal__btn,
.bocco-offer-banner__btn {
	appearance: none;
	border: none;
	cursor: pointer;
	border-radius: 80px;
	padding: 0.7rem 1.15rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bocco-offer-modal__btn--primary {
	background: var(--Color-Grey-700, #242321);
	color: #fff;
	width: 100%;
}

.bocco-offer-modal__btn--primary:hover {
	background: #323232;
}

.bocco-offer-modal__btn--ghost,
.bocco-offer-banner__btn--ghost {
	background: #fff;
	color: var(--boc-offer-ink);
	border: 1px solid var(--boc-offer-linen-border);
}

.bocco-offer-modal__btn--ghost:hover,
.bocco-offer-banner__btn--ghost:hover {
	background: var(--boc-offer-linen);
}

.bocco-offer-banner__btn--danger {
	background: #fff;
	color: var(--boc-offer-danger);
	border: 1px solid #e8b4b0;
}

.bocco-offer-banner__btn--danger:hover {
	background: #fdf2f1;
}

/* —— Banner —— */
.bocco-offer-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: var(--boc-offer-radius);
	border: 1px solid var(--boc-offer-linen-border);
	background: var(--boc-offer-linen);
}

.bocco-offer-banner__badge {
	display: inline-block;
	margin-bottom: 0.35rem;
	padding: 0.2rem 0.65rem;
	border-radius: 80px;
	background: #fff;
	border: 1px solid var(--boc-offer-linen-border);
	color: var(--boc-offer-accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bocco-offer-banner__text {
	margin: 0;
	color: var(--boc-offer-ink);
	font-size: 0.98rem;
	font-weight: 600;
}

.bocco-offer-banner__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.bocco-offer-banner__link:hover {
	color: var(--boc-offer-accent);
}

.bocco-offer-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bocco-offer-error-actions {
	margin: 0.75rem 0 0 !important;
}

.bocco-offer-clear-btn.button,
a.bocco-offer-clear-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: var(--Color-Grey-700, #242321) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 80px !important;
	padding: 0.55rem 1rem !important;
	text-decoration: none !important;
}

/* —— Checkout spacing in offer mode —— */
body.bocco-offer-cart-mode .custom-cart-wrap .wc-proceed-to-checkout-custom,
body.bocco-offer-cart-mode .custom-cart-wrap .cart-collaterals .cart_totals .wc-proceed-to-checkout {
	margin-top: 1.25rem;
	padding-top: 1.5rem !important;
}

body.bocco-offer-cart-mode .custom-cart-wrap .wc-proceed-to-checkout-custom .checkout-button {
	margin-top: 0.25rem;
}

/* —— Locked cart UI (B2B). Showroom (.bocco-offer-cart-showroom-editable) może qty + usuwanie. —— */
body.bocco-offer-cart-mode:not(.bocco-offer-cart-showroom-editable) .custom-cart-item .quantity-input,
body.bocco-offer-cart-mode:not(.bocco-offer-cart-showroom-editable) .custom-cart-item .product-remove,
body.bocco-offer-cart-mode:not(.bocco-offer-cart-showroom-editable) .custom-cart-item .product-remove-mobile,
body.bocco-offer-cart-mode:not(.bocco-offer-cart-showroom-editable) .custom-cart-item .mobile-del-product,
body.bocco-offer-cart-mode .coupon,
body.bocco-offer-cart-mode .woocommerce-form-coupon-toggle,
body.bocco-offer-cart-mode .checkout_coupon,
body.bocco-offer-cart-mode form.checkout_coupon,
body.bocco-offer-cart-mode .woocommerce-form-coupon {
	display: none !important;
}

body.bocco-offer-cart-mode .bocco-offer-qty-locked {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.35rem 0.7rem;
	border-radius: 80px;
	background: #fff;
	border: 1px solid var(--boc-offer-linen-border);
	color: var(--boc-offer-ink);
	font-weight: 700;
}

@keyframes bocOfferSpin {
	to { transform: rotate(360deg); }
}

@keyframes bocOfferDraw {
	to { stroke-dashoffset: 0; }
}

@media (max-width: 640px) {
	.bocco-offer-banner {
		align-items: stretch;
	}

	.bocco-offer-banner__actions {
		width: 100%;
	}

	.bocco-offer-banner__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

body.bocco-offer-cart-mode .wmc-currency,
body.bocco-offer-cart-mode .wmc-multi-currency,
body.bocco-offer-cart-mode .woocommerce-multi-currency,
body.bocco-offer-cart-mode .menu-item--currency-switcher {
	pointer-events: none;
	opacity: 0.45;
}

.bocco-offer-custom-desc {
	margin: 0.35rem 0 0.15rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: #555;
	white-space: pre-line;
}

.product-image .bocco-cart-fallback-thumb,
.woocommerce-order .bocco-cart-fallback-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 64px;
	padding: 0.75rem;
	box-sizing: border-box;
	background: #f5f0ed;
}

.product-image .bocco-cart-fallback-logo,
.woocommerce-order .bocco-cart-fallback-logo {
	width: 96px;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}
