.rocca-auth-nav {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: 0.75rem;
	padding-left: 0.75rem;
	border-left: 1px solid #e5e7eb;
	font-size: 0.8125rem;
}

/* Legacy header category shortcuts (theme template paragraphs, not navigation). */
header.wp-block-template-part a[href*="/power-banks/"],
header.wp-block-template-part a[href*="/home-deals/"],
header.wp-block-template-part a[href*="/under-php-1k/"] {
	display: none !important;
}

header.wp-block-template-part .wp-block-group:has(a[href*="/power-banks/"]),
header.wp-block-template-part .wp-block-group:has(a[href*="/home-deals/"]),
header.wp-block-template-part .wp-block-group:has(a[href*="/under-php-1k/"]) {
	display: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
}

/* Thinner site header (overrides theme inline padding). */
header.wp-block-template-part > .wp-block-group.alignfull {
	padding-top: 0.35rem !important;
	padding-bottom: 0.35rem !important;
}

header.wp-block-template-part .rocca-brand-mark {
	padding: 0.3rem 0.45rem !important;
	font-size: 11px !important;
	line-height: 1 !important;
	border-radius: 6px !important;
}

header.wp-block-template-part .wp-block-site-title,
header.wp-block-template-part .wp-block-site-title a {
	font-size: 0.95rem !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
}

header.wp-block-template-part p.has-text-color[style*="ffe8df"] {
	display: none !important;
}

header.wp-block-template-part .wp-block-search,
header.wp-block-template-part .wp-block-navigation__responsive-container-open {
	display: none !important;
}

header.wp-block-template-part .rocca-auth-nav {
	margin-left: auto;
	font-size: 0.75rem;
	gap: 0.35rem;
	padding-left: 0.5rem;
}

.rocca-auth-nav__user {
	font-weight: 500;
	color: #64748b;
	white-space: nowrap;
}

.rocca-auth-nav__link,
.rocca-auth-nav__login {
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
}

.rocca-auth-nav__link {
	color: #64748b;
	text-decoration: none;
}

.rocca-auth-nav__link:hover {
	color: #1a365d;
}

.rocca-auth-nav__login {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1a365d;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rocca-auth-nav__login:hover {
	background: transparent;
	color: #2d4a7c;
}

.rocca-auth-nav__admin {
	position: relative;
}

.rocca-auth-nav__notifications {
	position: relative;
}

.rocca-auth-nav__bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	opacity: 0.75;
}

.rocca-auth-nav__bell:hover,
.rocca-auth-nav__bell[aria-expanded='true'] {
	background: transparent;
	opacity: 1;
}

.rocca-auth-nav__bell-icon {
	font-size: 1rem;
	line-height: 1;
}

.rocca-auth-nav__bell-count {
	position: absolute;
	top: -0.2rem;
	right: -0.2rem;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.2rem;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 800;
	line-height: 1.1rem;
	text-align: center;
}

.rocca-auth-nav__notifications-dropdown {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	z-index: 110;
	width: min(92vw, 340px);
	max-height: 420px;
	overflow: auto;
	padding: 0.55rem;
	border: 1px solid #d4dde8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(26, 54, 93, 0.14);
}

.rocca-auth-nav__notifications-dropdown[hidden] {
	display: none !important;
}

.rocca-auth-nav__notifications-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
	padding: 0 0.15rem;
}

.rocca-auth-nav__notifications-read-all {
	padding: 0;
	border: 0;
	background: none;
	color: #2563eb;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.rocca-auth-nav__notifications-empty,
.rocca-auth-nav__notifications-loading {
	margin: 0;
	padding: 0.75rem 0.35rem;
	color: #64748b;
	font-size: 0.8125rem;
}

.rocca-auth-nav__notifications-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rocca-auth-nav__notification-item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.55rem 0.45rem;
	border-radius: 8px;
	cursor: pointer;
}

.rocca-auth-nav__notification-item:hover {
	background: #f8fafc;
}

.rocca-auth-nav__notification-item.is-read {
	opacity: 0.65;
}

.rocca-auth-nav__notification-type {
	color: #1a365d;
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.rocca-auth-nav__notification-title {
	color: #1a365d;
	font-size: 0.8125rem;
}

.rocca-auth-nav__notification-body {
	color: #475569;
	font-size: 0.75rem;
	line-height: 1.4;
	white-space: pre-wrap;
}

.rocca-auth-nav__notification-time {
	color: #94a3b8;
	font-size: 0.6875rem;
}

.rocca-auth-nav__admin-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
}

.rocca-auth-nav__admin-toggle:hover,
.rocca-auth-nav__admin-toggle[aria-expanded='true'] {
	color: #1a365d;
}

.rocca-auth-nav__admin-caret {
	font-size: 0.75rem;
}

.rocca-auth-nav__admin-dropdown {
	position: absolute;
	top: calc(100% + 0.45rem);
	right: 0;
	z-index: 100;
	width: min(92vw, 320px);
	padding: 0.55rem;
	border: 1px solid #d4dde8;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(26, 54, 93, 0.14);
}

.rocca-auth-nav__admin-dropdown[hidden] {
	display: none !important;
}

.rocca-auth-nav__dropdown-link {
	display: block;
	padding: 0.45rem 0.55rem;
	border-radius: 8px;
	color: #1a365d;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.rocca-auth-nav__dropdown-link:hover {
	background: #f8fafc;
	color: #1a365d;
}

.rocca-auth-nav__edit-toggle {
	width: 100%;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.rocca-auth-nav__edit-toggle.is-active,
.rocca-auth-nav__edit-toggle[aria-pressed='true'] {
	background: #eef2f8;
	color: #1a365d;
}

.rocca-auth-nav__dropdown-section {
	margin-top: 0.45rem;
	padding-top: 0.45rem;
	border-top: 1px solid #f1ded5;
}

.rocca-auth-nav__dropdown-heading {
	margin: 0 0 0.45rem;
	padding: 0 0.55rem;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #718096;
}

.rocca-auth-nav__history-empty {
	margin: 0;
	padding: 0.45rem 0.55rem;
	font-size: 0.8125rem;
	color: #718096;
}

.rocca-auth-nav__history-items {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
}

.rocca-auth-nav__history-item {
	padding: 0.55rem;
	border-radius: 8px;
}

.rocca-auth-nav__history-item + .rocca-auth-nav__history-item {
	margin-top: 0.15rem;
}

.rocca-auth-nav__history-item:hover {
	background: #f8fafc;
}

.rocca-auth-nav__history-meta {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	margin-bottom: 0.45rem;
}

.rocca-auth-nav__history-thumb {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.rocca-auth-nav__history-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.rocca-auth-nav__history-text strong {
	font-size: 0.8125rem;
	line-height: 1.25;
	color: #171717;
}

.rocca-auth-nav__history-type {
	font-size: 0.6875rem;
	color: #718096;
}

.rocca-auth-nav__history-actions {
	display: flex;
	gap: 0.35rem;
}

.rocca-auth-nav__history-btn {
	padding: 0.25rem 0.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #1a365d;
	cursor: pointer;
}

.rocca-auth-nav__history-btn:hover {
	background: #f8fafc;
}

.rocca-auth-nav__history-btn--danger {
	color: #b91c1c;
	border-color: #fecaca;
}

.rocca-auth-modal {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: none;
	max-height: none;
}

.rocca-auth-modal::backdrop {
	background: rgba(26, 54, 93, 0.45);
}

.rocca-auth-modal__panel {
	position: relative;
	width: min(100vw - 2rem, 400px);
	padding: 1.5rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(26, 54, 93, 0.18);
}

.rocca-auth-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.85rem;
	border: 0;
	background: none;
	font-size: 1.5rem;
	line-height: 1;
	color: #718096;
	cursor: pointer;
}

.rocca-auth-modal__title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	color: #1a365d;
}

.rocca-auth-modal__desc {
	margin: 0 0 1rem;
	color: #718096;
	font-size: 0.875rem;
}

.rocca-auth-modal #rocca-auth-login-form p {
	margin: 0 0 0.85rem;
}

.rocca-auth-modal #rocca-auth-login-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #1a365d;
}

.rocca-auth-modal #rocca-auth-login-form input[type='text'],
.rocca-auth-modal #rocca-auth-login-form input[type='password'] {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #d4dde8;
	border-radius: 8px;
	font: inherit;
	box-sizing: border-box;
}

.rocca-auth-modal #rocca_auth_submit {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: 8px;
	background: #1a365d;
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.rocca-auth-modal #rocca_auth_submit:hover {
	opacity: 0.92;
}

.rocca-auth-modal__register {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: #718096;
	text-align: center;
}

.rocca-auth-modal__register a {
	color: #1a365d;
	font-weight: 700;
}

@media (max-width: 782px) {
	header.wp-block-template-part .rocca-auth-nav {
		margin-left: auto;
		padding-left: 0;
		border-left: 0;
		margin-top: 0;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0.2rem 0.35rem;
		max-width: 100%;
	}

	.rocca-auth-nav__user {
		max-width: 6rem;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.rocca-auth-nav__bell {
		width: 2.25rem;
		height: 2.25rem;
	}

	.rocca-auth-nav__link,
	.rocca-auth-nav__login,
	.rocca-auth-nav__admin-toggle {
		min-height: 2.25rem;
		display: inline-flex;
		align-items: center;
		padding: 0.2rem 0.35rem;
	}

	.rocca-auth-nav__notifications-dropdown,
	.rocca-auth-nav__admin-dropdown {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: none;
		max-height: min(70vh, 480px);
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -8px 32px rgba(26, 54, 93, 0.18);
		padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
	}
}

@media (max-width: 480px) {
	.rocca-auth-nav__user {
		display: none;
	}

	.rocca-auth-nav__link,
	.rocca-auth-nav__login {
		font-size: 0.75rem;
	}

	.rocca-auth-modal__panel {
		width: calc(100vw - 1.5rem);
		padding: 1.25rem;
		margin: auto;
	}
}
