/* =========================================================
   EC Pack Ver1.6.3 追従購入バー
========================================================= */

.seigan-sticky-cart {
	position: fixed;
	z-index: 9998;
	right: 0;
	bottom: 0;
	left: 0;
	visibility: hidden;
	padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
	border-top: 1px solid rgba(222, 211, 223, .92);
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 -12px 34px rgba(44, 34, 45, .1);
	opacity: 0;
	transform: translateY(110%);
	transition: opacity .34s ease, transform .34s cubic-bezier(.22, 1, .36, 1), visibility .34s;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.seigan-sticky-cart.is-visible {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.seigan-sticky-cart__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
	align-items: center;
	gap: clamp(20px, 4vw, 56px);
	width: min(1180px, 100%);
	margin: 0 auto;
}

.seigan-sticky-cart__product {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 14px;
}

.seigan-sticky-cart__thumb {
	flex: 0 0 66px;
	width: 66px;
	height: 66px;
	overflow: hidden;
	border: 1px solid #eee8ef;
	background: #fbfafb;
}

.seigan-sticky-cart__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.seigan-sticky-cart__meta {
	min-width: 0;
}

.seigan-sticky-cart__title {
	overflow: hidden;
	margin: 0 0 6px !important;
	color: var(--seigan-text, #333);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .05em;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.seigan-sticky-cart__subline {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
}

.seigan-sticky-cart__price {
	color: var(--seigan-text, #333);
	font-size: 18px;
	line-height: 1.2;
}

.seigan-sticky-cart__price .price,
.seigan-sticky-cart__price ins,
.seigan-sticky-cart__price del {
	font-size: inherit;
}

.seigan-sticky-cart__price small,
.seigan-sticky-cart__price .seigan-price-tax {
	font-size: 10px;
}

.seigan-sticky-cart__stock {
	margin: 0 !important;
	font-size: 11px;
	letter-spacing: .05em;
	white-space: nowrap;
}

.seigan-sticky-cart__stock.is-in-stock {
	color: #678b63;
}

.seigan-sticky-cart__stock.is-out-of-stock {
	color: #a66b6b;
}

.seigan-sticky-cart__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 14px 24px;
	border: 0;
	border-radius: 4px;
	background: linear-gradient(135deg, var(--seigan-primary, #ab71b0), var(--seigan-primary-dark, #925c96));
	box-shadow: 0 9px 24px rgba(146, 92, 150, .22);
	color: #fff;
	font: inherit;
	font-size: 15px;
	letter-spacing: .1em;
	line-height: 1.3;
	cursor: pointer;
	transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.seigan-sticky-cart__button:hover {
	box-shadow: 0 11px 28px rgba(146, 92, 150, .3);
	transform: translateY(-1px);
}

.seigan-sticky-cart__button:focus-visible {
	outline: 2px solid var(--seigan-primary-dark, #925c96);
	outline-offset: 3px;
}

.seigan-sticky-cart__button:disabled {
	box-shadow: none;
	cursor: not-allowed;
	opacity: .5;
	transform: none;
}

.seigan-sticky-cart__icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
}

.seigan-sticky-cart__icon svg {
	width: 100%;
	height: 100%;
}

body.seigan-sticky-cart-visible {
	padding-bottom: 92px;
}

@media screen and (max-width: 767px) {
	.seigan-sticky-cart {
		padding-top: 7px;
		padding-bottom: calc(7px + env(safe-area-inset-bottom));
	}

	.seigan-sticky-cart__inner {
		grid-template-columns: minmax(0, 1fr) minmax(148px, 46vw);
		gap: 10px;
	}

	.seigan-sticky-cart__product {
		gap: 9px;
	}

	.seigan-sticky-cart__thumb {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.seigan-sticky-cart__title {
		margin-bottom: 3px !important;
		font-size: 11px;
		letter-spacing: .02em;
	}

	.seigan-sticky-cart__subline {
		gap: 7px;
	}

	.seigan-sticky-cart__price {
		font-size: 15px;
	}

	.seigan-sticky-cart__stock {
		display: none;
	}

	.seigan-sticky-cart__button {
		min-height: 48px;
		gap: 7px;
		padding: 10px 12px;
		font-size: 12px;
		letter-spacing: .06em;
	}

	.seigan-sticky-cart__icon {
		width: 19px;
		height: 19px;
	}

	body.seigan-sticky-cart-visible {
		padding-bottom: calc(72px + env(safe-area-inset-bottom));
	}
}

@media screen and (max-width: 390px) {
	.seigan-sticky-cart__inner {
		grid-template-columns: minmax(0, 1fr) 148px;
	}

	.seigan-sticky-cart__thumb {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.seigan-sticky-cart,
	.seigan-sticky-cart__button {
		transition: none;
	}
}
