/**
 * Commerce Kit – Poklon po količini (frontend)
 */

.ck-qd-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: #698043;
	border-radius: 999px;
	vertical-align: middle;
}

.ck-qd-price-wrap .ck-qd-price-regular del {
	opacity: 0.65;
}

.ck-qd-price-wrap .ck-qd-price-current ins {
	text-decoration: none;
	font-weight: 700;
	color: #698043;
}

.ck-qd-cart-item-gift .ck-qd-badge {
	margin-top: 4px;
}

.woofc-item.ck-qd-cart-item-gift .woofc-item-title .ck-qd-badge,
.woofc-item.ck-qd-cart-item-gift .ck-qd-badge {
	display: inline-block;
	margin-top: 2px;
}

.woofc-item.ck-qd-cart-item-gift .ck-qd-price-wrap .ck-qd-price-current ins {
	color: #698043;
}

html.ck-qd-popup-open {
	overflow: hidden;
}

html.ck-qd-popup-open body.woofc-show {
	overflow: hidden;
}

.ck-qd-gift-popup {
	position: fixed;
	inset: 0;
	z-index: 100000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ck-qd-gift-popup.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ck-qd-gift-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.ck-qd-gift-popup.is-visible .ck-qd-gift-popup__backdrop {
	opacity: 1;
}

.ck-qd-gift-popup__panel {
	position: relative;
	width: min(100%, 480px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	padding: 28px 24px 24px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	transform: translateY(18px) scale(0.96);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.ck-qd-gift-popup.is-visible .ck-qd-gift-popup__panel {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ck-qd-gift-popup__close {
	position: absolute;
	top: 12px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #64748b;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.ck-qd-gift-popup__close:hover {
	background: transparent;
	color: #334155;
	opacity: 0.85;
}

.ck-qd-gift-popup__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.2;
	color: #698043;
	text-align: center;
}

.ck-qd-gift-popup__intro {
	margin: 0 0 20px;
	color: #475569;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
}

.ck-qd-gift-popup__rewards {
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
}

.ck-qd-gift-popup__reward {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
}

.ck-qd-gift-popup__reward-image {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
	flex-shrink: 0;
	background: #fff;
}

.ck-qd-gift-popup__reward-name {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.3;
	color: #0f172a;
}

.ck-qd-gift-popup__reward-prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.ck-qd-gift-popup__reward-regular del {
	color: #94a3b8;
	font-size: 14px;
}

.ck-qd-gift-popup__reward-current ins {
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
	color: #698043;
}

.ck-qd-gift-popup__summary {
	display: grid;
	gap: 12px;
	margin-bottom: 20px;
	padding-top: 4px;
}

.ck-qd-gift-popup__summary-block {
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px dashed #cbd5e1;
}

.ck-qd-gift-popup__summary-label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #698043;
}

.ck-qd-gift-popup__summary-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #334155;
}

.ck-qd-gift-popup__button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 18px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #698043 !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ck-qd-gift-popup__button:hover {
	background: #5a7038 !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(105, 128, 67, 0.25);
}

@media (max-width: 480px) {
	.ck-qd-gift-popup__panel {
		padding: 24px 18px 18px;
	}

	.ck-qd-gift-popup__reward {
		align-items: flex-start;
	}
}
