/* CantikSalud · Checkout — carrito lateral. Solo usa las variables --cck-*. */

html.cck-lock, html.cck-lock body { overflow: hidden; }

.cck-drawer { position: fixed; inset: 0; z-index: 100000; font-family: var(--cck-font); color: var(--cck-ink); }
.cck-drawer[hidden] { display: none; }
.cck-drawer *, .cck-drawer *::before, .cck-drawer *::after { box-sizing: border-box; }

.cck-drawer__shade { position: absolute; inset: 0; background: rgba(15, 17, 20, .45); opacity: 0; transition: opacity .25s ease; }
.cck-drawer.is-open .cck-drawer__shade { opacity: 1; }

.cck-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(440px, 100vw);
	display: flex; flex-direction: column;
	background: var(--cck-bg);
	box-shadow: -20px 0 50px rgba(0, 0, 0, .14);
	transform: translateX(100%);
	transition: transform .26s cubic-bezier(.2, .8, .2, 1);
	outline: none;
}
.cck-drawer.is-open .cck-drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.cck-drawer__panel, .cck-drawer__shade { transition: none; }
}

.cck-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--cck-border); }
.cck-drawer__head h2 { margin: 0; font: var(--cck-fw-head) 1.15rem/1.2 var(--cck-font-head); color: var(--cck-ink); letter-spacing: -.01em; }
.cck-drawer__n { color: var(--cck-muted); font-weight: 400; }
.cck-x { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--cck-ink); cursor: pointer; }
.cck-x:hover { background: var(--cck-surface); }
.cck-x:focus-visible, .cck-qty button:focus-visible, .cck-link:focus-visible, .cck-btn:focus-visible { outline: 2px solid var(--cck-primary); outline-offset: 2px; }

.cck-drawer__ship { padding: 14px 20px; border-bottom: 1px solid var(--cck-border); background: var(--cck-surface); font-size: .875rem; }
.cck-drawer__ship p { margin: 0 0 8px; }
.cck-bar { height: 6px; border-radius: 99px; background: var(--cck-border); overflow: hidden; }
.cck-bar span { display: block; height: 100%; border-radius: inherit; background: var(--cck-primary); transition: width .3s ease; }

.cck-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; transition: opacity .15s; }
.cck-drawer.is-busy .cck-drawer__body, .cck-drawer.is-busy .cck-drawer__foot { opacity: .55; pointer-events: none; }

.cck-items { list-style: none; margin: 0; padding: 0; }
.cck-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--cck-border); }
.cck-item:last-child { border-bottom: 0; }
.cck-item__img { display: block; width: 72px; height: 72px; border-radius: var(--cck-r-s); overflow: hidden; background: var(--cck-surface); border: 1px solid var(--cck-border); }
.cck-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cck-noimg { display: block; width: 100%; height: 100%; }
.cck-item__main { min-width: 0; }
.cck-item__name { display: block; color: var(--cck-ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cck-item__name:hover { text-decoration: underline; }
.cck-item__meta { margin-top: 3px; color: var(--cck-muted); font-size: .8rem; line-height: 1.4; }
.cck-item__row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cck-item__price { text-align: right; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.cck-item__price del { display: block; color: var(--cck-muted); font-weight: 400; font-size: .8rem; }

.cck-qty { display: inline-flex; align-items: center; border: 1px solid var(--cck-border); border-radius: 999px; height: 34px; }
.cck-qty button { width: 34px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--cck-ink); font-size: 1.1rem; line-height: 1; cursor: pointer; border-radius: 999px; }
.cck-qty button:hover:not(:disabled) { background: var(--cck-surface); }
.cck-qty button:disabled { opacity: .35; cursor: default; }
.cck-qty span { min-width: 22px; text-align: center; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cck-qty-fixed { color: var(--cck-muted); font-size: .875rem; }
.cck-link { padding: 0; border: 0; background: none; color: var(--cck-muted); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.cck-link:hover { color: var(--cck-ink); }

.cck-empty { padding: 48px 0; text-align: center; color: var(--cck-muted); }
.cck-empty p { margin: 0 0 18px; }
.cck-error { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--cck-r-s); background: #fef2f2; color: var(--cck-danger); font-size: .85rem; }

.cck-drawer__foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cck-border); background: var(--cck-bg); }
.cck-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; }
.cck-sub strong { font-size: 1.15rem; }
.cck-note { margin: 4px 0 14px; color: var(--cck-muted); font-size: .8rem; }

.cck-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px;
	border: 1px solid var(--cck-primary); border-radius: var(--cck-btn-r);
	background: var(--cck-primary); color: var(--cck-on-primary) !important;
	font: var(--cck-btn-fw) 1rem/1.2 var(--cck-font);
	text-transform: var(--cck-btn-tt); letter-spacing: var(--cck-btn-ls);
	text-decoration: none !important; cursor: pointer;
	transition: filter .15s, transform .15s;
}
.cck-btn:hover { filter: brightness(.92); }
.cck-btn:active { transform: translateY(1px); }
.cck-btn--pay { width: 100%; min-height: 54px; font-size: 1.05rem; }
.cck-btn--ghost { background: transparent; color: var(--cck-primary) !important; }
.cck-viewcart { display: block; margin-top: 10px; text-align: center; color: var(--cck-muted); font-size: .85rem; }
.cck-trustline { margin: 10px 0 0; text-align: center; color: var(--cck-muted); font-size: .75rem; }

/* [cantik_carrito] */
.cck-cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.cck-count {
	position: absolute; top: -6px; right: -8px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 99px; background: var(--cck-primary); color: var(--cck-on-primary);
	font: 600 11px/18px var(--cck-font); text-align: center;
}
.cck-count[hidden] { display: none; }
