/* ML24 Cart Popup — zt design system */

.zt-cp-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(17, 17, 17, 0.55);
	z-index: 999998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.zt-cp-overlay.zt-cp-open {
	opacity: 1;
	visibility: visible;
}

.zt-cp-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -48%);
	width: 92%;
	max-width: 480px;
	background: var(--zt-bg, #ffffff);
	border-radius: 6px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	font-size: 15px;
	line-height: 1.5;
}

.zt-cp-modal.zt-cp-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%);
}

/* Header */
.zt-cp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--zt-border, #ececec);
}

.zt-cp-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--zt-text, #1a1a1a);
	display: flex;
	align-items: center;
	gap: 8px;
}

.zt-cp-title .zt-cp-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--zt-accent, #e30613);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	flex: 0 0 22px;
}

.zt-cp-close {
	background: none;
	border: 0;
	padding: 4px;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: #888;
	transition: color 0.15s ease;
}

.zt-cp-close:hover {
	color: var(--zt-accent, #e30613);
}

/* Telo */
.zt-cp-body {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
}

.zt-cp-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border: 1px solid var(--zt-border, #ececec);
	border-radius: 4px;
	overflow: hidden;
	background: #fafafa;
}

.zt-cp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.zt-cp-info {
	flex: 1 1 auto;
	min-width: 0;
}

.zt-cp-msg {
	margin: 0 0 4px;
	color: var(--zt-text, #1a1a1a);
}

.zt-cp-msg strong {
	font-weight: 700;
}

.zt-cp-price {
	color: var(--zt-accent, #e30613);
	font-weight: 700;
}

.zt-cp-price del {
	color: #999;
	font-weight: 400;
	margin-inline-end: 6px;
}

/* Rekapitulacija korpe */
.zt-cp-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px;
	background: var(--zt-muted-bg, #f7f7f7);
	border-top: 1px solid var(--zt-border, #ececec);
	border-bottom: 1px solid var(--zt-border, #ececec);
	font-size: 14px;
}

.zt-cp-count {
	color: #666;
}

.zt-cp-subtotal {
	font-weight: 700;
	color: var(--zt-text, #1a1a1a);
}

.zt-cp-subtotal .zt-cp-sub-label {
	font-weight: 400;
	color: #666;
	margin-inline-end: 6px;
}

/* Dugmad */
.zt-cp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 18px 20px;
}

.zt-cp-btn {
	flex: 1 1 calc(50% - 5px);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.zt-cp-btn-cart {
	background: #fff;
	color: var(--zt-text, #1a1a1a) !important;
	border-color: var(--zt-border-strong, #d5d5d5);
}

.zt-cp-btn-cart:hover {
	border-color: var(--zt-accent, #e30613);
	color: var(--zt-accent, #e30613) !important;
}

.zt-cp-btn-checkout {
	background: var(--zt-accent, #e30613);
	color: #fff !important;
	border-color: var(--zt-accent, #e30613);
}

.zt-cp-btn-checkout:hover {
	background: var(--zt-accent-dark, #b9050f);
	border-color: var(--zt-accent-dark, #b9050f);
}

.zt-cp-btn-continue {
	flex: 1 1 100%;
	background: transparent;
	color: #666 !important;
	border-color: transparent;
	text-decoration: underline !important;
	padding: 6px 0 0;
	font-weight: 400;
}

.zt-cp-btn-continue:hover {
	color: var(--zt-accent, #e30613) !important;
}

/* RTL — arapski */
.zt-cp-modal.zt-cp-rtl {
	direction: rtl;
	text-align: right;
}

/* Mobilni */
@media (max-width: 480px) {
	.zt-cp-modal {
		width: 94%;
		font-size: 14px;
	}

	.zt-cp-body {
		padding: 14px 16px;
	}

	.zt-cp-thumb {
		flex: 0 0 60px;
		width: 60px;
		height: 60px;
	}

	.zt-cp-actions {
		padding: 14px 16px;
	}

	.zt-cp-btn {
		flex: 1 1 100%;
	}
}
