/* WordPress can append its fatal-error template after partial page output.
 * Its unscoped body rule otherwise forces the entire storefront to 700px. */
body.britto-reward-page {
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}
.britto-reward-page .br-dashboard {
	margin-inline: auto;
	max-width: 1320px;
	padding-inline: clamp(16px, 3vw, 40px);
	width: 100%;
}
.br-runtime-error {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 12px;
	color: #7c2d12;
	margin: 24px auto;
	max-width: 960px;
	padding: 22px;
}
.br-runtime-error h3 { color: inherit; margin: 0 0 8px; }
.br-runtime-error p { margin: 0; }
.br-runtime-error details { margin-top: 14px; }
.br-runtime-error code { display: block; margin-top: 8px; overflow-wrap: anywhere; white-space: normal; }
.br-dashboard {
	--br-border: #e7e7e2;
	--br-muted: #6b706c;
	--br-surface: #fff;
	--br-soft: #f5f7f5;
	color: #171a18;
	font-size: 15px;
	line-height: 1.55;
}
.br-dashboard *, .br-block-recycling * { box-sizing: border-box; }
.br-hero {
	align-items: center;
	background: linear-gradient(135deg, var(--br-accent), #292d2a);
	border-radius: 20px;
	color: #fff;
	display: flex;
	gap: 28px;
	justify-content: space-between;
	margin-bottom: 22px;
	overflow: hidden;
	padding: clamp(24px, 4vw, 42px);
	position: relative;
}
.br-hero::after {
	background: rgba(255,255,255,.05);
	border-radius: 50%;
	content: "";
	height: 240px;
	position: absolute;
	right: -70px;
	top: -100px;
	width: 240px;
}
.br-hero h2 { color: inherit; font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 3px 0 10px; }
.br-hero p { margin: 0; max-width: 630px; }
.br-tier-badge {
	background: #fff;
	border-radius: 15px;
	color: var(--br-accent);
	min-width: 175px;
	padding: 18px 22px;
	position: relative;
	text-align: center;
	z-index: 1;
}
.br-tier-badge span, .br-tier-badge strong { display: block; }
.br-tier-badge span { color: var(--br-muted); font-size: 12px; text-transform: uppercase; }
.br-tier-badge strong { font-size: 22px; margin-top: 3px; }
.br-stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.br-stat-card, .br-panel {
	background: var(--br-surface);
	border: 1px solid var(--br-border);
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(22, 37, 28, .04);
}
.br-stat-card { padding: 20px; }
.br-stat-card span, .br-saved-value span { color: var(--br-muted); display: block; font-size: 13px; }
.br-stat-card strong { color: var(--br-accent); display: block; font-size: 26px; margin-top: 5px; }
.br-panel { margin-bottom: 20px; padding: clamp(18px, 3vw, 28px); }
.br-panel-heading { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 18px; }
.br-panel-heading h3 { color: var(--br-accent); font-size: 20px; margin: 0 0 3px; }
.br-panel-heading p { color: var(--br-muted); margin: 0; }
.br-progress { background: #e8ede9; border-radius: 20px; height: 10px; overflow: hidden; }
.br-progress span { background: var(--br-primary); border-radius: inherit; display: block; height: 100%; transition: width .35s ease; }
.br-tier-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.br-tier-card { border: 1px solid var(--br-border); border-radius: 13px; min-height: 190px; padding: 22px; position: relative; }
.br-tier-card.is-current { border: 2px solid var(--br-primary); background: color-mix(in srgb, var(--br-primary) 5%, white); }
.br-tier-card h4 { color: var(--br-accent); font-size: 19px; margin: 0 0 8px; }
.br-tier-card > strong { color: var(--br-primary); display: block; margin-bottom: 10px; }
.br-tier-card p { color: var(--br-muted); margin: 0; }
.br-current-pill { background: var(--br-primary); border-radius: 20px; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; position: absolute; right: 12px; top: 12px; text-transform: uppercase; }
.br-two-column { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.br-reward-list { display: grid; gap: 10px; }
.br-reward-row { align-items: center; background: var(--br-soft); border-radius: 10px; display: flex; gap: 15px; justify-content: space-between; padding: 14px; }
.br-reward-row strong, .br-reward-row span { display: block; }
.br-reward-row span { color: var(--br-muted); font-size: 13px; }
.br-dashboard .br-button, .br-copy-button {
	background: var(--br-primary) !important;
	border: 1px solid var(--br-primary) !important;
	border-radius: 7px !important;
	color: #fff !important;
	cursor: pointer;
	font-weight: 600 !important;
	padding: 9px 14px !important;
}
.br-dashboard .br-button[disabled] { cursor: not-allowed; opacity: .45; }
.br-dashboard .br-button-secondary { background: #fff !important; color: var(--br-primary) !important; display: inline-block; margin-bottom: 15px; }
.br-copy-row { display: flex; gap: 8px; }
.br-copy-row input { background: #fff; border: 1px solid var(--br-border); border-radius: 7px; min-width: 0; padding: 10px; width: 100%; }
.br-label, .br-form label { color: var(--br-accent); display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.br-whatsapp-link { color: var(--br-primary); display: inline-block; font-weight: 600; margin-top: 14px; }
.br-form { display: grid; gap: 9px; margin-top: 15px; }
.br-form input[type="text"], .br-form input[type="date"] { border: 1px solid var(--br-border); border-radius: 7px; padding: 10px; width: 100%; }
.br-form input[type="file"] { font-size: 13px; max-width: 100%; }
.br-form .br-button { justify-self: start; margin-top: 5px; }
.br-status { border-radius: 8px; font-weight: 600; margin: 14px 0 0; padding: 10px 12px; }
.br-status-approved { background: #e9f7ef; color: #166534; }
.br-status-pending { background: #fff8dd; color: #805b00; }
.br-status-rejected { background: #fff0f0; color: #9b2525; }
.br-saved-value { background: var(--br-soft); border-radius: 10px; padding: 14px; }
.br-saved-value strong { display: block; font-size: 18px; }
.br-help { color: var(--br-muted); font-size: 13px; }
.br-table-wrap { overflow-x: auto; }
.br-table { border: 0; border-collapse: collapse; margin: 0; width: 100%; }
.br-table th, .br-table td { border: 0; border-bottom: 1px solid var(--br-border); padding: 11px 8px; text-align: left; }
.br-table th { color: var(--br-muted); font-size: 12px; text-transform: uppercase; }
.br-table tr:last-child td { border-bottom: 0; }
.br-table code { background: var(--br-soft); border-radius: 5px; padding: 4px 6px; }
.br-positive { color: #16803c; }
.br-negative { color: #b42318; }
.br-login-required { border: 1px solid #e4e4e4; border-radius: 12px; padding: 25px; text-align: center; }
.br-account-entry-card {
	align-items: center;
	background: var(--br-primary, #45624f);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 8px 26px rgba(36, 67, 49, .14);
	color: #fff !important;
	display: flex;
	gap: 14px;
	margin: 0 0 22px;
	padding: 18px 20px;
	text-decoration: none !important;
	transition: box-shadow .2s ease, transform .2s ease;
}
.br-account-entry-card:hover { box-shadow: 0 11px 30px rgba(36, 67, 49, .22); color: #fff !important; transform: translateY(-1px); }
.br-account-entry-icon { align-items: center; background: rgba(255,255,255,.16); border-radius: 50%; display: inline-flex; flex: 0 0 42px; font-size: 19px; height: 42px; justify-content: center; }
.br-account-entry-copy { display: block; flex: 1; min-width: 0; }
.br-account-entry-copy strong, .br-account-entry-copy small { color: inherit; display: block; }
.br-account-entry-copy strong { font-size: 17px; }
.br-account-entry-copy small { margin-top: 2px; opacity: .82; }
.br-account-entry-arrow { font-size: 24px; }
.br-custom-nav-link { background: var(--br-primary, #45624f); border-radius: 7px; color: #fff !important; display: block; margin: 7px 0; padding: 10px 12px; text-decoration: none !important; }
.br-block-recycling {
	background: #f5f7f5;
	border: 1px solid #dfe6e0;
	border-radius: 10px;
	margin: 0 0 18px;
	padding: 15px 17px;
}
.br-block-recycling label { align-items: center; cursor: pointer; display: flex; font-weight: 600; gap: 8px; }
.br-block-recycling input { accent-color: var(--br-primary, #45624f); height: 18px; width: 18px; }
.br-block-recycling small { color: #6b706c; display: block; margin: 5px 0 0 26px; }
@media (max-width: 780px) {
	.br-stat-grid, .br-tier-grid, .br-two-column { grid-template-columns: 1fr; }
	.br-hero { align-items: flex-start; flex-direction: column; }
	.br-tier-badge { min-width: 0; width: 100%; }
	.br-account-entry-card { align-items: flex-start; }
}
