/* Modal — Přidáno do košíku (kritické styly, načítat vždy) */

.zh-added-modal[hidden] {
	display: none !important;
}

.zh-added-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	pointer-events: auto !important;
}

.zh-added-modal__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(20, 20, 30, 0.55);
	backdrop-filter: blur(2px);
}

.zh-added-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(800px, calc(100vw - 32px));
	min-height: 188px;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	pointer-events: auto !important;
}

.zh-added-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 28px;
	border-bottom: 1px solid #ececec;
}

.zh-added-modal__title {
	margin: 0 !important;
	font-family: "DM Sans", Figtree, system-ui, sans-serif !important;
	font-size: 1.6rem !important;
	font-weight: 800 !important;
	color: #111 !important;
	line-height: 1.2 !important;
}

.zh-added-modal__close {
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.zh-added-modal__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding: 24px 28px;
	flex-wrap: nowrap;
	min-height: 140px;
	box-sizing: border-box;
}

.zh-added-modal__product {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	flex: 1 1 auto;
}

.zh-added-modal__thumb-wrap {
	position: relative;
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
}

.zh-added-modal__thumb {
	width: 88px;
	height: 88px;
	object-fit: contain;
	background: #f7f7f9;
	border-radius: 2px;
	display: block;
}

.zh-added-modal__thumb:not([src]),
.zh-added-modal__thumb[src=""] {
	display: none;
}

.zh-added-modal__ok {
	position: absolute;
	top: -5px;
	left: -5px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #1f8a4c;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.zh-added-modal__meta {
	min-width: 0;
	flex: 1 1 auto;
}

.zh-added-modal__name {
	margin: 0 0 6px !important;
	font-family: "DM Sans", Figtree, system-ui, sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #111 !important;
	line-height: 1.35 !important;
}

.zh-added-modal__qty,
.zh-added-modal__price {
	margin: 0 !important;
	font-family: "DM Sans", Figtree, system-ui, sans-serif !important;
	font-size: 15px !important;
	color: #444 !important;
	line-height: 1.4 !important;
}

.zh-added-modal__price {
	font-weight: 700 !important;
	color: #111 !important;
	margin-top: 4px !important;
}

.zh-added-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 220px;
	width: 220px;
}

.zh-added-modal__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px !important;
	border-radius: 2px !important;
	font-family: "DM Sans", Figtree, system-ui, sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	cursor: pointer;
	box-sizing: border-box;
	text-align: center;
	width: 100%;
	position: relative;
	z-index: 5;
	pointer-events: auto !important;
	touch-action: manipulation;
}

.zh-added-modal__btn--primary {
	background: #111 !important;
	color: #fff !important;
	border: 1px solid #111 !important;
}

.zh-added-modal__btn--ghost {
	background: #fff !important;
	color: #111 !important;
	border: 1px solid #111 !important;
}

.zh-added-modal__btn--primary:hover {
	background: #2d2d5f !important;
	border-color: #2d2d5f !important;
	color: #fff !important;
}

body.zh-added-modal-open,
body.aiqg-added-modal-open {
	overflow: hidden !important;
}

@media (max-width: 700px) {
	.zh-added-modal__dialog {
		width: min(100%, calc(100vw - 24px));
	}

	.zh-added-modal__body {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: wrap;
		gap: 18px;
		padding: 20px;
	}

	.zh-added-modal__actions {
		width: 100%;
		flex-basis: auto;
		min-width: 0;
	}

	.zh-added-modal__head {
		padding: 18px 20px;
	}

	.zh-added-modal__title {
		font-size: 1.35rem !important;
	}
}
