/* Exago Sales Booster - frontend */

.esb-products-block {
	margin: 40px 0;
	clear: both;
}
.esb-products-block h2 {
	font-size: 1.3em;
	margin-bottom: 16px;
}
.esb-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}
.esb-product-card {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 12px;
	text-align: center;
	background: #fff;
}
.esb-product-card a {
	text-decoration: none;
	color: inherit;
	display: block;
}
.esb-product-card img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 8px;
}
.esb-product-title {
	display: block;
	font-size: 0.9em;
	margin-bottom: 4px;
	min-height: 2.4em;
}
.esb-product-price {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}
.esb-product-card .button {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.85em;
}

/* Banery */
.esb-banner {
	margin: 0 0 24px;
	text-align: center;
}
.esb-banner-image {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Pasek darmowej dostawy */
.esb-free-shipping-bar {
	margin: 0 0 20px;
	padding: 12px 16px;
	background: #f7f7f7;
	border-radius: 6px;
}
.esb-free-shipping-message {
	margin: 0 0 8px;
	font-weight: 600;
	text-align: center;
}
.esb-free-shipping-track {
	background: #e0e0e0;
	border-radius: 10px;
	height: 10px;
	overflow: hidden;
}
.esb-free-shipping-fill {
	background: #4caf50;
	height: 100%;
	transition: width 0.4s ease;
}

/* Order bump */
.esb-order-bump {
	border: 2px dashed #ffb400;
	background: #fffaf0;
	border-radius: 6px;
	padding: 14px;
	margin: 0 0 20px;
}
.esb-order-bump-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 600;
}
.esb-order-bump-body {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}
.esb-order-bump-body img {
	width: 60px;
	height: auto;
	border-radius: 4px;
}
.esb-order-bump-info del {
	opacity: 0.6;
	margin-right: 6px;
}
.esb-order-bump-info ins {
	text-decoration: none;
	font-weight: 700;
	color: #d35400;
}
.esb-order-bump-badge {
	display: inline-block;
	background: #d35400;
	color: #fff;
	font-size: 0.75em;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 8px;
}

/* ---- 1.2.0: informacja pod e-mailem, zgoda, komunikaty reguł ---- */
.esb-cart-notice {
	margin: -6px 0 14px;
	font-size: 0.85em;
	opacity: 0.75;
}
.esb-consent-row label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9em;
}
.esb-rule-message {
	margin: 0 0 20px;
	padding: 12px 16px;
	background: #eef2ff;
	border-left: 4px solid #4f46e5;
	border-radius: 6px;
	font-weight: 600;
}
.esb-rule-message a {
	color: inherit;
	text-decoration: none;
}

/* ---- 1.3.0: bloki Cart/Checkout ---- */
.esb-block-area:empty {
	display: none;
}
.esb-block-email-notice {
	margin: 4px 0 16px;
}
.esb-block-email-notice .esb-cart-notice {
	margin: 0;
}

/* ---- 1.4.0: popup z produktem, sugestia w koszyku ---- */
.esb-popup[hidden] {
	display: none;
}
.esb-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.esb-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}
.esb-popup-box {
	position: relative;
	width: 100%;
	max-width: 400px;
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.esb-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}
.esb-popup-title {
	margin: 0 24px 14px;
	font-size: 1.25em;
}
.esb-popup-image img {
	max-width: 100%;
	max-height: 260px;
	width: auto;
	height: auto;
	border-radius: 6px;
}
.esb-popup-name {
	font-weight: 600;
	margin-top: 12px;
}
.esb-popup-price {
	margin: 4px 0 10px;
}
.esb-popup-text {
	margin: 0 0 14px;
	font-size: 0.9em;
}
.esb-popup-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}
.esb-popup-error {
	color: #b32d2e;
	margin: 10px 0 0;
}

.esb-suggest {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 14px 0 6px;
	padding: 16px 18px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	background: #fafafa;
	font-size: 0.9em;
}
.esb-suggest-image img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}
.esb-suggest-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.esb-suggest-label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.65;
}
.esb-suggest-name {
	font-weight: 600;
	font-size: 1.1em;
}
.esb-suggest-price {
	font-weight: 700;
}
.esb-suggest-add {
	flex-shrink: 0;
	white-space: nowrap;
	min-width: 140px;
	min-height: 48px;
	font-size: 16px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.esb-suggest-add:disabled {
	opacity: 0.6;
	cursor: wait;
}
.esb-suggest-wrap {
	margin-top: 8px;
}
@media (max-width: 480px) {
	.esb-suggest {
		flex-wrap: wrap;
	}
	.esb-suggest-add {
		width: 100%;
	}
}

/* ---- 2.0.0: banery wyskakujące, pasek na dole ---- */
.esb-pb {
	position: fixed;
	right: 20px;
	bottom: 80px;
	max-width: 340px;
	background: #fff;
	color: #111;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
	padding: 18px 20px;
	z-index: 100000;
	font-size: 14px;
	line-height: 1.5;
}
.esb-pb-close {
	position: absolute;
	top: 6px;
	right: 10px;
	background: none;
	border: 0;
	font-size: 20px;
	cursor: pointer;
	color: #666;
}
.esb-pb-cta {
	display: inline-block;
	margin-top: 12px;
	background: #111;
	color: #fff;
	padding: 9px 18px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}
.esb-pb-cta:hover {
	opacity: 0.9;
}
@media (max-width: 480px) {
	.esb-pb {
		left: 12px;
		right: 12px;
		max-width: none;
	}
}
.esb-bottom-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	font-size: 14px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}
.esb-bottom-bar-cta {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
}
.esb-bottom-bar-close {
	background: none;
	border: 0;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 0 8px;
}
