/* Bokserkoland 2026: Father's Day guaranteed delivery countdown bar */

:root {
	--bk-father-day-bar-height: 0px;
}

.bk-father-day-delivery-bar {
	position: sticky;
	top: 0;
	z-index: 80;
	color: #fff;
	background: linear-gradient(100deg, #be123c 0%, #e11d48 52%, #f43f5e 100%);
	box-shadow: 0 8px 24px rgba(190, 18, 60, 0.22);
	transform: translateY(0);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	will-change: transform;
}

/* subtelny połysk u góry + cienka linia u dołu */
.bk-father-day-delivery-bar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.35);
}

.bk-father-day-delivery-bar::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: rgba(0, 0, 0, 0.12);
}

body.bk-father-day-bar-hidden .bk-father-day-delivery-bar {
	box-shadow: none;
	transform: translateY(-100%);
}

body.bk-father-day-bar-expired .bk-father-day-delivery-bar {
	display: none;
}

body.bk-father-day-bar-visible header.sticky {
	top: var(--bk-father-day-bar-height) !important;
}

.bk-father-day-delivery-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	width: min(100%, 1200px);
	min-height: 50px;
	margin: 0 auto;
	padding: 8px 20px;
	color: inherit;
	text-decoration: none;
}

/* --- Copy + ikona dostawy --- */
.bk-father-day-delivery-bar__copy {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
}

.bk-father-day-delivery-bar__copy::before {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.bk-father-day-delivery-bar__copy strong {
	font-size: 15px;
	font-weight: 900;
	white-space: nowrap;
	letter-spacing: -0.01em;
}

.bk-father-day-delivery-bar__copy span {
	position: relative;
	padding-left: 11px;
	margin-left: 1px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 700;
	white-space: nowrap;
}

.bk-father-day-delivery-bar__copy span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 3px;
	height: 3px;
	margin-top: -1px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
}

/* --- Countdown: czyste glassy kafelki (liczba nad jednostką) --- */
.bk-father-day-delivery-bar__countdown {
	display: flex;
	align-items: stretch;
	gap: 6px;
	flex: 0 0 auto;
}

.bk-father-day-delivery-bar__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 44px;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.13);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.bk-father-day-delivery-bar__unit strong {
	font-variant-numeric: tabular-nums;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.01em;
}

.bk-father-day-delivery-bar__unit small {
	color: rgba(255, 255, 255, 0.82);
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

/* --- CTA --- */
.bk-father-day-delivery-bar__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	min-height: 36px;
	padding: 0 17px;
	border-radius: 999px;
	color: #be123c;
	background: #fff;
	font-size: 12.5px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bk-father-day-delivery-bar__cta::after {
	content: "";
	width: 15px;
	height: 15px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be123c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.18s ease;
}

.bk-father-day-delivery-bar:hover .bk-father-day-delivery-bar__cta {
	transform: translateY(-1px);
	box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24);
}

.bk-father-day-delivery-bar:hover .bk-father-day-delivery-bar__cta::after {
	transform: translateX(2px);
}

/* --- Tablet --- */
@media (max-width: 899px) {
	.bk-father-day-delivery-bar__inner {
		flex-wrap: wrap;
		gap: 8px 12px;
		min-height: 60px;
		padding: 8px 14px 9px;
	}

	.bk-father-day-delivery-bar__copy {
		justify-content: center;
		width: 100%;
		font-size: 12.5px;
		text-align: center;
	}

	.bk-father-day-delivery-bar__copy strong {
		font-size: 13.5px;
	}

	.bk-father-day-delivery-bar__copy span {
		font-size: 12px;
	}

	.bk-father-day-delivery-bar__unit {
		min-width: 42px;
		padding: 4px 7px;
	}

	.bk-father-day-delivery-bar__unit strong {
		font-size: 15px;
	}

	.bk-father-day-delivery-bar__cta {
		min-height: 32px;
		padding: 0 14px;
		font-size: 12px;
	}
}

/* --- Mobile --- */
@media (max-width: 520px) {
	.bk-father-day-delivery-bar__inner {
		gap: 7px 10px;
		min-height: 66px;
		padding: 8px 12px 10px;
	}

	.bk-father-day-delivery-bar__copy {
		flex-direction: column;
		gap: 2px;
	}

	.bk-father-day-delivery-bar__copy::before {
		display: none;
	}

	.bk-father-day-delivery-bar__copy span {
		padding-left: 0;
		margin-left: 0;
	}

	.bk-father-day-delivery-bar__copy span::before {
		display: none;
	}

	.bk-father-day-delivery-bar__copy strong,
	.bk-father-day-delivery-bar__copy span {
		white-space: normal;
	}

	.bk-father-day-delivery-bar__unit {
		min-width: 40px;
		padding: 4px 6px;
		border-radius: 9px;
	}

	.bk-father-day-delivery-bar__unit strong {
		font-size: 14px;
	}

	.bk-father-day-delivery-bar__unit--seconds {
		display: none;
	}
}

/* ===== Pewniak dostawy (PDP CTA / koszyk / checkout) ===== */
.bk-deliv-guarantee {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 12px 0;
	padding: 12px 14px;
	border: 1px solid #bbf7d0;
	border-radius: 14px;
	background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
	color: #14532d;
	box-shadow: 0 6px 16px rgba(22, 163, 74, 0.07);
}

.bk-deliv-guarantee--calm {
	align-items: center;
}

.bk-deliv-guarantee__ico {
	flex: none;
	width: 24px;
	height: 24px;
	color: #16a34a;
}

.bk-deliv-guarantee__ico svg {
	width: 24px;
	height: 24px;
	display: block;
}

.bk-deliv-guarantee__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.bk-deliv-guarantee__body strong {
	font-size: 14px;
	font-weight: 900;
	line-height: 1.3;
	color: #14532d;
}

.bk-deliv-cd {
	font-size: 12.5px;
	font-weight: 800;
	color: #15803d;
}

.bk-deliv-cd b {
	font-variant-numeric: tabular-nums;
	font-weight: 950;
}

.bk-deliv-guarantee__rev {
	margin: 1px 0 0;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #3f6212;
}

/* w buy-boxie form.cart jest gridem - pasek na pełną szerokość */
body.single-product form.cart .bk-deliv-guarantee {
	grid-column: 1 / -1;
}

/* koszyk/checkout - lekkie ograniczenie szerokości, wyśrodkowanie sekcji */
.woocommerce-cart .bk-deliv-guarantee,
.woocommerce-checkout .bk-deliv-guarantee {
	max-width: 1200px;
	margin: 12px auto;
}
