.olori-ref-wrap .olori-ref-intro {
	margin-bottom: 1.5em;
}

.olori-ref-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 2em;
}

.olori-ref-stat {
	flex: 1 1 140px;
	padding: 16px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	text-align: center;
	background: #fafafa;
}

.olori-ref-stat-value {
	display: block;
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.2;
}

.olori-ref-stat-label {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	opacity: 0.7;
}

.olori-ref-copy {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: stretch;
}

.olori-ref-copy input[type="text"],
.olori-ref-input {
	flex: 1 1 240px;
	padding: 10px 12px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-family: monospace;
	background: #fff;
}

.olori-ref-code {
	margin-top: 10px;
	font-size: 0.95em;
}

.olori-ref-share {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.olori-ref-table {
	width: 100%;
	margin-top: 10px;
}

.olori-ref-table code {
	font-size: 0.85em;
}

@media (max-width: 600px) {
	.olori-ref-stat {
		flex: 1 1 100%;
	}
}

/* ---------------------------------------------------------------
 * First-time buyer offer
 * ------------------------------------------------------------ */

.olori-fo-msg {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #b7e1c1;
	border-left: 4px solid #2e9d4f;
	border-radius: 8px;
	background: #effaf2;
	color: #1d5e30;
	font-weight: 600;
	line-height: 1.4;
}

.olori-fo-msg-icon {
	font-size: 1.4em;
	line-height: 1;
}

.olori-fo-msg-text {
	flex: 1 1 200px;
}

.olori-fo-msg-amount {
	white-space: nowrap;
	font-weight: 700;
}

.olori-fo-msg--off {
	border-color: #e6e6e6;
	border-left-color: #999;
	background: #f7f7f7;
	color: #555;
	font-weight: 400;
}

.olori-fo-bar {
	position: relative;
	display: none;
	padding: 9px 44px;
	background: #111;
	color: #fff;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.4;
	z-index: 1000;
}

.olori-fo-bar.is-visible {
	display: block;
}

.olori-fo-bar-close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 30px;
	cursor: pointer;
	min-height: 0;
}

.olori-fo-offer--inline {
	padding: 14px 18px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	text-align: center;
	font-weight: 600;
}

@media (max-width: 600px) {
	.olori-fo-bar {
		font-size: 12.5px;
		padding: 8px 38px 8px 12px;
	}
}

/* Ribbon celebration banner (cart + checkout) */

.olori-fo-celebrate {
	--olori-ribbon: #b0124a;
	position: relative;
	margin: 6px 0 22px;
	text-align: center;
}

.olori-fo-ribbon {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
	animation: olori-fo-unfurl 0.7s cubic-bezier(.2, 1.4, .4, 1) both;
}

.olori-fo-ribbon-body {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 26px;
	background: var(--olori-ribbon);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.12));
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
	letter-spacing: 0.01em;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	overflow: hidden;
}

/* Shine sweeping across the ribbon */
.olori-fo-ribbon-body::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-20deg);
	animation: olori-fo-shine 3.2s ease-in-out 0.8s infinite;
}

.olori-fo-ribbon-icon {
	font-size: 1.35em;
	line-height: 1;
	display: inline-block;
	animation: olori-fo-bounce 1.4s ease-in-out 0.6s infinite;
}

.olori-fo-ribbon-text {
	position: relative;
	z-index: 1;
}

/* Folded, notched ribbon tails */
.olori-fo-ribbon-tail {
	position: relative;
	z-index: 1;
	flex: 0 0 34px;
	margin-top: 10px;
	margin-bottom: -10px;
	background: var(--olori-ribbon);
	filter: brightness(0.72);
}

.olori-fo-ribbon-tail--l {
	margin-right: -12px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
}

.olori-fo-ribbon-tail--r {
	margin-left: -12px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
}

.olori-fo-celebrate-save {
	margin-top: 16px;
	font-size: 14px;
	color: #333;
	animation: olori-fo-rise 0.4s ease 0.45s both;
}

.olori-fo-celebrate-save strong {
	color: var(--olori-ribbon);
}

/* Confetti layer */
.olori-fo-confetti {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 99999;
	overflow: hidden;
}

.olori-fo-confetti i {
	position: absolute;
	width: 8px;
	height: 12px;
	margin: -6px 0 0 -4px;
	border-radius: 1px;
	opacity: 0;
	animation-name: olori-fo-pop;
	animation-timing-function: cubic-bezier(.15, .6, .35, 1);
	animation-fill-mode: forwards;
}

.olori-fo-confetti i.is-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.olori-fo-confetti i.is-ribbon {
	width: 5px;
	height: 22px;
	border-radius: 3px;
}

@keyframes olori-fo-pop {
	0% {
		opacity: 1;
		transform: translate(0, 0) rotate(0) scale(0.6);
	}
	35% {
		opacity: 1;
		transform: translate(var(--dx), var(--dy)) rotate(calc(var(--rot) * 0.4)) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(calc(var(--dx) * 1.15), calc(var(--dy) + var(--fall))) rotate(var(--rot)) scale(1);
	}
}

@keyframes olori-fo-unfurl {
	0% { opacity: 0; transform: scaleX(0.15); }
	60% { opacity: 1; }
	100% { opacity: 1; transform: scaleX(1); }
}

@keyframes olori-fo-rise {
	0% { opacity: 0; transform: translateY(6px); }
	100% { opacity: 1; transform: none; }
}

@keyframes olori-fo-shine {
	0% { left: -60%; }
	45%, 100% { left: 130%; }
}

@keyframes olori-fo-bounce {
	0%, 100% { transform: translateY(0) rotate(0); }
	50% { transform: translateY(-3px) rotate(-8deg); }
}

@media (max-width: 600px) {
	.olori-fo-ribbon {
		display: flex;
	}
	.olori-fo-ribbon-tail {
		display: none;
	}
	.olori-fo-ribbon-body {
		flex: 1 1 auto;
		padding: 12px 14px;
		font-size: 14px;
		border-radius: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.olori-fo-ribbon,
	.olori-fo-celebrate-save,
	.olori-fo-ribbon-body::after,
	.olori-fo-ribbon-icon {
		animation: none;
	}
}

/* ---------------------------------------------------------------
 * Reward points
 * ------------------------------------------------------------ */

.olori-pts-box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px dashed #d9b44a;
	border-radius: 10px;
	background: #fffaf0;
	color: #4a3a12;
	line-height: 1.45;
}

.olori-pts-main {
	flex: 1 1 260px;
}

.olori-pts-sub {
	margin-top: 2px;
	font-size: 0.92em;
	opacity: 0.85;
}

.olori-pts-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #d9a520;
	color: #fff;
	font-size: 17px;
	line-height: 1;
	flex: 0 0 auto;
}

.olori-pts-product .olori-pts-badge,
.olori-pts-dash .olori-pts-badge {
	width: 22px;
	height: 22px;
	font-size: 12px;
	vertical-align: middle;
	margin-right: 4px;
}

.olori-pts-action .button.olori-pts-use {
	margin: 0;
	white-space: nowrap;
}

.olori-pts-applied {
	font-weight: 700;
	color: #1d5e30;
}

.olori-pts-remove {
	margin-left: 8px;
	font-size: 0.9em;
	text-decoration: underline;
}

.olori-pts-need {
	font-size: 0.9em;
	opacity: 0.8;
}

.olori-pts-product {
	margin: 4px 0 14px;
	font-size: 14px;
	color: #6b5310;
}

.olori-pts-account {
	margin-bottom: 2.5em;
}

.olori-pts-rules {
	font-size: 0.92em;
	opacity: 0.85;
}

.olori-pts-plus {
	color: #1d7a3a;
	font-weight: 600;
}

.olori-pts-minus {
	color: #b0124a;
	font-weight: 600;
}
