/*
 * Chaman Side Cart (#426). Look of the old side cart of production
 * (settings of 2026-11-01): orange basket at the bottom right, panel of
 * 330 px from the right. Text colours of the palette of mu-plugin 11
 * (#259 D3): buttons white on dark green #1e6b2a (6.58:1). The colour of
 * the link buttons needs !important: mu-plugin 11 paints each `a` in dark
 * green with !important.
 */

.chaman-side-cart-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.chaman-side-cart,
.chaman-side-cart button,
.chaman-side-cart input {
	font-family: Helvetica, arial, sans-serif;
}

/* Floating basket (bottom right, offsets 2 px and 4 px). */
.chaman-side-cart-button,
.chaman-side-cart-button:hover,
.chaman-side-cart-button:focus {
	position: fixed;
	right: 4px;
	bottom: 2px;
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fe941d;
	color: #ffffff;
	box-shadow: none;
	cursor: pointer;
}
.chaman-side-cart-button:focus-visible {
	outline: 3px solid #1e6b2a;
	outline-offset: 3px;
}
.chaman-side-cart-button .chaman-side-cart-icon {
	width: 36px;
	height: 36px;
}
.chaman-side-cart-number {
	display: inline-block;
	box-sizing: border-box;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border-radius: 13px;
	background: #000000;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}
.chaman-side-cart-button .chaman-side-cart-number {
	position: absolute;
	top: -10px;
	left: -10px;
}

/* Overlay and panel. */
.chaman-side-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 99989;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.chaman-side-cart-panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 330px;
	max-width: 100%;
	max-height: 100%;
	background: #ffffff;
	color: #000000;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
	transform: translateX(105%);
	transition: transform 0.3s ease;
}
.chaman-side-cart-panel[hidden],
.chaman-side-cart-overlay[hidden] {
	display: none;
}
body.chaman-side-cart-open .chaman-side-cart-panel {
	transform: none;
}
body.chaman-side-cart-open .chaman-side-cart-overlay {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.chaman-side-cart-panel,
	.chaman-side-cart-overlay {
		transition: none;
	}
}

/* Header: small basket with its counter (centre), close cross (right). */
.chaman-side-cart-header {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 14px 48px;
	border-bottom: 1px solid #e5e5e5;
	font-size: 15px;
}
.chaman-side-cart-mini {
	position: relative;
	display: inline-flex;
	color: #000000;
}
.chaman-side-cart-mini .chaman-side-cart-icon {
	width: 30px;
	height: 30px;
}
.chaman-side-cart-mini .chaman-side-cart-number {
	position: absolute;
	top: -8px;
	right: -16px;
	min-width: 22px;
	height: 22px;
	font-size: 12px;
	line-height: 22px;
}
.chaman-side-cart-close,
.chaman-side-cart-close:hover,
.chaman-side-cart-close:focus {
	position: absolute;
	top: 50%;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -18px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000000;
	cursor: pointer;
}
.chaman-side-cart-close .chaman-side-cart-icon {
	width: 16px;
	height: 16px;
}

/* Notifications (live region). */
.chaman-side-cart-notice {
	flex: 0 0 auto;
	padding: 8px 15px;
	background: #f2f2f2;
	font-size: 13px;
	text-align: center;
}
.chaman-side-cart-notice:empty {
	display: none;
}
.chaman-side-cart-notice.chaman-side-cart-error {
	background: #fdecea;
	color: #8a1f11;
}

.chaman-side-cart-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
}

/* Free-shipping bar. */
.chaman-side-cart-shipping {
	padding: 10px 15px;
	border-bottom: 1px solid #eeeeee;
	font-size: 13px;
	text-align: center;
}
.chaman-side-cart-shipping-text {
	margin: 0 0 6px;
}
.chaman-side-cart-shipping-bar {
	height: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: #e6e6e6;
}
.chaman-side-cart-shipping-bar span {
	display: block;
	height: 100%;
	background: #2aa13c;
}

/* Lines. */
.chaman-side-cart-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}
.chaman-side-cart-line {
	position: relative;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 15px;
	border-bottom: 1px solid #eeeeee;
}
.chaman-side-cart-line.chaman-side-cart-busy {
	opacity: 0.5;
	pointer-events: none;
}
.chaman-side-cart-image {
	flex: 0 0 20%;
}
.chaman-side-cart-image img {
	display: block;
	width: 100%;
	height: auto;
}
.chaman-side-cart-detail {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 26px;
}
.chaman-side-cart-name {
	display: block;
	font-weight: 700;
	text-decoration: none;
}
.chaman-side-cart-detail dl.variation {
	margin: 2px 0;
	font-size: 12px;
}
.chaman-side-cart-detail dl.variation dt,
.chaman-side-cart-detail dl.variation dd,
.chaman-side-cart-detail dl.variation p {
	display: inline;
	margin: 0;
}
.chaman-side-cart-price {
	margin: 4px 0;
	font-size: 13px;
}
.chaman-side-cart-line-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.chaman-side-cart-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #2aa13c;
}
.chaman-side-cart-qty button,
.chaman-side-cart-qty button:hover,
.chaman-side-cart-qty button:focus {
	width: 28px;
	min-height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #1e6b2a;
	color: #ffffff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.chaman-side-cart .chaman-side-cart-qty-input {
	width: 44px;
	height: 28px;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	color: #000000;
	font-size: 14px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.chaman-side-cart-qty-input::-webkit-inner-spin-button,
.chaman-side-cart-qty-input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}
.chaman-side-cart-line-total {
	font-weight: 700;
	white-space: nowrap;
}
.chaman-side-cart-remove,
.chaman-side-cart-remove:hover,
.chaman-side-cart-remove:focus {
	position: absolute;
	top: 10px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4b4f58;
	cursor: pointer;
}
.chaman-side-cart-remove .chaman-side-cart-icon {
	width: 18px;
	height: 18px;
}

/* Suggested products: pink box, native horizontal scroll. */
.chaman-side-cart-suggestions {
	padding: 10px 0 10px 15px;
	background: #ffd6d6;
	font-size: 13px;
}
.chaman-side-cart-suggestions ul {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0 15px 6px 0;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
}
.chaman-side-cart-sugg {
	display: flex;
	flex: 0 0 85%;
	align-items: center;
	gap: 8px;
	margin: 0;
	scroll-snap-align: start;
}
.chaman-side-cart-sugg-image {
	flex: 0 0 50px;
}
.chaman-side-cart-sugg-image img {
	display: block;
	width: 50px;
	height: auto;
}
.chaman-side-cart-sugg-text {
	min-width: 0;
}
.chaman-side-cart-sugg-name {
	display: block;
	font-weight: 700;
	text-decoration: none;
}
.chaman-side-cart-sugg-price {
	display: block;
	color: #000000;
}
.chaman-side-cart .chaman-side-cart-sugg-add {
	display: inline-block;
	margin-top: 4px;
	padding: 4px 8px;
	background: #1e6b2a;
	color: #ffffff !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

/* Footer: totals and buttons. */
.chaman-side-cart-footer {
	margin-top: auto;
	padding: 1px 10px 12px;
	border-top: 1px solid #eeeeee;
	font-size: 15px;
}
.chaman-side-cart-totals {
	margin: 8px 0 10px;
}
.chaman-side-cart-total {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 3px 0;
}
.chaman-side-cart-total dt,
.chaman-side-cart-total dd {
	margin: 0;
	font-weight: 400;
}
.chaman-side-cart-total dd {
	text-align: right;
}
.chaman-side-cart-total-total {
	margin-top: 4px;
	padding-top: 6px;
	border-top: 1px solid #eeeeee;
}
.chaman-side-cart-total-total dt,
.chaman-side-cart-total-total dd {
	font-weight: 700;
}
.chaman-side-cart-buttons {
	display: flex;
	gap: 8px;
}
.chaman-side-cart .chaman-side-cart-btn {
	display: block;
	flex: 1 1 0;
	box-sizing: border-box;
	padding: 10px 8px;
	border: 2px solid #1e6b2a;
	background: #1e6b2a;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}
.chaman-side-cart .chaman-side-cart-btn:hover,
.chaman-side-cart .chaman-side-cart-btn:focus {
	background: #ffffff;
	color: #1e6b2a !important;
	box-shadow: inset 0 0 0 2px #1e6b2a;
}

/* Empty cart. */
.chaman-side-cart-empty {
	padding: 30px 15px;
	text-align: center;
}
.chaman-side-cart-empty p {
	margin: 0 0 15px;
}
.chaman-side-cart-empty .chaman-side-cart-btn {
	display: inline-block;
}
