/* Drink Cart Popup — v1.1 premium redesign for Nomaro (teal + orange) */

.dcp-panel,
.dcp-cart-trigger {
	--dcp-teal: #163832;
	--dcp-teal-dark: #0c211d;
	--dcp-orange: #e8622c;
	--dcp-orange-dark: #cc4f1d;
	--dcp-cream: #fbf9f4;
	--dcp-border: #ece7da;
	--dcp-text: #1c2b25;
	--dcp-muted: #8d9590;
	--dcp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dcp-cart-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	color: inherit;
	padding: 6px;
}
.dcp-cart-count,
.dcp-custom-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--dcp-orange, #e8622c);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	padding: 3.5px 6px;
	border-radius: 999px;
	min-width: 16px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}
@keyframes dcpBump {
	0% { transform: scale(1); }
	45% { transform: scale(1.4); }
	100% { transform: scale(1); }
}
.dcp-bump { animation: dcpBump .35s cubic-bezier(.34,1.56,.64,1); }

.dcp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(12, 25, 21, 0.5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease;
	z-index: 99998;
}
.dcp-overlay.dcp-open {
	opacity: 1;
	visibility: visible;
}

.dcp-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 410px;
	max-width: 92vw;
	background: #fff;
	box-shadow: -20px 0 50px rgba(12,25,21,0.16);
	border-top-left-radius: 18px;
	border-bottom-left-radius: 18px;
	overflow: hidden;
	transform: translateX(100%);
	transition: transform .4s cubic-bezier(.32,.72,0,1);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	font-family: var(--dcp-font);
	color: var(--dcp-text);
}
.dcp-panel.dcp-open {
	transform: translateX(0);
}

.dcp-spinner {
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.72);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 5;
	pointer-events: none;
}
.dcp-panel.dcp-busy .dcp-spinner { display: flex; }
.dcp-spinner span {
	width: 28px;
	height: 28px;
	border: 3px solid var(--dcp-border);
	border-top-color: var(--dcp-orange);
	border-radius: 50%;
	animation: dcpSpin .7s linear infinite;
}
@keyframes dcpSpin { to { transform: rotate(360deg); } }

.dcp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 26px;
	background: linear-gradient(150deg, var(--dcp-teal) 0%, var(--dcp-teal-dark) 100%);
	color: #fff;
	flex-shrink: 0;
}
.dcp-header h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: .1px;
}
.dcp-badge {
	background: var(--dcp-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}
.dcp-header-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}
.dcp-panel .dcp-link-btn {
	all: unset;
	cursor: pointer;
	color: rgba(255,255,255,0.7) !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	font-family: var(--dcp-font) !important;
	text-decoration: none !important;
	border: none !important;
	border-bottom: 1px solid rgba(255,255,255,0.3) !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 0 1px !important;
	line-height: 1.2 !important;
	transition: color .15s ease, border-color .15s ease;
}
.dcp-panel .dcp-link-btn:hover { color: #fff !important; border-color: #fff !important; }

.dcp-panel .dcp-close {
	all: unset;
	cursor: pointer;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: rgba(255,255,255,0.1) !important;
	border: none !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	font-size: 20px !important;
	line-height: 1 !important;
	color: #fff !important;
	box-shadow: none !important;
	transition: background .15s ease, transform .15s ease;
	flex-shrink: 0;
}
.dcp-panel .dcp-close:hover { background: rgba(255,255,255,0.22) !important; transform: rotate(90deg); }

.dcp-items {
	flex: 1;
	overflow-y: auto;
	padding: 8px 26px;
	background: var(--dcp-cream);
}
.dcp-items::-webkit-scrollbar { width: 5px; }
.dcp-items::-webkit-scrollbar-thumb { background: #ddd6c4; border-radius: 10px; }

.dcp-item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 30px 10px 26px;
	border-bottom: 1px solid var(--dcp-border);
	transition: opacity .18s ease, transform .18s ease;
}
.dcp-item-removing {
	opacity: 0;
	transform: translateX(16px) scale(.98);
}
.dcp-row-updating {
	opacity: .55;
	transition: opacity .15s ease;
}
.dcp-item-img {
	width: 128px;
	height: 128px;
	object-fit: cover;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--dcp-border);
	box-shadow: 0 10px 24px rgba(22,56,50,0.12);
	margin-bottom: 14px;
}
.dcp-item-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--dcp-text);
	letter-spacing: -.1px;
	margin-bottom: 14px;
}
.dcp-item-controls {
	display: flex;
	align-items: center;
	gap: 18px;
}
.dcp-item-price {
	font-weight: 700;
	font-size: 16px;
	color: var(--dcp-teal);
	letter-spacing: -.2px;
}

.dcp-item-remove {
	all: unset;
	cursor: pointer;
	box-sizing: border-box !important;
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	color: var(--dcp-muted) !important;
	width: 28px !important;
	height: 28px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #fff !important;
	border: 1px solid var(--dcp-border) !important;
	box-shadow: none !important;
	transition: background .15s ease, color .15s ease;
}
.dcp-item-remove:hover { color: #d9534f !important; background: #fbeaea !important; border-color: #f3c9c9 !important; }
.dcp-item-remove svg { width: 14px; height: 14px; pointer-events: none; }

.dcp-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--dcp-border);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.dcp-qty-plus,
.dcp-qty-minus {
	all: unset;
	cursor: pointer;
	box-sizing: border-box !important;
	width: 32px !important;
	height: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #fff !important;
	font-size: 16px !important;
	color: var(--dcp-teal) !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	transition: background .15s ease;
}
.dcp-qty-plus:hover,
.dcp-qty-minus:hover { background: var(--dcp-cream) !important; }
.dcp-qty-value {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 32px !important;
	border-left: 1px solid var(--dcp-border) !important;
	border-right: 1px solid var(--dcp-border) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: var(--dcp-text) !important;
	background: #fff !important;
	user-select: none;
}

.dcp-empty-state {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 30px 32px 44px;
	background: var(--dcp-cream);
	color: var(--dcp-muted);
}
.dcp-empty-state svg { color: #d7d0be; margin-bottom: 8px; }
.dcp-empty-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--dcp-text);
	margin: 6px 0 3px;
}
.dcp-empty-sub {
	font-size: 13.5px;
	color: var(--dcp-muted);
	margin: 0 0 22px;
}
.dcp-empty-state .dcp-btn {
	width: auto !important;
	flex: none !important;
	align-self: center;
	padding: 12px 28px !important;
}

.dcp-coupon {
	display: flex;
	gap: 8px;
	padding: 18px 26px 0;
	background: #fff;
	flex-shrink: 0;
}
.dcp-coupon input {
	flex: 1;
	border: 1px solid var(--dcp-border);
	border-radius: 999px;
	padding: 11px 18px;
	font-size: 13px;
	background: var(--dcp-cream);
	transition: border-color .15s ease, background .15s ease;
}
.dcp-coupon input:focus {
	outline: none;
	border-color: var(--dcp-orange);
	background: #fff;
}
.dcp-coupon button {
	all: unset;
	box-sizing: border-box !important;
	cursor: pointer;
	background: var(--dcp-teal) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 0 22px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	font-family: var(--dcp-font) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 40px !important;
	flex-shrink: 0;
	transition: background .15s ease;
}
.dcp-coupon button:hover { background: var(--dcp-teal-dark) !important; }
.dcp-coupon-msg {
	font-size: 12px;
	font-weight: 500;
	padding: 0 26px;
	margin: 8px 0 0;
	min-height: 14px;
	background: #fff;
}
.dcp-coupon-msg.success { color: #1e9e5c; }
.dcp-coupon-msg.error { color: #d9534f; }

.dcp-totals {
	padding: 18px 26px 4px;
	background: #fff;
	flex-shrink: 0;
}
.dcp-row {
	display: flex;
	justify-content: space-between;
	font-size: 13.5px;
	color: #66716a;
	padding: 5px 0;
}
.dcp-total-row {
	font-size: 17px;
	font-weight: 700;
	color: var(--dcp-text);
	padding-top: 12px;
	border-top: 1px dashed var(--dcp-border);
	margin-top: 8px;
	letter-spacing: -.3px;
}
.dcp-discount-row {
	color: #1e9e5c !important;
	font-weight: 600;
}
.dcp-discount-row span { color: #1e9e5c !important; }

.dcp-applied-coupons {
	padding: 0 26px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.dcp-applied-coupons:not(:empty) { margin-top: 8px; }
.dcp-coupon-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eaf7ef;
	border: 1px solid #cdeeda;
	color: #1e9e5c;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 6px 4px 10px;
	border-radius: 999px;
}
.dcp-coupon-chip-code { text-transform: uppercase; letter-spacing: .3px; }
.dcp-coupon-chip-amt { color: #1e9e5c; opacity: .85; }
.dcp-coupon-chip-remove {
	all: unset;
	cursor: pointer;
	box-sizing: border-box !important;
	flex-shrink: 0 !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	max-width: 16px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: rgba(30,158,92,0.15) !important;
	color: #1e9e5c !important;
	font-size: 12px !important;
	line-height: 1 !important;
}
.dcp-coupon-chip-remove:hover { background: rgba(30,158,92,0.3) !important; }

.dcp-actions {
	display: flex;
	gap: 10px;
	padding: 20px 26px 26px;
	background: #fff;
	flex-shrink: 0;
	box-shadow: 0 -8px 20px -12px rgba(12,25,21,0.15);
}
.dcp-btn {
	all: unset;
	box-sizing: border-box !important;
	flex: 1;
	text-align: center;
	padding: 14px !important;
	border-radius: 999px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	font-family: var(--dcp-font) !important;
	text-decoration: none !important;
	cursor: pointer;
	letter-spacing: .1px;
	display: block;
	transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.dcp-btn:active { transform: scale(.96); }
.dcp-btn-outline {
	border: 1.5px solid var(--dcp-teal) !important;
	color: var(--dcp-teal) !important;
	background: #fff !important;
}
.dcp-btn-outline:hover { background: var(--dcp-cream) !important; }
.dcp-btn-primary {
	background: var(--dcp-orange) !important;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(232,98,44,0.32) !important;
}
.dcp-btn-primary:hover { background: var(--dcp-orange-dark) !important; }

body.dcp-locked { overflow: hidden; }

@media (max-width: 460px) {
	.dcp-panel {
		width: 100vw;
		border-radius: 0;
	}
}
