/* TNC FlipBook — Cart Reminder styles */

.tncfb-cr-wrap {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	font-family: inherit;
}

/* --- expanded card --- */
.tncfb-cr-card {
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #ffffff;
	color: #0f1d33;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(9, 20, 40, 0.18), 0 2px 8px rgba(9, 20, 40, 0.08);
	padding: 20px 20px 14px;
	box-sizing: border-box;
	animation: tncfbCrIn 0.28s cubic-bezier(0.21, 0.8, 0.32, 1);
}

@keyframes tncfbCrIn {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tncfb-cr-card { animation: none; }
}

.tncfb-cr-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 12px;
}

.tncfb-cr-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.tncfb-cr-close {
	flex: none;
	width: 28px;
	height: 28px;
	margin: -4px -6px 0 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #8896af;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.tncfb-cr-close:hover {
	background: rgba(15, 29, 51, 0.06);
	color: #44536e;
}

.tncfb-cr-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	max-height: 168px;
	overflow-y: auto;
}

.tncfb-cr-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid #eef2f8;
	font-size: 13.5px;
	line-height: 1.4;
}

.tncfb-cr-item:last-child {
	border-bottom: none;
}

.tncfb-cr-name {
	color: #44536e;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tncfb-cr-qty {
	color: #8896af;
}

.tncfb-cr-price {
	flex: none;
	font-weight: 700;
	color: #0f1d33;
}

.tncfb-cr-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14px;
	color: #44536e;
	border-top: 1px solid #eef2f8;
	padding: 10px 0 12px;
}

.tncfb-cr-total strong {
	font-size: 16px;
	color: #0f1d33;
}

.tncfb-cr-cta {
	display: block;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff !important;
	text-decoration: none !important;
	background: linear-gradient(100deg, #1d4ed8, #2563eb);
	border-radius: 10px;
	padding: 13px 16px;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tncfb-cr-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.36);
	color: #ffffff;
}

.tncfb-cr-brand {
	margin: 12px 0 0;
	text-align: right;
	font-size: 12px;
	color: #b3bdcf;
}

/* --- minimized pill --- */
.tncfb-cr-pill {
	display: none;
	align-items: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	background: #0f1d33;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	border-radius: 999px;
	padding: 12px 18px;
	box-shadow: 0 10px 26px rgba(9, 20, 40, 0.3);
	font-family: inherit;
}

.tncfb-cr-pill svg {
	flex: none;
}

.tncfb-cr-count {
	background: #f5b301;
	color: #0a1830;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	padding: 2px 8px;
}

/* state switching */
.tncfb-cr-wrap.tncfb-cr-minimized .tncfb-cr-card { display: none; }
.tncfb-cr-wrap.tncfb-cr-minimized .tncfb-cr-pill { display: inline-flex; }

.tncfb-cr-close:focus-visible,
.tncfb-cr-cta:focus-visible,
.tncfb-cr-pill:focus-visible {
	outline: 3px solid #93b4f8;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.tncfb-cr-wrap { left: 12px; bottom: 12px; }
	.tncfb-cr-card { width: 300px; }
}
