.ectm-cart-bubble {
	position: fixed;
	right: 20px;
	top: 50%;
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #25164f;
	color: #fff;
	box-shadow: 0 14px 34px rgba(20, 12, 48, 0.28);
	cursor: pointer;
	transform: translateY(-50%);
}

.ectm-cart-bubble[hidden] {
	display: none;
}

.ectm-cart-bubble:focus-visible,
.ectm-cart-panel button:focus-visible,
.ectm-cart-panel a:focus-visible {
	outline: 3px solid #f1b84b;
	outline-offset: 3px;
}

.ectm-cart-bubble__icon {
	font-size: 24px;
	line-height: 1;
}

.ectm-cart-bubble__count {
	position: absolute;
	top: -5px;
	right: -5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #d63b35;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.ectm-cart-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	margin: 12px 0 0;
	padding: 13px 15px;
	border: 1px solid #e0b94f;
	border-radius: 10px;
	background: #fff8df;
	color: #59420d;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
	cursor: pointer;
}

.ectm-cart-alert[hidden] {
	display: none !important;
}

.ectm-cart-alert:hover {
	border-color: #c99a24;
	background: #fff3c4;
}

.ectm-cart-alert:focus-visible {
	outline: 3px solid #f1b84b;
	outline-offset: 3px;
}

.ectm-cart-alert__icon {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1.3;
}

.ectm-cart-alert__text {
	flex: 1 1 auto;
}

.ectm-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(16, 12, 27, 0.48);
	backdrop-filter: blur(3px);
}

.ectm-cart-overlay[hidden],
.ectm-cart-panel[hidden] {
	display: none;
}

.ectm-cart-panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	height: 100dvh;
	background: #fff;
	color: #20202a;
	box-shadow: -20px 0 50px rgba(18, 12, 34, 0.2);
}

.ectm-cart-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 28px 26px 22px;
	border-bottom: 1px solid #e8e5ef;
}

.ectm-cart-panel__header h2 {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.2;
}

.ectm-cart-panel__header p {
	margin: 0;
	color: #686574;
	font-size: 15px;
	line-height: 1.5;
}

.ectm-cart-panel__close {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #ddd8e7;
	border-radius: 50%;
	background: #fff;
	color: #2b2733;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.ectm-cart-panel__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px 26px 24px;
}

.ectm-cart-item {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid #ece9f1;
}

.ectm-cart-item__image {
	width: 58px;
	height: 58px;
	border-radius: 10px;
	background: #f3f1f6;
	object-fit: cover;
}

.ectm-cart-item__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.ectm-cart-item__content strong {
	display: block;
	margin-bottom: 5px;
	font-size: 15px;
	line-height: 1.35;
}

.ectm-cart-item__meta {
	color: #74707e;
	font-size: 13px;
	line-height: 1.4;
}

.ectm-cart-item__remove {
	padding: 8px 10px;
	border: 1px solid #d8d3e0;
	border-radius: 8px;
	background: #fff;
	color: #9f2424;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.ectm-cart-item__remove:disabled {
	opacity: 0.55;
	cursor: wait;
}

.ectm-cart-panel__status {
	margin: 18px 0 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: #f4f1f8;
	color: #514b5e;
	font-size: 14px;
	line-height: 1.45;
}

.ectm-cart-panel__status--error {
	background: #fff0ef;
	color: #9d2522;
}

.ectm-cart-panel__status--ready {
	background: #eef8ef;
	color: #27682f;
}

.ectm-cart-panel__footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 20px 26px 28px;
	border-top: 1px solid #e8e5ef;
	background: #fff;
}

.ectm-cart-panel__footer a,
.ectm-cart-panel__continue {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 15px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.ectm-cart-panel__footer a {
	border: 1px solid #d8d3e0;
	background: #fff;
	color: #292532;
}

.ectm-cart-panel__continue {
	border: 1px solid #25164f;
	background: #25164f;
	color: #fff;
	cursor: pointer;
}

.ectm-cart-panel__continue:disabled {
	border-color: #cbc7d3;
	background: #cbc7d3;
	cursor: not-allowed;
}

body.ectm-cart-panel-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.ectm-cart-bubble {
		right: 14px;
		top: auto;
		bottom: 84px;
		transform: none;
	}

	.ectm-cart-panel__header,
	.ectm-cart-panel__body,
	.ectm-cart-panel__footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.ectm-cart-panel__footer {
		grid-template-columns: 1fr;
	}
}
