/* Trinetrix Product Showcase — side cart
   ------------------------------------------------------------------ */

.tps-sc,
.tps-sc-overlay {
	box-sizing: border-box;
}

.tps-sc *,
.tps-sc *::before,
.tps-sc *::after {
	box-sizing: border-box;
}

.tps-sc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(16, 18, 24, 0.45);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.tps-sc-overlay.is-open {
	opacity: 1;
}

.tps-sc {
	--tps-sc-accent: #e2673f;
	--tps-sc-ink: #16181d;
	--tps-sc-muted: #7b818a;
	--tps-sc-bg: #f2f2f2;
	--tps-sc-panel-bg: #ffffff;
	--tps-sc-line: #e6e6e6;
	--tps-sc-save: #1f7a4d;

	position: fixed;
	top: 0;
	right: 0;
	z-index: 999999;
	display: flex;
	width: 100%;
	max-width: 420px;
	height: 100%;
	height: 100dvh;
	background: var(--tps-sc-bg);
	box-shadow: -18px 0 46px rgba(16, 18, 24, 0.18);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
	font-family: inherit;
	color: var(--tps-sc-ink);
	line-height: 1.4;
}

.tps-sc.is-open {
	transform: translateX(0);
}

.tps-sc__panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.tps-sc__panel[hidden] {
	display: none;
}

/* Header */

.tps-sc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	padding: 16px 18px;
	background: var(--tps-sc-panel-bg);
	border-bottom: 1px solid var(--tps-sc-line);
}

.tps-sc__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--tps-sc-ink);
}

.tps-sc__title--center {
	flex: 1 1 auto;
	justify-content: center;
	font-size: 17px;
}

.tps-sc__bag {
	display: inline-flex;
	color: var(--tps-sc-accent);
}

.tps-sc__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--tps-sc-ink);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
}

.tps-sc__x,
.tps-sc__back {
	margin-left: auto;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--tps-sc-ink);
	cursor: pointer;
	line-height: 0;
}

.tps-sc__back {
	margin-left: 0;
	margin-right: auto;
}

/* Scroll area */

.tps-sc__inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.tps-sc__scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 10px;
}

.tps-sc__ship {
	padding: 11px 16px;
	background: var(--tps-sc-accent);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.tps-sc__ship--done {
	background: var(--tps-sc-save);
}

/* Items */

.tps-sc__items {
	margin: 0;
	padding: 14px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tps-sc__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	background: var(--tps-sc-panel-bg);
	border-radius: 12px;
}

.tps-sc__media {
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	border-radius: 8px;
	overflow: hidden;
	background: #f6f6f4;
}

.tps-sc__media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0 !important;
	border-radius: 0 !important;
}

.tps-sc__meta {
	flex: 1 1 auto;
	min-width: 0;
}

.tps-sc__name {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tps-sc-ink);
}

.tps-sc__qty {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 5px;
	font-size: 13px;
	color: var(--tps-sc-muted);
}

.tps-sc__step {
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid var(--tps-sc-line);
	border-radius: 5px;
	background: #fff;
	color: var(--tps-sc-ink);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
}

.tps-sc__qty-value {
	min-width: 16px;
	text-align: center;
	font-weight: 700;
	color: var(--tps-sc-accent);
}

.tps-sc__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	color: var(--tps-sc-muted);
}

.tps-sc__price del {
	color: #b0b4ba;
	text-decoration: line-through;
	text-decoration-color: #e0503c;
}

.tps-sc__price ins {
	background: none;
	text-decoration: none;
	font-weight: 700;
	color: var(--tps-sc-accent);
}

.tps-sc__bin {
	flex: 0 0 auto;
	padding: 2px;
	border: 0;
	background: none;
	color: var(--tps-sc-muted);
	cursor: pointer;
	line-height: 0;
}

.tps-sc__bin:hover {
	color: #b3261e;
}

/* Footer */

.tps-sc__foot {
	flex: 0 0 auto;
	padding: 14px 14px 16px;
	background: var(--tps-sc-panel-bg);
	border-top: 1px solid var(--tps-sc-line);
}

.tps-sc__coupon {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.tps-sc__coupon-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--tps-sc-line);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: var(--tps-sc-ink);
}

.tps-sc__apply {
	flex: 0 0 auto;
	padding: 0 20px;
	height: 42px;
	border: 0;
	border-radius: 8px;
	background: var(--tps-sc-ink);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.tps-sc__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.tps-sc__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #f2f7f4;
	color: var(--tps-sc-save);
	font-size: 12px;
	font-weight: 700;
}

.tps-sc__chip button {
	border: 0;
	background: none;
	color: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.tps-sc__msg {
	margin: 0 0 10px;
	font-size: 12.5px;
	color: #b3261e;
}

.tps-sc__msg.is-good {
	color: var(--tps-sc-save);
}

.tps-sc__offers {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px dashed var(--tps-sc-line);
	font-size: 13px;
	color: var(--tps-sc-accent);
	font-weight: 600;
}

.tps-sc__offers button {
	border: 0;
	background: none;
	color: var(--tps-sc-ink);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

/* Totals */

.tps-sc__totals {
	margin: 12px 0 14px;
	border: 1px solid var(--tps-sc-line);
	border-radius: 10px;
	background: #fff;
}

.tps-sc__totals summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
}

.tps-sc__totals summary::-webkit-details-marker {
	display: none;
}

.tps-sc__totals summary::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-left: 2px;
	border-right: 2px solid var(--tps-sc-ink);
	border-bottom: 2px solid var(--tps-sc-ink);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.tps-sc__totals[open] summary::after {
	transform: rotate(-135deg);
}

.tps-sc__totals-label {
	font-weight: 700;
}

.tps-sc__totals-figures {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	margin-left: auto;
}

.tps-sc__totals-figures del {
	color: #b0b4ba;
	font-size: 13px;
}

.tps-sc__totals-figures b {
	font-size: 15px;
}

.tps-sc__totals-figures em {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	color: var(--tps-sc-save);
}

.tps-sc__rows {
	padding: 0 14px 14px;
	border-top: 1px solid var(--tps-sc-line);
	padding-top: 12px;
}

.tps-sc__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 13.5px;
	font-weight: 600;
}

.tps-sc__row--save {
	color: var(--tps-sc-save);
}

.tps-sc__row--total {
	font-size: 15px;
	font-weight: 700;
	color: var(--tps-sc-accent);
}

.tps-sc__fineprint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--tps-sc-muted);
}

.tps-sc__checkout {
	display: block;
	width: 100%;
	padding: 15px 16px;
	border-radius: 8px;
	background: var(--tps-sc-accent);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.18s ease;
}

.tps-sc__checkout:hover {
	opacity: 0.9;
	color: #fff;
}

.tps-sc__note {
	margin: 10px 0 0;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	color: var(--tps-sc-ink);
}

.tps-sc__brand {
	margin: 6px 0 0;
	font-size: 11px;
	text-align: center;
	color: #a9adb4;
}

/* Empty */

.tps-sc__empty {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 40px 24px;
	text-align: center;
}

.tps-sc__empty-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.tps-sc__empty-note {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: var(--tps-sc-muted);
}

.tps-sc__empty .tps-sc__checkout {
	max-width: 220px;
}

/* Coupons panel */

.tps-sc__scroll--coupons {
	padding: 16px 16px 24px;
	background: var(--tps-sc-panel-bg);
}

.tps-sc__group {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--tps-sc-ink);
}

.tps-sc__group + .tps-sc__group,
.tps-sc__offer + .tps-sc__group {
	margin-top: 18px;
}

.tps-sc__offer {
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px dashed var(--tps-sc-line);
}

.tps-sc__offer-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.tps-sc__code {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #cfd3d8;
	border-radius: 6px;
	background: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tps-sc__use {
	margin-left: auto;
	padding: 7px 14px;
	border: 0;
	border-radius: 6px;
	background: var(--tps-sc-accent);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.tps-sc__offer-why {
	margin: 0 0 4px;
	font-size: 13px;
	color: #c0392b;
}

.tps-sc__offer-note {
	margin: 0;
	font-size: 13px;
	color: var(--tps-sc-muted);
}

/* Icon buttons
   Themes give every button a background on hover. These are icons, not buttons
   in the visual sense, so the background is refused here.
   ------------------------------------------------------------------ */

.tps-sc .tps-sc__x,
.tps-sc .tps-sc__back,
.tps-sc .tps-sc__bin,
.tps-sc .tps-sc__chip button,
.tps-sc .tps-sc__offers button,
.tps-sc .tps-sc__x:hover,
.tps-sc .tps-sc__back:hover,
.tps-sc .tps-sc__bin:hover,
.tps-sc .tps-sc__chip button:hover,
.tps-sc .tps-sc__offers button:hover,
.tps-sc .tps-sc__x:focus,
.tps-sc .tps-sc__back:focus,
.tps-sc .tps-sc__bin:focus,
.tps-sc .tps-sc__x:active,
.tps-sc .tps-sc__back:active,
.tps-sc .tps-sc__bin:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	text-decoration: none !important;
	transform: none !important;
}

.tps-sc .tps-sc__x:hover,
.tps-sc .tps-sc__back:hover {
	opacity: 0.6;
}

.tps-sc .tps-sc__step,
.tps-sc .tps-sc__step:hover,
.tps-sc .tps-sc__step:focus {
	background: var(--tps-sc-panel-bg) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--tps-sc-ink) !important;
}

.tps-sc .tps-sc__step:hover {
	border-color: var(--tps-sc-ink) !important;
}

/* Keyboard users still get a visible ring. */
.tps-sc .tps-sc__x:focus-visible,
.tps-sc .tps-sc__back:focus-visible,
.tps-sc .tps-sc__bin:focus-visible,
.tps-sc .tps-sc__step:focus-visible {
	outline: 2px solid var(--tps-sc-accent);
	outline-offset: 2px;
}

.tps-cart-toggle,
.tps-cart-toggle:hover,
.tps-cart-toggle:focus,
.tps-cart-toggle:active {
	background: none !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

/* Busy state, kept subtle so nothing jumps while a request runs */

.tps-sc.is-busy .tps-sc__scroll {
	opacity: 0.75;
	transition: opacity 0.15s ease;
}

/* Loading placeholder */

.tps-sc__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 60px 0;
}

.tps-sc__loading span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cfd3d8;
	animation: tps-sc-pulse 1s infinite ease-in-out;
}

.tps-sc__loading span:nth-child(2) {
	animation-delay: 0.15s;
}

.tps-sc__loading span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes tps-sc-pulse {

	0%, 80%, 100% {
		opacity: 0.35;
		transform: scale(0.85);
	}

	40% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Cart icon shortcode */

.tps-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tps-ci-color, currentColor);
	text-decoration: none;
	line-height: 1;
	vertical-align: middle;
	cursor: pointer;
}

.tps-cart-toggle:hover {
	color: var(--tps-ci-color, currentColor);
	opacity: 0.8;
}

.tps-cart-toggle__icon {
	display: inline-flex;
	line-height: 0;
}

.tps-cart-toggle__icon svg {
	width: var(--tps-ci-size, 24px);
	height: var(--tps-ci-size, 24px);
	display: block;
}

.tps-cart-toggle__label,
.tps-cart-toggle__total {
	font-size: 14px;
	font-weight: 600;
}

.tps-cart-toggle__total .woocommerce-Price-amount {
	color: inherit;
}

.tps-cart-count {
	position: absolute;
	top: -7px;
	left: calc(var(--tps-ci-size, 24px) - 10px);
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--tps-ci-badge, #e2673f);
	color: var(--tps-ci-badge-ink, #ffffff);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.tps-cart-count[data-count="0"] {
	display: none;
}

/* Motion and small screens */

@media (max-width: 767px) {

	.tps-sc {
		width: 90%;
		max-width: 90%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.tps-sc,
	.tps-sc-overlay {
		transition: none;
	}
}

body.tps-sc-locked {
	overflow: hidden;
}
