/*
 * Cicka Design – sales (inc/sales.php): the sale bar above the header, the
 * home hero line, the shop/blog banner, category chip labels, the cart
 * drawer's "You save" line and the "Lowest price in the last 30 days" note.
 */

:root {
	--csale-ink: #3A2B2B;
	--csale-ink-2: #5A4846;
	--csale-muted: #7A6A68;
	--csale-head: #7D4F50;
	--csale-accent: #A55F59;
	--csale-blush: #F8E6E3;
	--csale-line: #EBD3CF;
	--csale-green: #4F7A55;
}

/* ---------- Sale bar ---------- */
.csale-bar {
	position: relative;
	z-index: 100;
	background: var(--csale-ink);
	color: #fff;
	font-size: 13.5px;
	line-height: 1.35;
}
.csale-bar[hidden] { display: none; }
.csale-bar--rose { background: var(--csale-accent); }
/* "Season colour": set by the Seasons feature when a season is on. */
.csale-bar--season { background: var(--cicka-season-accent, var(--csale-accent)); }
.csale-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	max-width: 1200px;
	min-height: 44px;
	margin: 0 auto;
	padding: 8px 48px;
	text-align: center;
}
.csale-bar__name {
	border-radius: 99px;
	padding: 5px 10px;
	background: #fff;
	color: var(--csale-ink);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.csale-bar--rose .csale-bar__name { color: var(--csale-accent); }
.csale-bar--season .csale-bar__name { color: var(--cicka-season-accent, var(--csale-accent)); }
.csale-bar__text b { font-weight: 700; }
.csale-bar__clock { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; opacity: .92; }
.csale-bar__clock[hidden] { display: none; }
.csale-bar__clock span { border-radius: 6px; padding: 2px 6px; background: rgba(255, 255, 255, .14); }
.csale-bar__clock span:empty { display: none; }
.csale-bar .csale-bar__go,
.csale-bar .csale-bar__go:visited { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.csale-bar .csale-bar__go:hover { color: #fff; text-decoration-thickness: 2px; }
.csale-bar .csale-bar__x {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 32px;
	opacity: .7;
	cursor: pointer;
	transform: translateY(-50%);
}
.csale-bar .csale-bar__x:hover,
.csale-bar .csale-bar__x:focus-visible { background: rgba(255, 255, 255, .14); opacity: 1; }

/* ---------- Home hero line ---------- */
.csale-hero,
.csale-hero:visited {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	margin: 0 0 14px;
	border-radius: 99px;
	padding: 6px 16px 6px 6px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(58, 43, 43, .08);
	color: var(--csale-ink-2);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
}
.csale-hero:hover { color: var(--csale-accent); }
.csale-hero b {
	flex: none;
	border-radius: 99px;
	padding: 5px 10px;
	background: var(--csale-accent);
	color: #fff;
	font-size: 11.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---------- Shop / blog banner ---------- */
.csale-banner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	margin: 26px 0 0;
	border: 1px solid var(--csale-line);
	border-radius: 22px;
	padding: 20px 24px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(58, 43, 43, .06);
	text-align: left;
}
.csale-banner__big { color: var(--csale-accent); font-size: 40px; font-weight: 500; line-height: 1; white-space: nowrap; }
.csale-banner__text b { display: block; margin-bottom: 3px; color: var(--csale-head); font-size: 19px; font-weight: 500; line-height: 1.3; }
.csale-banner__text span { display: block; color: var(--csale-ink-2); font-size: 14px; line-height: 1.5; }
.csale-banner .csale-banner__btn,
.csale-banner .csale-banner__btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 99px;
	padding: 0 24px;
	background: var(--csale-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.csale-banner .csale-banner__btn:hover { background: #8F4E49; color: #fff; }
.csale-blog { max-width: 1168px; margin: 0 auto 8px; padding: 0 24px; }

/* ---------- Category chips: "−25%" ---------- */
.csale-chip {
	margin-left: 4px;
	border-radius: 99px;
	padding: 2px 7px;
	background: var(--csale-accent);
	color: #fff;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	vertical-align: 1px;
}

/* "Black Week −25%" stays on one line, even on the small phone photos. */
.cicka-shop .cs-pill--sale { white-space: nowrap; }

/* ---------- Prices: 30-day lowest price, sale end, savings ---------- */
.csale-low {
	display: block;
	margin-top: 3px;
	color: var(--csale-muted);
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.45;
	white-space: normal;
}
.csale-low .amount { font: inherit; color: inherit; }
.csale-low--product { flex-basis: 100%; margin-top: 6px; font-size: 13px; }
.csale-until { margin: 8px 0 0; color: var(--csale-ink-2); font-size: 14px; }
.csale-save {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 10px 0 0;
	border-radius: 12px;
	padding: 9px 12px;
	background: #EEF4EE;
	color: var(--csale-green);
	font-size: 14px;
	line-height: 1.4;
}
.csale-save b { white-space: nowrap; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 921px) {
	.csale-banner { grid-template-columns: auto minmax(0, 1fr); }
	.csale-banner .csale-banner__btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.csale-bar__inner { gap: 6px 10px; padding: 8px 40px 8px 12px; font-size: 13px; }
	.csale-bar__more { display: none; }
	.csale-banner { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
	.csale-banner__big { font-size: 32px; }
	.csale-blog { padding: 0 16px; }
	.csale-hero { font-size: 13px; }
}
