/* User-facing frontend styles for RSD Shopify catalog */

/* Scroll lock: body is fixed at the saved scroll position so no element can scroll underneath an overlay */
body.rsd-scroll-lock {
	position: fixed !important;
	width: 100% !important;
	overflow-y: scroll !important; /* keep scrollbar gutter visible to prevent layout shift */
}

.rsd-shop-catalog {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: stretch;
	width: 100%;
}

.rsd-shop-catalog__results,
.rsd-shop-catalog__empty {
	flex: 1 1 100%;
	color: #555;
}

.rsd-shop-catalog__empty {
	padding: 18px 0;
}

.rsd-shop-catalog__empty-title {
	display: block;
	font-size: 1.05rem;
	margin-bottom: 6px;
	color: #111;
}

.rsd-shop-catalog__empty-text {
	margin: 0;
	line-height: 1.5;
}

.rsd-shop-catalog__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	width: 100%;
}

.rsd-shop-card {
	--rsd-shop-title-size: 1rem;
	display: flex;
	flex-direction: column;
	border: 1px solid #f5f5f5;
	background: #fff;
	box-sizing: border-box;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rsd-shop-card:hover,
.rsd-shop-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
	border-color: #d6d6d6;
	outline: none;
}

.rsd-shop-card__media {
	background: #f5f5f5;
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-sizing: border-box;
}

.rsd-shop-card__image,
.rsd-shop-card__placeholder {
	width: 100%;
	height: 100%;
	border: 0;
}

.rsd-shop-card__image {
	object-fit: contain;
	display: block;
}

.rsd-shop-card__placeholder {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
	border: 1px dashed rgba(0, 0, 0, 0.08);
	border-radius: 6px;
}

.rsd-shop-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 14px 16px;
	flex: 1 1 auto;
	min-height: 0;
}

.rsd-shop-card__title {
	margin: 0;
	font-size: var(--rsd-shop-title-size);
	line-height: 1.35;
	font-weight: 500;
	color: #111;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.rsd-shop-card__price {
	display: inline-flex;
	align-items: flex-start;
	gap: 1px;
	font-weight: 400;
	line-height: 1;
	color: #111;
}

.rsd-shop-card__price-whole {
	font-size: 2rem;
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.03em;
}

.rsd-shop-card__price-decimal {
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1;
	padding-top: 0.18rem;
	letter-spacing: -0.01em;
}

.rsd-shop-card__price-currency {
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1;
	padding-top: 0.18rem;
}

.rsd-shop-card__purchase-info {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: calc(var(--rsd-shop-title-size) * 0.72);
	line-height: 1.3;
	color: #8f8f8f;
	font-weight: 500;
}

.rsd-shop-card__purchase-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1em;
	vertical-align: middle;
}

.rsd-shop-card__purchase-icon::before {
	line-height: 1em;
}

.rsd-shop-card__purchase-trigger {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: calc(var(--rsd-shop-title-size) * 0.72);
	line-height: 1.3;
	color: #8f8f8f;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
}

.rsd-shop-card__purchase-trigger:hover {
	color: #555;
}

.rsd-shop-card__purchase-trigger:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
	border-radius: 2px;
}

.rsd-shop-popover {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100000;
}

.rsd-shop-popover[hidden] {
	display: none;
}

.rsd-shop-popover__dialog {
	position: relative;
	width: min(680px, calc(100vw - 32px));
	max-height: 70vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	padding: 18px 18px 16px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
	box-sizing: border-box;
}

.rsd-shop-popover__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #50575e;
	cursor: pointer;
}

.rsd-shop-popover__close:hover {
	color: #111;
}

.rsd-shop-popover__close:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
	border-radius: 4px;
}

.rsd-shop-popover__title {
	margin: 0 36px 12px 0;
	font-size: 1.05rem;
	line-height: 1.3;
	color: #111;
}

.rsd-shop-popover__content {
	min-height: 0;
	overflow-y: auto;
	margin-top: 2px;
	padding-top: 10px;
	padding-right: 6px;
	border-top: 1px solid #f5f5f5;
	color: #1d2327;
	font-size: 0.95rem;
	line-height: 1.55;
}

.rsd-shop-popover__content p {
	margin: 0 0 10px;
}

.rsd-shop-popover__content p:last-child {
	margin-bottom: 0;
}

.rsd-shop-popover__content a {
	text-decoration: underline;
}

.rsd-shop-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	width: auto !important;
	max-width: 100%;
	height: 40px;
	padding: 0 16px;
	border: 1px solid #f2c200;
	border-radius: 999px;
	background: #ffd814;
	color: #111;
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rsd-shop-card__button:hover {
	background: #f7ca00;
	border-color: #e0b800;
}

.rsd-shop-card__button:active {
	transform: translateY(1px);
}

.rsd-shop-card__button:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.rsd-shop-product-detail {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding-bottom: 10px;
}

.rsd-shop-product-detail__breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 0.92rem;
	line-height: 1.2;
	color: #4b5563;
}

.rsd-shop-product-detail__breadcrumb-link {
	display: inline-block;
	color: #0b566b;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
}

.rsd-shop-product-detail__breadcrumb-link:hover {
	text-decoration: underline;
}

.rsd-shop-product-detail__breadcrumb-link:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.rsd-shop-product-detail__breadcrumb-separator {
	color: #9ca3af;
	flex: 0 0 auto;
}

.rsd-shop-product-detail__breadcrumb-current {
	color: #111;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 340px;
}

.rsd-shop-product-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 35%) minmax(0, 65%);
	gap: 24px;
	align-items: start;
}

.rsd-shop-product-detail__gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
	min-width: 0;
}

.rsd-shop-product-detail__media {
	order: 1;
	flex: 1 1 auto;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rsd-shop-product-detail__main-image,
.rsd-shop-product-detail__placeholder {
	width: 100%;
	height: 100%;
	display: block;
}

.rsd-shop-product-detail__main-image {
	object-fit: contain;
	background: #f5f5f5;
}

.rsd-shop-product-detail__placeholder {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.rsd-shop-product-detail__thumbs {
	order: 2;
	flex: 0 0 auto;
	display: flex;
	flex-direction: row;
	gap: 10px;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding-right: 0;
	padding-bottom: 4px;
	scrollbar-gutter: stable;
}

.rsd-shop-product-detail__thumb {
	appearance: none;
	border: 1px solid #e5e7eb;
	background: #fff;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	flex: 0 0 auto;
	width: 78px;
}

.rsd-shop-product-detail__thumb:hover,
.rsd-shop-product-detail__thumb:focus-visible,
.rsd-shop-product-detail__thumb.is-active {
	border-color: #111;
	box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
	outline: none;
}

.rsd-shop-product-detail__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	background: #f5f5f5;
}

.rsd-shop-product-detail__share {
	order: 3;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.rsd-shop-product-detail__share-label {
	font-size: 0.92rem;
	font-weight: 600;
	color: #6b7280;
}

.rsd-shop-product-detail__share-links {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.rsd-shop-product-detail__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	color: #4b5563;
	text-decoration: none;
	background: #fff;
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rsd-shop-product-detail__share-link:hover,
.rsd-shop-product-detail__share-link:focus-visible {
	color: #111;
	border-color: #111;
	transform: translateY(-1px);
	outline: none;
}

.rsd-shop-product-detail__share-link svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.rsd-shop-product-detail__summary {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0;
}

.rsd-shop-product-detail__price-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}

.rsd-shop-product-detail__actions {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-left: 0;
	justify-content: flex-start;
}

.rsd-shop-product-detail__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.25;
	letter-spacing: 0;
	font-weight: 600;
	color: #111;
}

.rsd-shop-catalog .rsd-shop-product-detail__summary h1.rsd-shop-product-detail__title {
	margin: 0 !important;
	font-size: 1.35rem !important;
	line-height: 1.25 !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
}

.rsd-shop-product-detail__price {
	display: inline-flex;
	align-items: flex-start;
	gap: 1px;
	font-weight: 400;
	line-height: 1;
	color: #111;
}

.rsd-shop-product-detail__price-whole {
	font-size: 2.6rem;
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.03em;
	letter-spacing: -0.03em;
}

.rsd-shop-product-detail__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-bottom: 0;
}

.rsd-shop-catalog__topbar {
	flex: 1 1 100%;
	margin-bottom: 10px;
}

.rsd-shop-product-detail__topbar #rsd-cart-icon {
	margin-left: auto;
}

@media (max-width: 767px) {
	.rsd-shop-product-detail__topbar,
	.rsd-shop-catalog__topbar {
		position: sticky;
		top: 12px;
		z-index: 30;
		background: rgba(255, 255, 255, 0.94);
		backdrop-filter: blur(6px);
		padding: 10px 12px;
		margin-bottom: 12px;
		border: 1px solid rgba(17, 17, 17, 0.08);
		border-radius: 12px;
		box-shadow: 0 8px 18px rgba(17, 17, 17, 0.06);
	}

	.rsd-shop-product-detail__breadcrumbs {
		flex: 1 1 auto;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		min-width: 0;
	}

	.rsd-shop-product-detail__breadcrumb-link,
	.rsd-shop-product-detail__breadcrumb-current {
		max-width: none;
		display: inline-block;
		vertical-align: middle;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#rsd-cart-icon {
		height: 42px;
		padding: 0 12px;
		border-radius: 10px;
		min-width: 42px;
	}

	.rsd-cart-button__label {
		display: none;
	}

	#rsd-cart-badge {
		top: -6px;
		right: -6px;
	}
}

.rsd-shop-product-detail__topbar-divider {
	width: 100%;
	height: 1px;
	border: 0;
	background: #e5e7eb;
	margin: 0;
}

.rsd-shop-product-detail__price-decimal,
.rsd-shop-product-detail__price-currency {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	padding-top: 0.18rem;
}

.rsd-shop-product-detail__purchase-trigger {
	width: fit-content;
}

.rsd-shop-catalog .rsd-shop-product-detail__summary .rsd-shop-product-detail__purchase-trigger {
	font-size: 0.98rem !important;
	line-height: 1.25 !important;
	font-weight: 500;
	white-space: nowrap;
}

.rsd-shop-catalog .rsd-shop-product-detail__summary .rsd-shop-product-detail__purchase-trigger .rsd-shop-card__purchase-icon {
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
}

.rsd-shop-product-detail__button {
	margin-top: 0;
}

.rsd-shop-product-detail__description {
	padding-top: 6px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rsd-shop-product-detail__description-title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.25;
	font-weight: 600;
	color: #111;
}

.rsd-shop-product-detail__description-content {
	color: #1d2327;
	font-size: 1rem;
	line-height: 1.7;
}

.rsd-shop-product-detail__description-content p {
	margin: 0 0 1rem;
}

.rsd-shop-product-detail__description-content p:last-child {
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.rsd-shop-catalog {
		gap: 14px;
	}

	.rsd-shop-catalog__list {
		gap: 14px;
		grid-template-columns: repeat(2, 1fr);
	}

	.rsd-shop-card {
		--rsd-shop-title-size: 0.98rem;
	}

	.rsd-shop-card__button {
		width: 100% !important;
		max-width: 100%;
	}

	.rsd-shop-card__body {
		padding: 12px;
	}

	.rsd-shop-card__price-whole {
		font-size: 1.85rem;
	}

	.rsd-shop-card__price-decimal,
	.rsd-shop-card__price-currency {
		font-size: 0.9rem;
	}

	.rsd-shop-product-detail__layout {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rsd-shop-product-detail__gallery {
		flex-direction: column;
	}

	.rsd-shop-product-detail__thumbs {
		flex-direction: row;
		flex: 0 0 auto;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-right: 0;
		padding-bottom: 4px;
	}

	.rsd-shop-product-detail__thumb {
		width: 72px;
	}

	.rsd-shop-product-detail__share {
		gap: 8px;
	}

	.rsd-shop-product-detail__share-label {
		font-size: 0.88rem;
	}

	.rsd-shop-product-detail__share-link {
		width: 32px;
		height: 32px;
	}

	.rsd-shop-product-detail__topbar {
		gap: 10px;
	}

	.rsd-shop-product-detail__breadcrumbs {
		font-size: 0.86rem;
		flex: 1 1 auto;
	}

	.rsd-shop-product-detail__breadcrumb-link {
		max-width: 120px;
	}

	.rsd-shop-product-detail__breadcrumb-current {
		max-width: 130px;
	}

	.rsd-shop-product-detail__title {
		font-size: 1.35rem;
	}

	.rsd-shop-catalog .rsd-shop-product-detail__summary h1.rsd-shop-product-detail__title {
		font-size: 1.35rem !important;
		line-height: 1.25 !important;
	}

	.rsd-shop-product-detail__price-row {
		align-items: flex-start;
	}

	.rsd-shop-product-detail__actions {
		margin-left: 0;
		justify-content: flex-start;
	}

	.rsd-shop-catalog .rsd-shop-product-detail__summary .rsd-shop-product-detail__purchase-trigger {
		font-size: 0.9rem !important;
		line-height: 1.2 !important;
	}

	.rsd-shop-product-detail__price-whole {
		font-size: 2.1rem;
	}


}

@media (max-width: 480px) {
	.rsd-shop-catalog__list {
		grid-template-columns: 1fr;
	}

	.rsd-shop-card__button {
		width: 100% !important;
	}
}

@media (max-width: 420px) {
	.rsd-shop-catalog__list {
		grid-template-columns: 1fr;
	}
}

/* Shopping Cart Styles */
.rsd-cart-wrapper {
	display: inline-block;
	position: relative;
}

#rsd-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	height: 40px;
	padding: 0 14px;
	background-color: #e8e8e8;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	transition: background-color 0.2s ease;
	border: 1px solid #d9d9d9;
	flex-shrink: 0;
	white-space: nowrap;
}

.rsd-cart-button__label {
	font-size: 0.92rem;
	font-weight: 600;
	color: #111;
	line-height: 1;
}

#rsd-cart-icon:hover {
	background-color: #d9d9d9;
}

#rsd-cart-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	line-height: 1;
	color: #000;
}

#rsd-cart-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	background-color: #e8e8e8;
	color: #000;
	font-size: 12px;
	font-weight: 600;
	border-radius: 11px;
	padding: 0 6px;
	position: absolute;
	top: -8px;
	right: -8px;
	border: 2px solid #fff;
}

.rsd-added-to-cart {
	animation: rsd-pulse-success 0.5s ease;
}

@keyframes rsd-pulse-success {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
		background-color: #c6e1b9;
		border-color: #a8d68f;
	}
	100% {
		transform: scale(1);
	}
}

/* ---------------------------------------------------------------------------
   Cart Overlay
--------------------------------------------------------------------------- */

.rsd-shop-cart-overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100000;
}

.rsd-shop-cart-overlay[hidden] {
	display: none;
}


.rsd-shop-cart-dialog {
	display: flex;
	flex-direction: column;
	width: min(900px, calc(100vw - 32px));
	max-width: 98vw;
	max-height: calc(100vh - 64px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
	overflow: hidden;
}

/* Header */
.rsd-shop-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #f5f5f5;
	flex-shrink: 0;
}

.rsd-shop-cart-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: #111;
}

.rsd-shop-cart-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #50575e;
	cursor: pointer;
	border-radius: 4px;
	flex-shrink: 0;
}

.rsd-shop-cart-close:hover {
	color: #111;
}

.rsd-shop-cart-close:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* Body — scrollable */
.rsd-shop-cart-body {
	flex: 1 1 auto;
	overflow-y: auto;
	min-height: 0;
	padding: 8px 0;
}

.rsd-shop-cart-purchase-hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 8px 16px 10px;
	padding: 10px 12px;
	border: 1px solid #ffbf69;
	border-left: 4px solid #ff8a00;
	border-radius: 6px;
	background: #fff7ec;
	color: #7a3e00;
	font-size: 0.92rem;
	line-height: 1.45;
}

.rsd-shop-cart-purchase-hint .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: #ff8a00;
	flex-shrink: 0;
}

.rsd-shop-cart-purchase-hint a {
	color: #a54800;
	font-weight: 700;
	text-decoration: underline;
}

.rsd-shop-cart-purchase-hint a:hover {
	color: #7a3400;
}

.rsd-shop-cart-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rsd-shop-cart-confirmation {
	margin: 12px 16px;
	padding: 16px;
	border: 1px solid #d8e2dc;
	border-radius: 6px;
	background: #f5faf7;
	color: #1f2933;
	line-height: 1.55;
	font-size: 0.95rem;
}

.rsd-shop-cart-confirmation__title {
	margin: 0 0 10px;
	font-size: 1rem;
	line-height: 1.35;
	color: #0f5132;
}

.rsd-shop-cart-confirmation p {
	margin: 0 0 10px;
}

.rsd-shop-cart-confirmation p:last-child {
	margin-bottom: 0;
}

.rsd-shop-cart-confirmation a {
	color: #0a58ca;
	font-weight: 600;
}

.rsd-shop-cart-confirmation a:hover {
	color: #084298;
}

.rsd-shop-cart-empty {
	padding: 24px 16px;
	color: #767676;
	font-size: 0.95rem;
	text-align: center;
}

.rsd-shop-cart-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid #f0f0f0;
}

.rsd-shop-cart-item:last-child {
	border-bottom: 0;
}

.rsd-shop-cart-item__name {
	flex: 1 1 auto;
	font-size: 0.93rem;
	line-height: 1.35;
	color: #111;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rsd-shop-cart-item__qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.rsd-shop-cart-item__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid #ccd0d4;
	border-radius: 3px;
	background: #f6f7f7;
	color: #111;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

.rsd-shop-cart-item__qty-btn:hover {
	background: #e8e8e8;
	border-color: #b5bcc2;
}

.rsd-shop-cart-item__qty-btn:focus-visible {
	outline: 2px solid #111;
	outline-offset: 1px;
}

.rsd-shop-cart-item__qty-value {
	display: inline-block;
	min-width: 24px;
	text-align: center;
	font-size: 0.93rem;
	font-weight: 600;
	color: #111;
}

.rsd-shop-cart-item__subtotal {
	flex-shrink: 0;
	font-size: 0.93rem;
	font-weight: 600;
	color: #111;
	min-width: 70px;
	text-align: right;
	white-space: nowrap;
}

/* Footer */
.rsd-shop-cart-footer {
	border-top: 1px solid #f5f5f5;
	padding: 12px 16px 14px;
	flex-shrink: 0;
}

.rsd-shop-cart-total-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
}

.rsd-shop-cart-total-label {
	font-size: 0.95rem;
	color: #50575e;
}

.rsd-shop-cart-total-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: #111;
}

.rsd-shop-cart-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.rsd-shop-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 16px;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rsd-shop-cart-btn:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.rsd-shop-cart-btn--clear {
	border: 1px solid #ccd0d4;
	background: #f6f7f7;
	color: #50575e;
}

.rsd-shop-cart-btn--clear:hover {
	background: #e8e8e8;
	border-color: #b5bcc2;
	color: #111;
}

.rsd-shop-cart-btn--order {
	border: 1px solid #f2c200;
	background: #ffd814;
	color: #111;
}

.rsd-shop-cart-btn--order:hover {
	background: #f7ca00;
	border-color: #e0b800;
}