:root {
	--vcs-primary: #123257;
	--vcs-secondary: #f47726;
	--vcs-secondary-strong: #db651a;
	--vcs-surface: #ffffff;
	--vcs-surface-soft: #f6f8fb;
	--vcs-border: #dce3ec;
	--vcs-text: #16324f;
	--vcs-muted: #6f8092;
	--vcs-shadow: 0 18px 54px rgba(18, 50, 87, 0.16);
	--vcs-radius: 8px;
	--vcs-adminbar: 0px;
}

/* Quando a barra do WP Admin está visível, compensamos o topo */
.admin-bar {
	--vcs-adminbar: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar {
		--vcs-adminbar: 46px;
	}
}

.vcs-root {
	font-family: 'Inter', sans-serif;
}

.vcs-floating-toggle {
	align-items: center;
	background: var(--vcs-secondary);
	border: 0;
	border-radius: 999px;
	bottom: 22px;
	box-shadow: var(--vcs-shadow);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	gap: 10px;
	padding: 12px 16px;
	pointer-events: auto;
	position: fixed;
	right: 20px;
	z-index: 99999;
}

.vcs-floating-counter {
	background: #fff;
	border-radius: 999px;
	color: var(--vcs-secondary);
	font-size: 12px;
	font-weight: 700;
	min-width: 24px;
	padding: 2px 8px;
	text-align: center;
}

.vcs-overlay {
	background: rgba(11, 24, 40, 0.45);
	bottom: 0;
	left: 0;
	pointer-events: auto;
	position: fixed;
	right: 0;
	top: var(--vcs-adminbar);
	z-index: 99998;
}

.vcs-drawer {
	background: var(--vcs-surface);
	bottom: 0;
	box-shadow: var(--vcs-shadow);
	display: flex;
	flex-direction: column;
	max-width: 460px;
	pointer-events: auto;
	position: fixed;
	right: 0;
	top: var(--vcs-adminbar);
	transform: translateX(101%);
	transition: transform 0.24s ease;
	width: min(95vw, 460px);
	z-index: 99999;
}

.vcs-root.is-open .vcs-drawer {
	transform: translateX(0);
}

.vcs-drawer__header,
.vcs-drawer__footer {
	padding: 20px;
}

.vcs-drawer__header {
	border-bottom: 1px solid var(--vcs-border);
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.vcs-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 20px;
}

.vcs-badge {
	background: rgba(244, 119, 38, 0.12);
	border-radius: 999px;
	color: var(--vcs-secondary);
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 7px 12px;
	text-transform: uppercase;
}

.vcs-title {
	color: var(--vcs-primary);
	font-size: 24px;
	margin: 10px 0 0;
}

.vcs-close {
	background: transparent;
	border: 1px solid var(--vcs-border);
	border-radius: 999px;
	cursor: pointer;
	font-size: 16px;
	height: 32px;
	line-height: 1;
	width: 32px;
}

.vcs-section {
	background: var(--vcs-surface-soft);
	border: 1px solid var(--vcs-border);
	border-radius: 16px;
	margin-bottom: 14px;
	padding: 14px;
}

.vcs-section__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

.vcs-section__head h4 {
	color: var(--vcs-primary);
	font-size: 15px;
	margin: 0;
}

.vcs-section__head span {
	color: var(--vcs-muted);
	font-size: 13px;
	font-weight: 700;
}

.vcs-list {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vcs-item {
	background: #fff;
	border: 1px solid var(--vcs-border);
	border-radius: 12px;
	display: grid;
	gap: 10px;
	grid-template-columns: 56px 1fr auto;
	padding: 9px;
}

.vcs-item__thumb img {
	border-radius: 8px;
	height: 56px;
	object-fit: cover;
	width: 56px;
}

.vcs-item__name {
	color: var(--vcs-text);
	display: block;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.vcs-item__meta {
	color: var(--vcs-muted);
	display: flex;
	font-size: 12px;
	gap: 10px;
	margin-top: 4px;
}

.vcs-item__remove {
	color: #bc2f2f;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
}

.vcs-chip {
	background: rgba(18, 50, 87, 0.1);
	border-radius: 999px;
	color: var(--vcs-primary);
	font-weight: 600;
	padding: 2px 8px;
}

.vcs-empty {
	color: var(--vcs-muted);
	font-size: 13px;
	margin: 0;
}

.vcs-drawer__footer {
	border-top: 1px solid var(--vcs-border);
	display: grid;
	gap: 16px;
}

.vcs-total-line {
	align-items: center;
	display: flex;
	font-size: 14px;
	justify-content: space-between;
}

.vcs-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}

.vcs-button {
	border-radius: var(--vcs-radius);
	font-size: 14px;
	font-weight: 600;
	min-height: 46px;
	padding: 12px 14px;
	text-align: center;
	text-decoration: none;
}

.vcs-button--ghost {
	background: rgba(18, 50, 87, 0.08);
	color: var(--vcs-primary);
}

.vcs-button--primary {
	background: var(--vcs-secondary);
	color: #fff;
}

.vcs-button--primary:hover {
	background: var(--vcs-secondary-strong);
}

@media (max-width: 767px) {
	.vcs-floating-toggle {
		bottom: 14px;
		right: 14px;
	}

	.vcs-drawer {
		max-width: 100vw;
		width: 100vw;
	}

	.vcs-actions {
		grid-template-columns: 1fr;
	}
}

/* ── Ícone de carrinho do header (shortcode [vcs_cart_icon]) ────────────── */

.vcs-header-cart {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--vcs-primary, #123257);
	cursor: pointer;
	display: inline-flex;
	padding: 4px;
	position: relative;
}

.vcs-header-cart__icon {
	align-items: center;
	display: inline-flex;
	height: 20px;
	width: 20px;
}

.vcs-header-cart__icon svg {
	display: block;
}

.vcs-header-cart__badge {
	align-items: center;
	background: var(--vcs-secondary, #f47726);
	border-radius: 9999px;
	color: #fff;
	display: flex;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 400;
	height: 20px;
	justify-content: center;
	min-width: 20px;
	padding: 1.5px 2.5px;
	position: absolute;
	right: -8px;
	text-align: center;
	top: -8px;
	line-height: 1;
}

/* ── Toast de remoção de item ───────────────────────────────────────────── */

.vcs-toast {
	align-items: center;
	background: var(--vcs-primary, #123257);
	border-radius: 14px;
	bottom: 32px;
	box-shadow: 0 8px 32px rgba(18, 50, 87, 0.22);
	color: #fff;
	display: flex;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	gap: 12px;
	left: 50%;
	max-width: 360px;
	opacity: 0;
	padding: 14px 18px;
	pointer-events: none;
	position: fixed;
	transform: translateX(-50%) translateY(16px);
	transition: opacity 0.28s ease, transform 0.28s ease;
	width: calc(100vw - 48px);
	z-index: 999999;
}

.vcs-toast--visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.vcs-toast--out {
	opacity: 0;
	transform: translateX(-50%) translateY(16px);
}

.vcs-toast__icon {
	align-items: center;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex-shrink: 0;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.vcs-toast__msg {
	flex: 1;
	line-height: 1.4;
}

.vcs-toast__msg strong {
	font-weight: 700;
}

.vcs-toast__close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	display: flex;
	flex-shrink: 0;
	font-size: 14px;
	height: 28px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	transition: color 0.15s;
	width: 28px;
}

.vcs-toast__close:hover {
	color: #fff;
}

@media (max-width: 480px) {
	.vcs-toast {
		bottom: 20px;
		font-size: 13px;
		max-width: 100%;
		width: calc(100vw - 24px);
	}
}
