.shop-util-loading {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.shop-util-loading.is-active {
	display: block;
}

.shop-util-loading__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.shop-util-loading__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 14px;
}

.shop-util-loading__spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: shop-util-spin 0.9s linear infinite;
}

@keyframes shop-util-spin {
	to { transform: rotate(360deg); }
}

.shop-util-alert {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}

.shop-util-alert.is-active {
	display: block;
}

.shop-util-alert__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.shop-util-alert__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 280px;
	max-width: 90vw;
	background: #fff;
	color: #222;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	padding: 18px 20px;
	font-size: 14px;
}

.shop-util-alert__message {
	line-height: 1.5;
	word-break: break-word;
}

.shop-util-alert__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
}

.shop-util-alert__close {
	appearance: none;
	border: 0;
	background: #2b6ff0;
	color: #fff;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
}

.shop-util-alert__close:active {
	transform: translateY(1px);
}

.shop-util-confirm {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}

.shop-util-confirm.is-active {
	display: block;
}

.shop-util-confirm__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.shop-util-confirm__content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	min-width: 280px;
	max-width: 90vw;
	background: #fff;
	color: #222;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
	padding: 18px 20px;
	font-size: 14px;
}

.shop-util-confirm__message {
	line-height: 1.5;
	word-break: break-word;
}

.shop-util-confirm__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

.shop-util-confirm__cancel {
	appearance: none;
	border: 1px solid #d2d7e0;
	background: #fff;
	color: #222;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
}

.shop-util-confirm__ok {
	appearance: none;
	border: 0;
	background: #2b6ff0;
	color: #fff;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
}

.shop-util-confirm__cancel:active,
.shop-util-confirm__ok:active {
	transform: translateY(1px);
}

.shop-util-toast-container {
	position: fixed;
	right: 16px;
	bottom: 18px;
	z-index: 100001;
	display: grid;
	gap: 8px;
	pointer-events: none;
	max-width: min(92vw, 360px);
}

.shop-util-toast {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #d9dfeb;
	background: #ffffff;
	color: #2b3443;
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.15);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-util-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.shop-util-toast.is-hiding {
	opacity: 0;
	transform: translateY(8px);
}

.shop-util-toast__icon {
	font-size: 15px;
	line-height: 1;
	flex: 0 0 auto;
}

.shop-util-toast__text {
	min-width: 0;
	word-break: break-word;
}

.shop-util-toast.is-success {
	border-color: #c9edd7;
	background: #effaf3;
	color: #1f6e37;
}

.shop-util-toast.is-error {
	border-color: #f2b0b0;
	background: #fff1f1;
	color: #b93333;
}

.shop-util-toast.is-warning {
	border-color: #ffd9ab;
	background: #fff8ef;
	color: #a55c00;
}

.shop-util-toast.is-info {
	border-color: #d7deea;
	background: #f4f7fb;
	color: #3f4652;
}

@media (max-width: 760px) {
	.shop-util-toast-container {
		right: 10px;
		left: 10px;
		bottom: 12px;
		max-width: none;
	}

	.shop-util-toast {
		font-size: 12px;
	}
}
