/* =========================================================
   Köplust — frontend-stilar
   Varm, lekfull men trovärdig butikskänsla. Konfetti-tema
   i korall/solgul/mint ovanpå en annars vanlig WooCommerce-yta.
   ========================================================= */

:root {
	--koplust-cream: #FAF7F2;
	--koplust-plum: #3D1F3D;
	--koplust-coral: #FF5A4E;
	--koplust-coral-dark: #E64539;
	--koplust-sun: #FFC857;
	--koplust-mint: #06D6A0;
}

/* ---- Köp-knapp ---- */
.koplust-buy-btn {
	background: var(--koplust-coral);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
	display: inline-block;
	text-decoration: none;
}

.koplust-buy-btn:hover {
	background: var(--koplust-coral-dark);
	color: #fff;
}

.koplust-buy-btn:active {
	transform: scale(0.95);
}

.koplust-buy-btn--large {
	padding: 14px 32px;
	font-size: 16px;
	margin-top: 12px;
}

.koplust-buy-btn.koplust-bought {
	background: var(--koplust-mint);
}

/* ---- Dopamin-badge (header) ---- */
.koplust-dopamine-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--koplust-plum);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 999px;
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 9000;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
	transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
}

.koplust-dopamine-badge.koplust-bump {
	transform: scale(1.15);
}

/* ---- Konfetti canvas ---- */
#koplust-confetti-canvas {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9998;
}

/* ---- Kvitto-toast ---- */
.koplust-toast {
	position: fixed;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--koplust-plum);
	color: #fff;
	padding: 16px 22px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 14px 30px rgba(0,0,0,0.25);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 9999;
	max-width: 90vw;
	pointer-events: none;
}

.koplust-toast.koplust-show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.koplust-toast__emoji {
	font-size: 28px;
	flex-shrink: 0;
}

.koplust-toast__text strong {
	color: var(--koplust-sun);
}

.koplust-toast__text div:last-child {
	font-size: 12px;
	opacity: 0.75;
	margin-top: 2px;
}

/* ---- Orderhistorik ---- */
.koplust-history {
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
}

.koplust-history__header h2 {
	margin-bottom: 4px;
}

.koplust-history__sub {
	color: #756575;
	font-size: 14px;
	margin-top: 0;
}

.koplust-history__empty {
	text-align: center;
	padding: 50px 20px;
	background: var(--koplust-cream);
	border-radius: 16px;
}

.koplust-history__empty p {
	margin-bottom: 18px;
	color: #756575;
}

.koplust-history__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 20px;
}

.koplust-history__row {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 2px solid #EDE6DB;
	border-radius: 14px;
	padding: 12px 16px;
}

.koplust-history__thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--koplust-cream);
}

.koplust-history__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.koplust-history__info {
	flex: 1;
	min-width: 0;
}

.koplust-history__name {
	font-weight: 600;
	font-size: 14.5px;
	color: var(--koplust-plum);
}

.koplust-history__meta {
	font-size: 12px;
	color: #968596;
	margin-top: 2px;
}

.koplust-history__price {
	text-align: right;
	flex-shrink: 0;
	font-weight: 700;
	color: var(--koplust-plum);
}

.koplust-history__paid {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: var(--koplust-mint);
	margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.koplust-buy-btn,
	.koplust-dopamine-badge,
	.koplust-toast {
		transition: none;
	}
}

@media (max-width: 560px) {
	.koplust-dopamine-badge {
		top: 8px;
		right: 8px;
		font-size: 11px;
		padding: 5px 11px;
	}
}
