/* POR Cart Sheet — mobile only (max-width: 767px). Colours follow the product page prototype. */
.porcs-bar,
.porcs-sheet,
.porcs-toast {
	--porcs-navy: #0B1F3A;
	--porcs-text: #4E5562;
	--porcs-soft: #F2F1ED;
	--porcs-line: #E6E8EC;
	--porcs-muted: #CAD0D9;
	--porcs-green: #1F7A55;
	font-family: Manrope, sans-serif;
	color: var(--porcs-text);
	box-sizing: border-box;
}
.porcs-bar *,
.porcs-sheet *,
.porcs-toast * {
	box-sizing: border-box;
}
.porcs-bar[hidden],
.porcs-sheet[hidden],
.porcs-toast[hidden] {
	display: none !important;
}

@media (min-width: 768px) {
	.porcs-bar,
	.porcs-sheet,
	.porcs-toast {
		display: none !important;
	}
}

/* ---------- Sticky bar ---------- */
.porcs-bar {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 12px;
	background: #fff;
	border-radius: 100px;
	box-shadow: 0 8px 32px -4px rgba(11, 31, 58, 0.28);
}
.porcs-bar__img img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 56px;
	object-fit: contain;
}
.porcs-bar__info {
	flex: 1 1 auto;
	min-width: 0;
}
.porcs-bar__name {
	font-size: 12px;
	line-height: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.porcs-bar__price {
	font-size: 17px;
	line-height: 22px;
	font-weight: 700;
	color: var(--porcs-navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.porcs-bar__price .woocommerce-price-suffix,
.porcs-bar__price del {
	display: none;
}
/* The theme sets every .amount to 32px. */
.porcs-bar .amount,
.porcs-bar .woocommerce-Price-amount,
.porcs-sheet .amount,
.porcs-sheet .woocommerce-Price-amount {
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}
.porcs-bar__price ins {
	text-decoration: none;
}
.porcs-bar__btn {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 100px;
	background: var(--porcs-navy);
	color: #fff;
	font: 700 15px/1 Manrope, sans-serif;
	white-space: nowrap;
	cursor: pointer;
}
.porcs-bar__btn[aria-busy="true"],
.porcs-suggest__btn[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}
body.porcs-bar-on {
	padding-bottom: 86px;
}

/* ---------- Sheet ---------- */
.porcs-sheet {
	position: fixed;
	inset: 0;
	z-index: 99990;
}
.porcs-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 31, 58, 0.5);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.porcs-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 92vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 10px 18px calc(26px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-radius: 30px 30px 0 0;
	box-shadow: 0 -12px 40px rgba(11, 31, 58, 0.2);
	transform: translateY(100%);
	transition: transform 0.25s ease;
	outline: none;
	font-size: 15px;
	line-height: 1.5;
}
.porcs-sheet.is-open .porcs-sheet__backdrop {
	opacity: 1;
}
.porcs-sheet.is-open .porcs-sheet__panel {
	transform: translateY(0);
}
body.porcs-lock {
	overflow: hidden;
}
.porcs-sheet__handle {
	width: 40px;
	height: 4px;
	margin: 0 auto 10px;
	border-radius: 2px;
	background: var(--porcs-muted);
}
.porcs-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.porcs-sheet__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 19px;
	font-weight: 700;
	color: var(--porcs-navy);
}
.porcs-sheet__title svg {
	color: var(--porcs-green);
	flex: 0 0 auto;
}
/* Drawn icon, not the × character: in the site font it is small and sits low. */
.porcs-sheet__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--porcs-soft);
	color: var(--porcs-navy);
	line-height: 0;
	cursor: pointer;
}
.porcs-sheet__close svg {
	display: block;
	pointer-events: none;
}
.porcs-sheet__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--porcs-line);
}
.porcs-sheet__item-img img {
	display: block;
	height: 64px;
	width: auto;
	max-width: 64px;
	object-fit: contain;
}
.porcs-sheet__item-info {
	flex: 1 1 auto;
	min-width: 0;
}
.porcs-sheet__item-name {
	font-weight: 700;
	color: var(--porcs-navy);
}
.porcs-sheet__item-meta {
	font-size: 13px;
}
.porcs-sheet__item-price {
	font-weight: 700;
	color: var(--porcs-navy);
	white-space: nowrap;
}
.porcs-sheet__item-price .woocommerce-price-suffix,
.porcs-sheet__row .woocommerce-price-suffix,
.porcs-suggest__price .woocommerce-price-suffix {
	display: none;
}
.porcs-sheet__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0 4px;
	font-size: 14px;
}
.porcs-sheet__row b {
	color: var(--porcs-navy);
}
.porcs-sheet__row--ship {
	padding: 0 0 14px;
}
.porcs-sheet__row b.porcs-sheet__free {
	color: var(--porcs-green);
}
.porcs-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	border-radius: 100px;
	font-family: Manrope, sans-serif;
	cursor: pointer;
}
.porcs-btn--primary {
	height: 56px;
	background: var(--porcs-navy);
	color: #fff !important;
	font-weight: 700;
	font-size: 16px;
}
.porcs-sheet__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 8px;
}
.porcs-btn--outline,
.porcs-btn--ghost {
	height: 48px;
	padding: 0 6px;
	background: #fff;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.porcs-sheet__item--pending {
	opacity: 0.6;
}
.porcs-spinner {
	width: 20px;
	height: 20px;
	border: 2.5px solid var(--porcs-line);
	border-top-color: var(--porcs-navy);
	border-radius: 50%;
	animation: porcs-spin 0.8s linear infinite;
}
@keyframes porcs-spin {
	to {
		transform: rotate(360deg);
	}
}
.porcs-btn--outline {
	border: 1px solid var(--porcs-navy);
	color: var(--porcs-navy) !important;
}
.porcs-btn--ghost {
	border: 1px solid var(--porcs-muted);
	color: #2D3748;
}
.porcs-sheet__subtitle {
	margin-top: 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--porcs-navy);
}
.porcs-sheet__suggest {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.porcs-suggest {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 10px;
	border: 1px solid var(--porcs-line);
	border-radius: 16px;
}
.porcs-suggest__img {
	flex: 0 0 auto;
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #F7F7F5;
	overflow: hidden;
}
.porcs-suggest__img img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.porcs-suggest__info {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	line-height: 1.35;
}
.porcs-suggest__name {
	display: block;
	font-weight: 700;
	color: var(--porcs-navy) !important;
	text-decoration: none;
}
.porcs-suggest__btn {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--porcs-soft);
	color: var(--porcs-navy);
	font-size: 20px;
	font-weight: 600;
	cursor: pointer;
}
.porcs-suggest__btn.is-added {
	background: #E6F2EC;
	color: var(--porcs-green);
	cursor: default;
}

/* ---------- Error toast ---------- */
.porcs-toast {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(96px + env(safe-area-inset-bottom, 0px));
	z-index: 99995;
	padding: 12px 16px;
	border-radius: 16px;
	background: var(--porcs-navy);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 8px 32px -4px rgba(11, 31, 58, 0.35);
}

@media (prefers-reduced-motion: reduce) {
	.porcs-bar,
	.porcs-sheet__backdrop,
	.porcs-sheet__panel {
		transition: none;
	}
}

.porcs-toast a {
	color: #fff !important;
	font-weight: 700;
	text-decoration: underline;
	white-space: nowrap;
}
