/* As Eventos en Cuba Core — site-wide cart drawer (edge tab + slide-out panel) */

.asd-core-cart-drawer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9000;
}

/* Edge tab */
.asd-core-cart-tab {
	position: fixed;
	top: 40%;
	right: 0;
	transform: translateY(-50%);
	background: #b9376b;
	color: #fff;
	border: 0;
	border-radius: 10px 0 0 10px;
	padding: 14px 8px 14px 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	pointer-events: auto;
	transition: padding-right 0.15s ease;
}

.asd-core-cart-tab:hover {
	padding-right: 12px;
}

.asd-core-cart-tab__chevron {
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-right: 5px solid rgba(255, 255, 255, 0.8);
}

.asd-core-cart-tab__icon {
	position: relative;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.asd-core-cart-tab__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.asd-core-cart-tab__badge {
	position: absolute;
	top: -8px;
	right: -9px;
	background: #fff;
	color: #b9376b;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	width: 15px;
	height: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.asd-core-cart-tab__label {
	writing-mode: vertical-rl;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* Backdrop + panel */
.asd-core-cart-drawer__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.45);
	z-index: 9001;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.asd-core-cart-drawer.is-open .asd-core-cart-drawer__backdrop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.asd-core-cart-drawer__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 320px;
	max-width: 88vw;
	background: #fff;
	z-index: 9002;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	pointer-events: auto;
}

.asd-core-cart-drawer.is-open .asd-core-cart-drawer__panel {
	transform: translateX(0);
}

.asd-core-cart-drawer__undo-slot:empty {
	display: none;
}

.asd-core-cart-drawer__undo {
	background: #fbeaf0;
	color: #72243e;
	font-size: 12.5px;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex: 0 0 auto;
}

.asd-core-cart-drawer__undo-btn {
	background: transparent;
	border: 0;
	color: #b9376b;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	font-size: 12.5px;
	padding: 0;
	flex: 0 0 auto;
	white-space: nowrap;
}

.asd-core-cart-drawer__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

/* Header */
.asd-core-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	border-bottom: 1px solid #e3e3e3;
	flex: 0 0 auto;
}

.asd-core-cart-drawer__title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.asd-core-cart-drawer__close {
	background: transparent;
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: #8a8a8a;
	cursor: pointer;
	padding: 4px;
}

.asd-core-cart-drawer__empty {
	padding: 24px 18px;
	color: #767676;
	font-size: 14px;
	margin: 0;
}

/* Items */
.asd-core-cart-drawer__items {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px 16px;
}

.asd-core-cart-drawer__item {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
	position: relative;
	padding: 12px 30px 12px 12px;
	border: 1px solid #e3e3e3;
	border-radius: 14px;
	background: #fcfafb;
}

.asd-core-cart-drawer__item-image {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	overflow: hidden;
	background: #f4eef1;
}

.asd-core-cart-drawer__item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.asd-core-cart-drawer__item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.asd-core-cart-drawer__item-name {
	margin: 0;
	font-size: 14px;
	color: #1a1a1a;
	font-weight: 700;
	line-height: 1.25;
}

.asd-core-cart-drawer__item-meta {
	margin: 8px 0 0;
	display: grid;
	gap: 6px;
	font-size: 12.5px;
	line-height: 1.35;
}

.asd-core-cart-drawer__item-meta-row {
	display: grid;
	grid-template-columns: minmax(68px, 40%) 1fr;
	gap: 10px;
	align-items: baseline;
}

.asd-core-cart-drawer__item-meta dt,
.asd-core-cart-drawer__item-meta dd {
	margin: 0;
}

.asd-core-cart-drawer__item-meta dt {
	color: #8a9b99;
	font-weight: 400;
}

.asd-core-cart-drawer__item-meta dd {
	color: #123b39;
}

/* Shopper's own notes, grouped in their own tinted block so they read as
 * personal requests distinct from the configuration details. */
.asd-core-cart-drawer__item-notes {
	margin: 10px 0 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #fbeaf0;
}

.asd-core-cart-drawer__item-notes-label {
	margin: 0 0 4px;
	font-size: 10.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-weight: 600;
	color: #b9376b;
}

.asd-core-cart-drawer__item-note {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #6f1f42;
}

.asd-core-cart-drawer__item-note + .asd-core-cart-drawer__item-note {
	margin-top: 4px;
}

.asd-core-cart-drawer__item-price {
	margin: 10px 0 0;
	font-size: 15px;
	color: #b9376b;
	font-weight: 700;
}

.asd-core-cart-drawer__item-qty {
	color: #767676;
	font-weight: 400;
}

.asd-core-cart-drawer__item-remove {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #b7b7b7;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

.asd-core-cart-drawer__item-remove:hover {
	color: #a00;
}

/* Footer */
.asd-core-cart-drawer__footer {
	flex: 0 0 auto;
	padding: 16px 18px;
	border-top: 1px solid #e3e3e3;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.asd-core-cart-drawer__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13.5px;
	color: #1a1a1a;
	margin: 0 0 4px;
}

.asd-core-cart-drawer__checkout {
	text-align: center;
	border-radius: 999px;
	padding: 10px;
	font-size: 13px;
	text-decoration: none;
	display: block;
	background: #b9376b;
	color: #fff;
}

.asd-core-cart-drawer__footer .asd-core-empty-cart {
	display: block;
	text-align: center;
	border-radius: 999px;
	padding: 9px;
	font-size: 12.5px;
	text-decoration: none;
	margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.asd-core-cart-drawer__panel,
	.asd-core-cart-drawer__backdrop,
	.asd-core-cart-tab {
		transition: none;
	}
}
