/* RentalPress — MY ITEMS cart drawer */
.rentalpress-cart-trigger {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 50%;
	background: #d63384;
	color: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rentalpress-cart-trigger__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	line-height: 1;
}

.rentalpress-cart-trigger__svg {
	display: block;
	width: 24px;
	height: 24px;
}

.rentalpress-cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.rentalpress-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99991;
}

.rentalpress-drawer-overlay.is-visible {
	display: block;
}

.rentalpress-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(480px, 100vw);
	height: 100vh;
	background: #fff;
	z-index: 99992;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.rentalpress-drawer.is-open {
	transform: translateX(0);
}

.rentalpress-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #eee;
}

.rentalpress-drawer__header h3 {
	margin: 0;
	font-size: 20px;
	letter-spacing: 0.04em;
}

.rentalpress-drawer__close {
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.rentalpress-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	background: #fff;
}

.rentalpress-drawer-items {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rentalpress-drawer-item {
	padding: 14px 16px;
	background: #f3f4f6;
	border-bottom: 1px solid #e5e7eb;
}

.rentalpress-drawer-item:last-child {
	border-bottom: none;
}

.rentalpress-drawer-item__top {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.rentalpress-drawer-item__image {
	flex: 0 0 72px;
}

.rentalpress-drawer-item__image img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	background: #fff;
}

.rentalpress-drawer-item__head {
	flex: 1;
	min-width: 0;
}

.rentalpress-drawer-item__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.rentalpress-drawer-item__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #1f2937;
}

.rentalpress-drawer-item__variation {
	display: block;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 4px;
}

.rentalpress-drawer-item__unit-price {
	flex: 0 0 auto;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.35;
	white-space: nowrap;
}

.rentalpress-drawer-item__bottom {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-top: 14px;
	padding-top: 2px;
}

.rentalpress-drawer-item__qty-group {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.rentalpress-drawer-item__qty-label {
	font-size: 14px;
	font-weight: 400;
	color: #374151;
	white-space: nowrap;
}

.rentalpress-drawer-qty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.rentalpress-drawer-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #374151;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.rentalpress-drawer-qty__btn:hover {
	color: #111827;
}

.rentalpress-drawer-qty__input {
	width: 52px;
	min-width: 52px;
	height: 34px;
	padding: 0 4px;
	border: 0;
	border-radius: 6px;
	background: #e5e7eb;
	color: #111827;
	font-size: 15px;
	font-weight: 500;
	line-height: 34px;
	text-align: center;
	vertical-align: middle;
	box-sizing: border-box;
	-moz-appearance: textfield;
	appearance: textfield;
}

.rentalpress-drawer-qty__input::-webkit-outer-spin-button,
.rentalpress-drawer-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rentalpress-drawer-item__remove {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4b5563;
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
}

.rentalpress-drawer-item__remove:hover {
	color: #111827;
}

.rentalpress-drawer-item__total {
	margin-left: auto;
	font-size: 17px;
	font-weight: 700;
	color: #1f2937;
	white-space: nowrap;
	line-height: 1.2;
}

@media (max-width: 420px) {
	.rentalpress-drawer-item__bottom {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"qty qty"
			"remove total";
		align-items: center;
	}

	.rentalpress-drawer-item__qty-group {
		grid-area: qty;
	}

	.rentalpress-drawer-item__remove {
		grid-area: remove;
		justify-self: start;
	}

	.rentalpress-drawer-item__total {
		grid-area: total;
		justify-self: end;
		margin-left: 0;
	}

	.rentalpress-drawer-item__title-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

.rentalpress-drawer__footer {
	padding: 20px 24px 28px;
	border-top: 1px solid #eee;
	text-align: center;
}

.rentalpress-drawer__note {
	margin: 0 0 16px;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}

.rentalpress-get-price-btn {
	display: block;
	width: 100%;
	background: #d63384 !important;
	border-color: #d63384 !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 14px 20px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none !important;
}

.rentalpress-drawer__empty {
	text-align: center;
	color: #666;
	padding: 40px 0;
}
