/**
 * Modal „Dodano do koszyka” — v1.0.4
 */

body.eureka-atc-modal-open {
	overflow: hidden;
}

.eureka-atc-modal {
	position: fixed;
	inset: 0;
	z-index: 200000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.eureka-atc-modal.is-open {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.eureka-atc-modal[hidden]:not(.is-open) {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.eureka-atc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.eureka-atc-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 32rem);
	max-height: calc(100vh - 2.5rem);
	overflow: auto;
	background: #fff;
	border-radius: 1.25rem;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
	padding: 1.75rem 1.75rem 1.5rem;
	font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	color: var(--eureka-foreground, #0f172a);
}

.eureka-atc-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	background: transparent;
	color: #94a3b8;
	font-size: 1rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background 0.15s ease;
}

.eureka-atc-modal__close:hover {
	color: var(--eureka-foreground, #0f172a);
	background: #f1f5f9;
}

.eureka-atc-modal__header {
	display: flex;
	gap: 0.875rem;
	align-items: flex-start;
	margin-bottom: 1.25rem;
	padding-right: 1.5rem;
}

.eureka-atc-modal__check {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #dcfce7;
	/* poprzednio: rgb(176, 8, 68) */
	color: var(--eureka-red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.eureka-atc-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.375rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--eureka-foreground, #0f172a);
}

.eureka-atc-modal__subtitle {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--eureka-muted, #64748b);
}

.eureka-atc-modal__product {
	display: grid;
	grid-template-columns: 4.5rem 1fr auto;
	gap: 0.875rem;
	align-items: center;
	padding: 0.875rem 1rem;
	border: 1px solid var(--eureka-border, #e2e8f0);
	border-radius: 0.875rem;
	margin-bottom: 0.75rem;
}

.eureka-atc-modal__thumb img {
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: 0.625rem;
	display: block;
	background: #f8fafc;
}

.eureka-atc-modal__category {
	margin: 0 0 0.2rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	/* poprzednio: #dd0a54 */
	color: var(--eureka-red);
	line-height: 1.2;
}

.eureka-atc-modal__category:empty {
	display: none;
}

.eureka-atc-modal__name {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--eureka-foreground, #0f172a);
}

.eureka-atc-modal__meta {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--eureka-muted, #64748b);
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
}

.eureka-atc-modal__termin::before {
	content: "·";
	margin-right: 0.35rem;
	color: #cbd5e1;
}

.eureka-atc-modal__line-price {
	margin: 0;
	align-self: center;
	font-size: 1rem;
	font-weight: 800;
	white-space: nowrap;
	color: var(--eureka-foreground, #0f172a);
}

.eureka-atc-modal__line-price .woocommerce-Price-amount {
	font-weight: inherit;
}

.eureka-atc-modal__cart-box {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.625rem 0.75rem;
	align-items: center;
	padding: 0.875rem 1rem;
	margin-bottom: 1.25rem;
	border: 1px dashed #e2e8f0;
	border-radius: 0.875rem;
	background: #faf8fc;
}

.eureka-atc-modal__cart-icon {
	width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	background: #fff;
	/* poprzednio: #fce7f3 */
	border: 1px solid var(--eureka-surface-muted);
	/* poprzednio: #dd0a54 */
	color: var(--eureka-red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.eureka-atc-modal__cart-text {
	margin: 0;
	font-size: 0.875rem;
	color: var(--eureka-muted, #64748b);
}

.eureka-atc-modal__cart-text strong {
	color: var(--eureka-foreground, #0f172a);
	font-weight: 700;
}

.eureka-atc-modal__cart-total {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--eureka-foreground, #0f172a);
}

.eureka-atc-modal__cart-total .woocommerce-Price-amount {
	font-weight: inherit;
}

.eureka-atc-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
	margin-bottom: 1rem;
}

.eureka-atc-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	border: 2px solid transparent;
}

.eureka-atc-modal__btn--ghost {
	background: #fff;
	/* poprzednio: #dd0a54 */
	border-color: var(--eureka-red);
	color: var(--eureka-foreground, #0f172a);
}

.eureka-atc-modal__btn--ghost:hover {
	/* poprzednio: #fdf2f8 */
	background: var(--eureka-surface-muted);
	/* poprzednio: #b00844 */
	color: var(--eureka-red-deep);
}

.eureka-atc-modal__btn--primary {
	/* poprzednio: #dd0a54 */
	background: var(--eureka-red);
	border-color: var(--eureka-red);
	color: #fff;
	/* poprzednio: rgba(221, 10, 84, 0.28) */
	box-shadow: 0 8px 20px rgb(184 15 53 / 0.28);
}

.eureka-atc-modal__btn--primary:hover {
	/* poprzednio: #b00844 */
	background: var(--eureka-red-deep);
	border-color: var(--eureka-red-deep);
	color: #fff;
}

.eureka-atc-modal__trust {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	color: var(--eureka-muted, #64748b);
}

.eureka-atc-modal__trust .bi-shield-check {
	/* poprzednio: rgb(176, 8, 68) */
	color: var(--eureka-red);
	font-size: 0.95rem;
}

@media (max-width: 575.98px) {
	.eureka-atc-modal__dialog {
		padding: 1.25rem 1.25rem 1rem;
	}

	.eureka-atc-modal__product {
		grid-template-columns: 3.5rem 1fr;
	}

	.eureka-atc-modal__line-price {
		grid-column: 2;
		justify-self: start;
	}

	.eureka-atc-modal__actions {
		grid-template-columns: 1fr;
	}
}
