/* ==========================================================================
   Reward Catalog — new styles only.
   Rows / labels / columns / striping / mobile-only reuse existing theme classes
   (.reward-row, .reward-labels-row, .reward-col, .col--*, .odd, .grid-push-4, pt5/pb5/pl5/pr4).
   ========================================================================== */

.rc {
	position: relative;
	margin-bottom: 60px;
}

/* --- Toolbar -------------------------------------------------------------- */

.rc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin: 0 0 20px;
}

.rc-search {
	display: flex;
	flex: 0 1 40%;
	min-width: 260px;
}

.rc .rc-input,
.rc .rc-select {
	box-sizing: border-box;
	height: 40px;
	margin: 0;
	border: 0;
	border-radius: 4px;
	background-color: #F1F4F8;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #0C215A;
	outline: none;
}

.rc .rc-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 12px;
	border-radius: 4px 0 0 4px;
	-webkit-appearance: none;
	appearance: none;
}

.rc .rc-input::placeholder {
	color: #828282;
}

.rc .rc-input:focus,
.rc .rc-select:focus-visible {
	box-shadow: 0 0 0 2px #1E72FD;
}

.rc .rc-search-btn {
	display: block;
	height: 40px;
	min-width: 100px;
	padding: 0 16px;
	border-radius: 0 4px 4px 0;
	background: #1E72FD;
	color: #fff;
}

.rc .rc-search-btn:hover {
	background: #5C7BE9;
}

.rc .rc-select {
	flex: 0 0 170px;
	padding: 0 36px 0 12px;
	color: #828282;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.rc .rc-select#rc-country {
	flex-basis: 220px;
}

.rc .rc-select.is-set {
	color: #0C215A;
}

.rc .rc-reset {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	background: none;
	color: #1E72FD;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: none !important; /* theme forces capitalize on buttons */
}

.rc .rc-reset:hover {
	opacity: .75;
}

.rc-count {
	margin: 0 0 10px;
	font-size: 14px;
	color: #828282;
}

/* --- Rows ----------------------------------------------------------------- */

.rc .rc-row {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: background-color .15s ease;
}

.rc .rc-row:hover,
.rc .rc-row:focus-visible {
	background-color: #E6EEFE;
	outline: none;
}

.rc .rc-row .col {
	min-height: 1px; /* keeps empty cells (no Type / Delivery) from collapsing the float grid */
	overflow-wrap: anywhere;
}

.rc-empty {
	padding: 40px 15px;
	font-size: 16px;
	color: #828282;
}

.rc-sentinel {
	height: 1px;
}

/* --- Back to top ---------------------------------------------------------- */

.rc .rc-top {
	position: fixed;
	right: 24px;
	bottom: 100px; /* clears the HubSpot chat launcher */
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	background: #1E72FD;
	color: #fff;
	box-shadow: 0 4px 14px rgba(12, 33, 90, .25);
}

.rc .rc-top[hidden] {
	display: none;
}

.rc .rc-top:hover {
	background: #0C215A;
}

/* --- Tablet --------------------------------------------------------------- */

@media (max-width: 1100px) {
	.rc-search {
		flex-basis: 100%;
	}

	.rc .rc-select,
	.rc .rc-select#rc-country {
		flex: 1 1 0;
	}
}

/* --- Mobile (column widths ported from the old CAF custom CSS) ------------ */

@media (max-width: 480px) {
	.rc-toolbar {
		margin: 0 -35px 20px;
		padding: 30px 15px;
		background: #B3C3FF;
	}

	.rc .rc-reset {
		padding-top: 5px;
	}
	
	.rc-search {
		min-width: 0;
	}

	.rc .rc-input,
	.rc .rc-select {
		font-size: 14px;
	}

	.rc .rc-search-btn {
		min-width: 70px;
	}

	.rc .rc-reset {
		flex-basis: 100%;
		font-size: 14px;
	}

	/* bleed rows to the screen edge like the old layout */
	.rc .grid-push-4 {
		width: calc(100% + 30px) !important;
		margin-left: -15px;
	}

	.rc .rewardfilter-col {
		width: 25%;
	}

	.rc .rewardfilter-col.col--brand {
		width: 39%;
	}

	.rc .rewardfilter-col.col--currency {
		width: 11%;
	}

	.rc .rc-top {
		right: 16px;
		bottom: 90px;
		width: 42px;
		height: 42px;
	}
}
