/* Sticky footer cart â€” theme tokens */
.rim-footer-cart,
.rim-order__footer-cart,
.rim-order__mobile-cart {
	--rim-order-accent: var(--rim-primary, #8b0f1a);
	--rim-order-primary: var(--rim-primary, #8b0f1a);
	--rim-order-gold: var(--rim-secondary, #d4af37);
	--rim-order-cream: var(--rim-background, #fff8f0);
	--rim-order-extras: var(--go-extras, #a67c52);
	--rim-order-header-text: var(--go-text-on-primary, #fff);
	--rim-order-text: var(--rim-text, #2b1f1a);
	--rim-order-muted: var(--rim-muted, #6b5c55);
	--rim-order-border: var(--rim-border, rgba(43, 31, 26, 0.12));
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	bottom: var(--rim-keyboard-inset, 0px);
	z-index: 100040;
	pointer-events: none;
	transition: bottom 0.12s ease-out;
}

.rim-footer-cart.is-visible,
.rim-order__footer-cart.is-visible,
.rim-order__mobile-cart.is-visible {
	pointer-events: auto;
}

/* Collapsed bar — premium sticky dock (summary + primary CTA) */
.rim-footer-cart__bar,
.rim-order__footer-cart-bar,
.rim-order__mobile-cart-bar {
	display: grid;
	grid-template-columns: minmax(6.5rem, 0.95fr) minmax(0, 1.35fr);
	gap: 0.6rem;
	align-items: stretch;
	padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
	background: var(--go-surface, var(--go-page-bg, #fffefb));
	border-top: 1px solid color-mix(in srgb, var(--go-accent, var(--rim-order-gold, #d4af37)) 42%, var(--go-border, rgba(43, 31, 26, 0.12)));
	box-shadow:
		0 -1px 0 color-mix(in srgb, var(--go-accent, #d4af37) 22%, transparent),
		0 -10px 28px rgba(20, 14, 12, 0.08),
		0 -2px 8px rgba(20, 14, 12, 0.04);
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background 0.2s ease;
	backdrop-filter: none;
}

.rim-footer-cart.is-visible .rim-footer-cart__bar,
.rim-order__footer-cart.is-visible .rim-order__footer-cart-bar,
.rim-order__mobile-cart.is-visible .rim-order__mobile-cart-bar {
	transform: translateY(0);
}

.rim-footer-cart.is-highlight .rim-footer-cart__bar,
.rim-order__footer-cart.is-highlight .rim-order__footer-cart-bar,
.rim-order__mobile-cart.is-highlight .rim-order__mobile-cart-bar {
	box-shadow:
		0 -1px 0 color-mix(in srgb, var(--go-accent, #d4af37) 45%, transparent),
		0 -14px 32px color-mix(in srgb, var(--go-button-bg, var(--rim-order-primary, #8b0f1a)) 18%, transparent),
		0 -6px 16px rgba(20, 14, 12, 0.08);
}

@keyframes rim-footer-cart-bounce {
	0% {
		transform: translateY(0);
	}
	16% {
		transform: translateY(-16px);
	}
	32% {
		transform: translateY(0);
	}
	48% {
		transform: translateY(-9px);
	}
	64% {
		transform: translateY(0);
	}
	80% {
		transform: translateY(-4px);
	}
	100% {
		transform: translateY(0);
	}
}

.rim-footer-cart.is-highlight .rim-footer-cart__bar,
.rim-order__footer-cart.is-highlight .rim-order__footer-cart-bar,
.rim-order__mobile-cart.is-highlight .rim-order__mobile-cart-bar {
	animation: rim-footer-cart-bounce 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.rim-footer-cart__icon-wrap,
.rim-order__footer-cart-icon-wrap,
.rim-order__mobile-cart-icon-wrap {
	display: none;
}

.rim-footer-cart__badge,
.rim-order__footer-cart-badge,
.rim-order__mobile-cart-badge {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rim-footer-cart__badge.is-pulse,
.rim-order__footer-cart-badge.is-pulse,
.rim-order__mobile-cart-badge.is-pulse {
	animation: none;
}

.rim-footer-cart__summary,
.rim-order__footer-cart-summary,
.rim-order__mobile-cart-summary {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.14rem;
	min-width: 0;
	min-height: 3.35rem;
	padding: 0.55rem 0.85rem 0.55rem 0.95rem;
	border: 1px solid color-mix(in srgb, var(--go-accent, var(--rim-order-gold, #d4af37)) 28%, var(--go-border, rgba(43, 31, 26, 0.12)));
	border-radius: 14px;
	background: var(--go-card-bg, #fff);
	box-shadow:
		inset 3px 0 0 var(--go-accent, var(--rim-order-gold, #d4af37)),
		0 2px 10px rgba(20, 14, 12, 0.05);
}

.rim-footer-cart__item-summary,
.rim-order__footer-item-summary,
.rim-order__mobile-item-summary {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--go-text-muted, var(--rim-order-muted, rgba(43, 31, 26, 0.72)));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rim-footer-cart__total,
.rim-order__footer-cart-total,
.rim-order__mobile-cart-total {
	font-size: 1.14rem;
	font-weight: 800;
	line-height: 1.15;
	color: var(--go-primary, var(--rim-order-primary, #8b0f1a));
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
}

.rim-footer-cart__toggle,
.rim-order__footer-cart-toggle,
.rim-order__mobile-cart-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 3.35rem;
	padding: 0.7rem 1rem;
	border: 1px solid color-mix(in srgb, var(--go-accent, #d4af37) 35%, var(--go-button-bg, var(--rim-order-primary, #8b0f1a)));
	border-radius: 14px;
	background:
		linear-gradient(180deg, color-mix(in srgb, #fff 14%, var(--go-button-bg, var(--rim-order-primary, #8b0f1a))) 0%, var(--go-button-bg, var(--rim-order-primary, #8b0f1a)) 48%),
		var(--go-button-bg, var(--rim-order-primary, #8b0f1a));
	color: var(--go-button-text, var(--go-text-on-primary, #fff));
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
	cursor: pointer;
	box-shadow:
		var(--go-finish-button-shadow, 0 8px 20px color-mix(in srgb, var(--go-button-bg, #8b0f1a) 28%, transparent)),
		inset 0 1px 0 rgba(255, 255, 255, 0.16);
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rim-footer-cart__toggle::after,
.rim-order__footer-cart-toggle::after,
.rim-order__mobile-cart-toggle::after {
	content: "\2192";
	font-weight: 700;
	opacity: 0.92;
	transform: translateX(0);
	transition: transform 0.15s ease;
}

.rim-footer-cart__toggle:hover,
.rim-order__footer-cart-toggle:hover,
.rim-order__mobile-cart-toggle:hover {
	background:
		linear-gradient(180deg, color-mix(in srgb, #fff 10%, var(--go-primary-hover, #6f0c15)) 0%, var(--go-primary-hover, color-mix(in srgb, var(--go-button-bg, #8b0f1a) 88%, #000)) 55%),
		var(--go-primary-hover, color-mix(in srgb, var(--go-button-bg, #8b0f1a) 88%, #000));
	filter: saturate(1.04);
}

.rim-footer-cart__toggle:hover::after,
.rim-order__footer-cart-toggle:hover::after,
.rim-order__mobile-cart-toggle:hover::after {
	transform: translateX(2px);
}

.rim-footer-cart__toggle:active,
.rim-order__footer-cart-toggle:active,
.rim-order__mobile-cart-toggle:active {
	transform: translateY(1px);
}

/* Sheet overlay */
.rim-footer-cart__sheet,
.rim-order__footer-cart-sheet,
.rim-order__mobile-cart-sheet {
	position: fixed;
	inset: 0;
	z-index: 100045;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: rgba(43, 31, 26, 0.52);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rim-footer-cart__sheet.is-open,
.rim-order__footer-cart-sheet.is-open,
.rim-order__mobile-cart-sheet.is-open {
	opacity: 1;
	visibility: visible;
}

/* Panel */
.rim-footer-cart__panel,
.rim-order__footer-cart-panel,
.rim-order__mobile-cart-panel {
	position: relative;
	max-height: 88vh;
	max-height: 88dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 28px 28px 0 0;
	box-shadow: 0 -16px 48px rgba(43, 31, 26, 0.2);
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
}

.rim-footer-cart__sheet.is-open .rim-footer-cart__panel,
.rim-order__footer-cart-sheet.is-open .rim-order__footer-cart-panel,
.rim-order__mobile-cart-sheet.is-open .rim-order__mobile-cart-panel {
	transform: translateY(0);
}

.rim-footer-cart__grabber {
	display: flex;
	justify-content: center;
	padding: 0.55rem 0 0.2rem;
	background: var(--rim-order-primary, #8b0f1a);
}

.rim-footer-cart__grabber span {
	display: block;
	width: 2.4rem;
	height: 0.28rem;
	border-radius: 999px;
	background: color-mix(in srgb, #fff 55%, transparent);
}

/* Theme header — burgundy bar for "Ihre Bestellung" */
.rim-footer-cart__panel-head,
.rim-order__footer-cart-panel-head,
.rim-order__mobile-cart-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.55rem 1.15rem 0.9rem;
	background: var(--rim-order-primary, #8b0f1a);
	border-bottom: 2px solid var(--rim-order-gold, #d4af37);
	box-shadow: none;
}

.rim-footer-cart__panel-head h3,
.rim-order__footer-cart-panel-head h3,
.rim-order__mobile-cart-panel-head h3 {
	margin: 0;
	font-family: var(--font-serif, "Playfair Display", Georgia, serif);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--go-text-on-primary, #fff);
	letter-spacing: 0;
}

.rim-footer-cart__panel-close,
.rim-order__footer-cart-panel-close,
.rim-order__mobile-cart-panel-close {
	width: 2.15rem;
	height: 2.15rem;
	padding: 0;
	border: 1.5px solid color-mix(in srgb, #fff 45%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, #fff 10%, transparent);
	color: var(--go-text-on-primary, #fff);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rim-footer-cart__panel-close:hover,
.rim-order__footer-cart-panel-close:hover,
.rim-order__mobile-cart-panel-close:hover {
	background: color-mix(in srgb, #fff 18%, transparent);
	border-color: var(--go-text-on-primary, #fff);
}

.rim-footer-cart__status {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1rem;
	pointer-events: none;
	background: color-mix(in srgb, #2b1f1a 28%, transparent);
	backdrop-filter: blur(1px);
}

.rim-footer-cart__status[hidden] {
	display: none !important;
}

.rim-footer-cart__status-circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: min(9.5rem, 42vw);
	height: min(9.5rem, 42vw);
	padding: 1rem;
	border-radius: 999px;
	background: #fff;
	border: 3px solid var(--rim-order-gold, #d4af37);
	box-shadow: 0 14px 36px rgba(43, 31, 26, 0.28);
	text-align: center;
}

.rim-footer-cart__status.is-added .rim-footer-cart__status-circle {
	border-color: #2f9e64;
}

.rim-footer-cart__status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	flex-shrink: 0;
}

.rim-footer-cart__status-icon.is-spinner {
	border-radius: 999px;
	border: 3px solid color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 22%, transparent);
	border-top-color: var(--rim-order-primary, #8b0f1a);
	animation: rim-footer-cart-spin 0.7s linear infinite;
}

.rim-footer-cart__status-icon.is-check {
	border-radius: 999px;
	background: #2f9e64;
	color: var(--go-text-on-primary, #fff);
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1;
}

.rim-footer-cart__status-text {
	max-width: 7.2rem;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rim-order-primary, #8b0f1a);
}

.rim-footer-cart__status.is-added .rim-footer-cart__status-text {
	color: #1f6b3a;
}

@keyframes rim-footer-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Scrollable items */
.rim-footer-cart__panel-body,
.rim-order__footer-cart-panel-body,
.rim-order__mobile-cart-panel-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.15rem 1rem 0.35rem;
	background: #fff;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--rim-order-gold) 55%, transparent) transparent;
}

.rim-footer-cart__panel-body::-webkit-scrollbar,
.rim-order__footer-cart-panel-body::-webkit-scrollbar,
.rim-order__mobile-cart-panel-body::-webkit-scrollbar {
	width: 6px;
}

.rim-footer-cart__panel-body::-webkit-scrollbar-thumb,
.rim-order__footer-cart-panel-body::-webkit-scrollbar-thumb,
.rim-order__mobile-cart-panel-body::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: color-mix(in srgb, var(--rim-order-gold) 50%, transparent);
}

.rim-footer-cart__items,
.rim-order__footer-cart-panel-items,
.rim-order__mobile-cart-panel-items {
	display: grid;
	gap: 0;
	padding-bottom: 0.15rem;
}

/* Compact receipt-style lines — premium density */
.rim-footer-cart__item,
.rim-order__footer-cart-item,
.rim-order__mobile-cart-item {
	padding: 0.48rem 0.15rem;
	border: none;
	border-bottom: 1px solid color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 10%, #e8dfd4);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.rim-footer-cart__item:first-child,
.rim-order__footer-cart-item:first-child,
.rim-order__mobile-cart-item:first-child,
.rim-footer-cart__item:last-child,
.rim-order__footer-cart-item:last-child,
.rim-order__mobile-cart-item:last-child {
	padding-top: 0.48rem;
	padding-bottom: 0.48rem;
	border-bottom: 1px solid color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 10%, #e8dfd4);
}

.rim-footer-cart__item:last-child,
.rim-order__footer-cart-item:last-child,
.rim-order__mobile-cart-item:last-child {
	border-bottom: none;
}

.rim-footer-cart__item-main {
	display: block;
}

.rim-footer-cart__item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem;
}

.rim-footer-cart__item-headline {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
}

.rim-footer-cart__item-aside {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.28rem;
}

.rim-footer-cart__item-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem;
	margin: 0;
	min-width: 0;
}

.rim-footer-cart__item-qty-prefix {
	flex-shrink: 0;
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--rim-order-primary, #8b0f1a);
	font-variant-numeric: tabular-nums;
}

.rim-footer-cart__item-name {
	font-family: var(--font-serif, "Playfair Display", Georgia, serif);
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	color: var(--rim-order-primary, #8b0f1a);
}

.rim-footer-cart__item-sku,
.rim-footer-cart__item-size {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--rim-order-muted, #6b5b52);
}

.rim-footer-cart__item-size-pill {
	display: none;
}

.rim-footer-cart__item-price {
	flex-shrink: 0;
	margin: 0;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--rim-order-primary, #8b0f1a);
	text-align: right;
	white-space: nowrap;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.rim-footer-cart__item-details {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.rim-footer-cart__item-details:empty {
	display: none;
}

.rim-footer-cart__empty {
	margin: 0;
	padding: 1rem 0.35rem;
	font-size: 0.88rem;
	line-height: 1.45;
	text-align: center;
	color: var(--rim-order-muted, #6b5b52);
}

.rim-footer-cart__item-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.2rem;
	margin: 0;
}

.rim-footer-cart__qty-control {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.05rem;
	padding: 0.05rem;
	border: 1px solid color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 18%, #e8dfd4);
	border-radius: 999px;
	background: #fff;
	flex-shrink: 0;
}

.rim-footer-cart__item-icons {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	flex-shrink: 0;
}

.rim-footer-cart__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.45rem;
	height: 1.45rem;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rim-footer-cart__icon-btn:hover,
.rim-footer-cart__icon-btn:focus-visible {
	background: color-mix(in srgb, var(--rim-order-primary) 7%, transparent);
	outline: none;
}

.rim-footer-cart__icon-svg {
	display: block;
	width: 13px;
	height: 13px;
}

.rim-footer-cart__item-edit,
.rim-order__footer-cart-item-edit,
.rim-order__mobile-cart-item-edit,
.rim-footer-cart__item-remove,
.rim-order__footer-cart-item-remove,
.rim-order__mobile-cart-item-remove {
	color: var(--rim-order-primary, #8b0f1a);
}

.rim-footer-cart__item-extras {
	display: flex;
	flex-wrap: wrap;
	gap: 0.1rem 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rim-footer-cart__item-extras li {
	display: inline;
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1.25;
	color: #8a6f52;
}

.rim-footer-cart__item-sub-addon::before {
	content: "+ ";
	color: var(--rim-order-gold, #d4af37);
	font-weight: 700;
}

.rim-footer-cart__item-extras li + li {
	margin-top: 0;
}

/* Angebot: extras nested under the pizza/dish they belong to */
.rim-footer-cart__item-extras--offer {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.28rem;
	width: 100%;
}

.rim-footer-cart__item-extras--offer > .rim-footer-cart__item-sub-dish {
	display: block;
	font-size: 0.72rem;
	line-height: 1.3;
	color: #6b5340;
}

.rim-footer-cart__item-sub-dish-name {
	display: block;
	font-weight: 600;
}

.rim-footer-cart__item-sub-dish-name::before {
	content: "+ ";
	color: var(--rim-order-gold, #d4af37);
	font-weight: 700;
}

.rim-footer-cart__item-slot-extras {
	display: block;
	margin: 0.12rem 0 0 0.95rem;
	padding: 0;
	list-style: none;
}

.rim-footer-cart__item-slot-extras li {
	display: block;
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1.3;
	color: #8a6f52;
}

.rim-footer-cart__item-slot-extras li::before {
	content: "· ";
	color: var(--go-primary, var(--rim-order-primary, #8b0f1a));
	font-weight: 700;
}

.rim-footer-cart__item-slot-extras li + li {
	margin-top: 0.08rem;
}

.rim-footer-cart__item-notes {
	margin: 0.08rem 0 0;
	padding: 0;
	font-size: 0.66rem;
	font-style: italic;
	line-height: 1.25;
	color: var(--rim-order-muted);
}

.rim-footer-cart__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.28rem;
	height: 1.28rem;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: transparent;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	color: var(--rim-order-primary, #8b0f1a);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rim-footer-cart__qty-btn--plus {
	background: var(--rim-order-primary, #8b0f1a);
	color: var(--go-text-on-primary, #fff);
}

.rim-footer-cart__qty-btn:hover:not(:disabled) {
	background: color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 10%, transparent);
}

.rim-footer-cart__qty-btn--plus:hover:not(:disabled) {
	background: color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 88%, #000);
}

.rim-footer-cart__qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.rim-footer-cart__qty-value {
	min-width: 0.9rem;
	padding: 0 0.05rem;
	text-align: center;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--rim-order-text);
}

/* Legacy row aliases — keep for older templates */
.rim-footer-cart__item-row {
	display: contents;
}

/* Footer — totals + checkout */
.rim-footer-cart__panel-footer,
.rim-order__footer-cart-panel-footer,
.rim-order__mobile-cart-panel-footer {
	flex-shrink: 0;
	padding: 0.85rem 1.15rem calc(1.05rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 12%, transparent);
	background: #fff;
}

.rim-footer-cart__delivery-meta {
	margin: 0.35rem 0;
}

.rim-footer-cart__delivery-meta[hidden] {
	display: none !important;
}

.rim-footer-cart__totals {
	margin-bottom: 0.85rem;
	padding-top: 0;
	border-top: none;
}

.rim-footer-cart__subtotal-row {
	margin-bottom: 0;
	padding-top: 0.65rem;
	border-top: 1px solid color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 12%, transparent);
}

.rim-footer-cart__discount-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.35rem 0 0;
	font-size: 0.92rem;
	color: #1b7a3d;
}

.rim-footer-cart__discount-row[hidden] {
	display: none !important;
}

.rim-footer-cart__discount-row strong {
	font-weight: 700;
	color: #1b7a3d;
}

.rim-footer-cart__meta-card {
	padding: 0;
	border-radius: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.rim-footer-cart__delivery-meta.is-below-min .rim-footer-cart__meta-card {
	padding: 0.65rem 0.75rem;
	border-radius: 12px;
	border: 1px solid rgba(123, 30, 45, 0.22);
	background: color-mix(in srgb, #fff5f2 92%, #fff);
}

.rim-footer-cart__meta-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	font-size: 0.92rem;
	color: rgba(43, 31, 26, 0.72);
}

.rim-footer-cart__meta-row + .rim-footer-cart__meta-row {
	margin-top: 0.45rem;
}

.rim-footer-cart__meta-row strong {
	font-weight: 700;
	color: var(--rim-order-text, #2b1f1a);
	letter-spacing: 0.01em;
}

.rim-footer-cart__meta-row--min strong {
	font-size: 0.95rem;
}

.rim-footer-cart__meta-row--fee.is-free strong {
	color: #2f7a4e;
	font-weight: 700;
}

.rim-footer-cart__meta-row--fee.is-note {
	font-size: 0.8rem;
	color: rgba(43, 31, 26, 0.58);
}

.rim-footer-cart__min-progress {
	margin: 0.55rem 0 0.35rem;
	height: 7px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(123, 30, 45, 0.12);
}

.rim-footer-cart__min-progress-bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--go-primary, #9a2a3c) 0%, var(--go-accent, #c9a227) 100%);
	transition: width 0.28s ease;
}

.rim-footer-cart__min-progress-bar.is-met {
	background: linear-gradient(90deg, #2f7a4e 0%, #4ea36f 100%);
}

.rim-footer-cart__min-status {
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--go-primary, #8b0f1a);
}

.rim-footer-cart__min-status.is-met {
	color: #2f7a4e;
}

.rim-footer-cart__totals,
.rim-order__footer-cart-panel-totals,
.rim-order__mobile-cart-panel-totals {
	margin-bottom: 0.85rem;
}

.rim-footer-cart__subtotal-row,
.rim-footer-cart__discount-row,
.rim-footer-cart__grand-total,
.rim-order__footer-cart-panel-totals p,
.rim-order__mobile-cart-panel-totals p {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(43, 31, 26, 0.78);
}

.rim-footer-cart__subtotal-row[hidden] {
	display: none !important;
}

.rim-footer-cart__subtotal-row strong,
.rim-footer-cart__discount-row strong,
.rim-footer-cart__meta-row strong {
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0;
}

.rim-footer-cart__subtotal-row strong {
	color: var(--rim-order-text, #2b1f1a);
}

.rim-footer-cart__grand-total {
	padding-top: 0.55rem;
	margin-top: 0.45rem;
	border-top: 1px solid color-mix(in srgb, var(--rim-order-primary, #8b0f1a) 12%, transparent);
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--rim-order-text, #2b1f1a);
}

.rim-footer-cart__grand-total strong {
	font-size: 1.12rem;
	font-weight: 800;
	color: var(--rim-order-primary, #8b0f1a);
	letter-spacing: 0.01em;
}

.rim-footer-cart__checkout,
.rim-order__footer-cart-checkout,
.rim-order__mobile-cart-checkout {
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 1.15rem;
	border: 1px solid color-mix(in srgb, var(--go-accent, #d4af37) 35%, var(--go-button-bg, var(--rim-order-primary)));
	border-radius: 14px;
	background:
		linear-gradient(180deg, color-mix(in srgb, #fff 14%, var(--go-button-bg, var(--rim-order-primary))) 0%, var(--go-button-bg, var(--rim-order-primary)) 48%),
		var(--go-button-bg, var(--rim-order-primary));
	color: var(--go-button-text, var(--go-text-on-primary, #fff));
	font: inherit;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	box-shadow:
		var(--go-finish-button-shadow, 0 8px 20px color-mix(in srgb, var(--go-button-bg, var(--rim-order-primary)) 28%, transparent)),
		inset 0 1px 0 rgba(255, 255, 255, 0.16);
	transition: background 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.rim-footer-cart__checkout::after {
	content: " \2192";
	font-weight: 700;
}

.rim-footer-cart__checkout:not(:disabled),
.rim-order__footer-cart-checkout:not(:disabled),
.rim-order__mobile-cart-checkout:not(:disabled) {
	background:
		linear-gradient(180deg, color-mix(in srgb, #fff 14%, var(--go-button-bg, var(--rim-order-primary))) 0%, var(--go-button-bg, var(--rim-order-primary)) 48%),
		var(--go-button-bg, var(--rim-order-primary)) !important;
	color: var(--go-button-text, #fff) !important;
}

.rim-footer-cart__checkout:not(:disabled):hover,
.rim-order__footer-cart-checkout:not(:disabled):hover,
.rim-order__mobile-cart-checkout:not(:disabled):hover {
	background:
		linear-gradient(180deg, color-mix(in srgb, #fff 10%, var(--go-primary-hover, #6f0c15)) 0%, var(--go-primary-hover, color-mix(in srgb, var(--rim-order-primary) 88%, #000)) 55%),
		var(--go-primary-hover, color-mix(in srgb, var(--rim-order-primary) 88%, #000)) !important;
	transform: translateY(-1px);
	filter: saturate(1.04);
}

.rim-footer-cart__checkout:disabled,
.rim-order__footer-cart-checkout:disabled,
.rim-order__mobile-cart-checkout:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.rim-order--has-footer-cart {
	padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1023px) {
	.rim-footer-cart__item {
		padding: 0.45rem 0.1rem;
	}

	.rim-footer-cart__item-name {
		white-space: normal;
	}
}

@media (max-width: 380px) {
	.rim-footer-cart__item {
		padding: 0.4rem 0.05rem;
	}

	.rim-footer-cart__item-name {
		font-size: 0.8rem;
	}

	.rim-footer-cart__item-price {
		font-size: 0.78rem;
	}

	.rim-footer-cart__qty-btn {
		width: 1.2rem;
		height: 1.2rem;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.rim-footer-cart__bar,
	.rim-order__footer-cart-bar,
	.rim-order__mobile-cart-bar {
		max-width: 640px;
		margin: 0 auto;
		border-radius: 16px 16px 0 0;
	}

	.rim-footer-cart__panel,
	.rim-order__footer-cart-panel,
	.rim-order__mobile-cart-panel {
		max-width: 640px;
		margin: 0 auto;
		width: 100%;
	}
}

/* Desktop sidebar cart (inside layout column) */
@media (min-width: 1024px) {
	.rim-footer-cart--desktop-sidebar {
		position: sticky;
		top: 1.25rem;
		left: auto;
		right: auto;
		bottom: auto;
		z-index: 10;
		width: 100%;
		pointer-events: auto;
		align-self: start;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__bar,
	.rim-footer-cart--desktop-sidebar .rim-order__footer-cart-bar,
	.rim-footer-cart--desktop-sidebar .rim-order__mobile-cart-bar {
		display: none;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__sheet,
	.rim-footer-cart--desktop-sidebar .rim-order__footer-cart-sheet,
	.rim-footer-cart--desktop-sidebar .rim-order__mobile-cart-sheet {
		position: static;
		inset: auto;
		display: flex;
		flex-direction: column;
		opacity: 1;
		visibility: visible;
		background: transparent;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__sheet[hidden],
	.rim-footer-cart--desktop-sidebar .rim-order__footer-cart-sheet[hidden],
	.rim-footer-cart--desktop-sidebar .rim-order__mobile-cart-sheet[hidden] {
		display: flex !important;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__panel,
	.rim-footer-cart--desktop-sidebar .rim-order__footer-cart-panel,
	.rim-footer-cart--desktop-sidebar .rim-order__mobile-cart-panel {
		max-width: none;
		max-height: calc(100vh - 2.5rem);
		max-height: calc(100dvh - 2.5rem);
		width: 100%;
		margin: 0;
		border: 1px solid color-mix(in srgb, var(--rim-order-gold) 40%, var(--rim-order-border));
		border-radius: 16px;
		box-shadow: 0 2px 10px rgba(43, 31, 26, 0.06);
		transform: none;
		overflow: hidden;
		background: #fff;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__grabber {
		display: none;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__panel-head {
		padding: 1rem 1.1rem 0.75rem;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__panel-close,
	.rim-footer-cart--desktop-sidebar .rim-order__footer-cart-panel-close,
	.rim-footer-cart--desktop-sidebar .rim-order__mobile-cart-panel-close {
		display: none;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__panel-body,
	.rim-footer-cart--desktop-sidebar .rim-order__footer-cart-panel-body,
	.rim-footer-cart--desktop-sidebar .rim-order__mobile-cart-panel-body {
		max-height: min(50vh, 420px);
		overflow-x: hidden;
		overflow-y: auto;
	}

	.rim-footer-cart--desktop-sidebar .rim-footer-cart__panel-footer,
	.rim-footer-cart--desktop-sidebar .rim-order__footer-cart-panel-footer,
	.rim-footer-cart--desktop-sidebar .rim-order__mobile-cart-panel-footer {
		border-radius: 0 0 12px 12px;
	}
}
