/* Rand Promotion – website styles. Colours and sizes come from CSS variables set in the settings. */

.rp { display: none !important; }

/* ---------- Badge ---------- */
.rp-badge {
	display: inline-flex;
	align-items: center;
	font-weight: 800;
	font-size: .78em;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1;
	padding: .45em .85em;
	border-radius: 999px;
	white-space: nowrap;
}
.rp-badge[hidden], .rp-bar__btn[hidden], .rp-countdown[hidden] { display: none !important; }

/* ---------- Announcement bar ---------- */
.rp-bar.is-on {
	display: block !important;
	position: relative;
	z-index: var(--rp-z, 99990);
	color: var(--rp-bar-text);
	font-size: var(--rp-bar-fs, 15px);
	line-height: 1.4;
	background: var(--rp-bar-bg1);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.rp-bar *, .rp-box *, .rp-label * { box-sizing: border-box; }
.rp-bar--bg-gradient.is-on { background: linear-gradient(100deg, var(--rp-bar-bg1), var(--rp-bar-bg2)); }
.rp-bar--bg-animated.is-on {
	background: linear-gradient(100deg, var(--rp-bar-bg1), var(--rp-bar-bg2), var(--rp-bar-bg1));
	background-size: 300% 100%;
	animation: rp-flow 12s ease-in-out infinite;
}
@keyframes rp-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.rp-bar__inner {
	max-width: var(--rp-bar-width, 1200px);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5em 1em;
	padding: .65em 3.2em .65em 1.2em;
	text-align: center;
}
.rp-bar--small .rp-bar__inner { padding-top: .35em; padding-bottom: .35em; }
.rp-bar--large .rp-bar__inner { padding-top: 1.05em; padding-bottom: 1.05em; }
.rp-bar--align-left .rp-bar__inner { justify-content: flex-start; text-align: left; }
.rp-bar--align-spread .rp-bar__inner { justify-content: space-between; text-align: left; }
.rp-bar--align-spread .rp-bar__msg { flex: 1 1 auto; }

.rp-bar__badge { background: var(--rp-bar-badge-bg); color: var(--rp-bar-badge-text); }
.rp-bar__msg { color: inherit; }
.rp-bar__msg strong, .rp-bar__msg b { color: inherit; font-weight: 700; }
.rp-bar__msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rp-msg-short { display: none; }

.rp-bar__btn,
.rp-bar__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	background: var(--rp-bar-btn-bg);
	color: var(--rp-bar-btn-text) !important;
	font-weight: 700;
	font-size: .93em;
	line-height: 1;
	padding: .62em 1.2em;
	border-radius: 999px;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	transition: transform .15s ease, box-shadow .15s ease;
}
.rp-bar__btn::after { content: "→"; transition: transform .15s ease; }
.rp-bar__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.rp-bar__btn:hover::after { transform: translateX(3px); }
.rp-bar--small .rp-bar__btn { padding: .45em 1em; }

.rp-bar__close {
	position: absolute;
	right: .6em;
	top: 50%;
	transform: translateY(-50%);
	width: 2em;
	height: 2em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: .8;
	transition: background .15s ease, opacity .15s ease;
}
.rp-bar__close:hover, .rp-bar__close:focus-visible { background: rgba(255, 255, 255, .18); opacity: 1; outline: none; }

/* Positions */
.rp-bar--top_sticky.is-on { position: sticky; top: var(--rp-offset, 0px); }
.admin-bar .rp-bar--top_sticky.is-on { top: calc(var(--rp-offset, 0px) + 32px); }
@media (max-width: 782px) { .admin-bar .rp-bar--top_sticky.is-on { top: calc(var(--rp-offset, 0px) + 46px); } }
@media (max-width: 600px) { .admin-bar .rp-bar--top_sticky.is-on { top: var(--rp-offset, 0px); } }

.rp-bar--bottom_sticky.is-on {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: calc(var(--rp-bar-width, 1200px) + 32px);
	margin: 0 auto;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .12);
}

/* Entrance animations */
.rp-anim-slide.is-on { animation: rp-slide-down .55s cubic-bezier(.2, .8, .2, 1) both; }
.rp-bar--bottom_sticky.rp-anim-slide.is-on { animation: rp-slide-up .55s cubic-bezier(.2, .8, .2, 1) both; }
.rp-anim-fade.is-on { animation: rp-fade .6s ease both; }
.rp-bar--bg-animated.rp-anim-slide.is-on { animation: rp-slide-down .55s cubic-bezier(.2, .8, .2, 1) both, rp-flow 12s ease-in-out infinite; }
.rp-bar--bg-animated.rp-anim-fade.is-on { animation: rp-fade .6s ease both, rp-flow 12s ease-in-out infinite; }
.rp-bar--bottom_sticky.rp-bar--bg-animated.rp-anim-slide.is-on { animation: rp-slide-up .55s cubic-bezier(.2, .8, .2, 1) both, rp-flow 12s ease-in-out infinite; }
@keyframes rp-slide-down { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rp-slide-up { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rp-fade { from { opacity: 0; } to { opacity: 1; } }
.rp-bar.is-closing { transition: opacity .25s ease, transform .25s ease; opacity: 0; transform: translateY(-8px); }

/* ---------- Countdown ---------- */
.rp-countdown:empty, .rp-countdown--off { display: none !important; }
.rp-countdown { display: inline-flex; align-items: center; gap: .3em; font-variant-numeric: tabular-nums; }
.rp-countdown--days { font-weight: 700; }
.rp-cd__label { font-size: .8em; opacity: .85; margin-right: .2em; }
.rp-cd__unit {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 2.5em;
	padding: .28em .35em .22em;
	border-radius: 8px;
	background: rgba(255, 255, 255, .16);
	line-height: 1;
}
.rp-cd__num { font-weight: 800; font-size: 1.05em; }
.rp-cd__txt { font-size: .58em; text-transform: uppercase; letter-spacing: .06em; opacity: .85; margin-top: .2em; }
.rp-bar--small .rp-cd__unit { flex-direction: row; gap: .2em; min-width: 0; padding: .2em .4em; }
.rp-bar--small .rp-cd__txt { margin: 0; font-size: .7em; }

/* ---------- Offer box ---------- */
.rp-box.is-on {
	display: block !important;
	margin: 16px 0 20px;
	padding: 16px 20px;
	color: var(--rp-box-text);
	background: var(--rp-box-bg);
	border: 2px solid var(--rp-box-accent);
	border-radius: var(--rp-box-radius, 12px);
	font-size: var(--rp-box-fs, 15px);
	line-height: 1.5;
}
.rp-box--outline.is-on { background: transparent; border-style: dashed; }
.rp-box--accent.is-on { border-width: 0 0 0 6px; }
.rp-box--bold.is-on { background: var(--rp-box-accent); border-color: var(--rp-box-accent); color: #fff; }
.rp-box--bold .rp-box__list li::before { background: rgba(255, 255, 255, .22) !important; color: #fff !important; }
.rp-box--bold .rp-cd__unit { background: rgba(255, 255, 255, .2) !important; color: #fff !important; }
.rp-box--shadow.is-on { box-shadow: 0 14px 40px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .06); }

.rp-box__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
.rp-box__badge { background: var(--rp-box-badge-bg); color: var(--rp-box-badge-text); font-size: .72em; }
.rp-box__title { font-weight: 800; font-size: 1.08em; color: inherit; }
.rp-box__list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.rp-box__list li { position: relative; margin: 6px 0 !important; padding-left: 1.85em; list-style: none !important; }
.rp-box__list li::before {
	position: absolute;
	left: 0;
	top: .18em;
	width: 1.3em;
	height: 1.3em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: .82em;
	font-weight: 800;
	line-height: 1;
	background: var(--rp-box-accent);
	color: #fff;
}
.rp-box--icons-check .rp-box__list li::before { content: "✓"; }
.rp-box--icons-star .rp-box__list li::before { content: "★"; }
.rp-box--icons-dot .rp-box__list li::before { content: ""; width: .5em; height: .5em; top: .55em; left: .35em; }
.rp-box--icons-none .rp-box__list li { padding-left: 0; }
.rp-box--icons-none .rp-box__list li::before { display: none; }
.rp-box__list strong { color: inherit; }
.rp-box__countdown { margin-top: 12px; }
.rp-box .rp-cd__unit { background: var(--rp-box-accent); color: #fff; border-radius: 8px; }

/* ---------- Product label ---------- */
.rp-label.is-on {
	display: flex !important;
	width: fit-content;
	align-items: center;
	gap: .35em;
	margin: 6px auto 8px !important;
	padding: .3em .85em;
	font-size: var(--rp-label-fs, 12px);
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.2;
	color: var(--rp-label-text);
	background: var(--rp-label-bg);
	border: 1px solid var(--rp-label-border);
	border-radius: 999px;
	white-space: nowrap;
}
.rp-label--rounded.is-on { border-radius: 6px; }
.rp-label--square.is-on { border-radius: 0; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
	.rp-bar--hide-mobile { display: none !important; }
	.rp-bar.is-on { font-size: calc(var(--rp-bar-fs, 15px) * .9); }
	.rp-bar__inner { gap: .4em .7em; padding-left: .9em; }
	.rp-bar__msg:has(.rp-msg-short) .rp-msg-full { display: none; }
	.rp-msg-short { display: inline; }
	.rp-bar--bottom_sticky.is-on { left: 10px; right: 10px; bottom: 10px; }
	.rp-cd__unit { min-width: 2.1em; }
}

@media (prefers-reduced-motion: reduce) {
	.rp-bar.is-on, .rp-bar__btn, .rp-bar__btn::after { animation: none !important; transition: none !important; }
}
