/**
 * Add-to-cart success modal (configurator product pages).
 */

.wctc-atc-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.wctc-atc-modal[hidden] {
	display: none !important;
}

.wctc-atc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 31, 53, 0.48);
}

.wctc-atc-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 24rem;
	padding: 1.75rem 1.5rem 1.4rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(11, 31, 53, 0.22);
	text-align: center;
}

.wctc-atc-modal__close {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #64748b;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.wctc-atc-modal__close:hover,
.wctc-atc-modal__close:focus-visible {
	background: #f1f5f9;
	color: #0b1f35;
	outline: none;
}

.wctc-atc-modal__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0 auto 0.85rem;
	border-radius: 999px;
	background: #ecfdf3;
	color: #166534;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
}

.wctc-atc-modal__title {
	margin: 0 0 1.25rem;
	color: #0b1f35;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

.wctc-atc-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.wctc-atc-modal__btn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.85rem;
	padding: 0.75rem 1.1rem;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	box-sizing: border-box;
}

.wctc-atc-modal__btn--primary {
	background: #0055d4;
	border-color: #0055d4;
	color: #fff !important;
}

.wctc-atc-modal__btn--primary:hover,
.wctc-atc-modal__btn--primary:focus-visible {
	background: #0046b0;
	border-color: #0046b0;
	color: #fff !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 85, 212, 0.28);
}

.wctc-atc-modal__btn--secondary {
	background: #fff;
	border-color: #e5e7eb;
	color: #0b1f35 !important;
}

.wctc-atc-modal__btn--secondary:hover,
.wctc-atc-modal__btn--secondary:focus-visible {
	background: #f8fafc;
	border-color: #cbd5e1;
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 31, 53, 0.08);
}

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

@media (min-width: 480px) {
	.wctc-atc-modal__dialog {
		padding: 2rem 1.75rem 1.55rem;
	}

	.wctc-atc-modal__title {
		font-size: 1.2rem;
	}
}
