/*
Theme Name: Perfume Storefront
Description: Minimal storefront companion theme for the Perfume Import & Inventory Portal plugin. Shows the live catalog from the portal database.
Author: Import Portal
Version: 1.0.0
Requires PHP: 8.1
License: GPL v2 or later
Text Domain: perfume-storefront
*/

:root {
	--ps-bg: #f4f6fa;
	--ps-ink: #102949;
	--ps-muted: #62738a;
	--ps-accent: #f26a00;
	--ps-accent-dark: #102949;
	--ps-line: #dfe5ec;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--ps-bg);
	color: var(--ps-ink);
	font-family: Georgia, 'Times New Roman', serif;
	line-height: 1.6;
}

.ps-header {
	background: #fff;
	border-bottom: 1px solid var(--ps-line);
	position: sticky;
	top: 0;
	z-index: 10;
}

.ps-header__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.ps-logo {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ps-ink);
	text-decoration: none;
}

.ps-header ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.ps-header a { color: var(--ps-muted); text-decoration: none; font-size: 14px; }
.ps-header a:hover { color: var(--ps-accent); }

.ps-main { max-width: 1100px; margin: 0 auto; padding: 24px; }

.ps-hero {
	text-align: center;
	padding: 64px 24px 48px;
}

.ps-hero--image {
	position: relative;
	display: grid;
	min-height: 320px;
	align-content: center;
	justify-items: center;
	overflow: hidden;
	border-radius: 22px;
	background: linear-gradient(rgba(28, 25, 23, .48), rgba(28, 25, 23, .48)), var(--ps-hero-image) center/cover no-repeat;
	color: #fff;
}

.ps-hero--image p { color: rgba(255, 255, 255, .88); }

.ps-hero h1 { font-size: 40px; margin: 0 0 8px; font-weight: 400; letter-spacing: .02em; }
.ps-hero p { color: var(--ps-muted); margin: 0; }

.ps-category h2 {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--ps-accent-dark);
	border-bottom: 1px solid var(--ps-line);
	padding-bottom: 10px;
	margin: 40px 0 20px;
}

.ps-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.ps-card {
	background: #fff;
	border: 1px solid var(--ps-line);
	border-radius: 18px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}

.ps-card:hover {
	border-color: #dfc7ac;
	box-shadow: 0 16px 34px rgba(72, 45, 24, .12);
	transform: translateY(-4px);
}

.ps-card__img { aspect-ratio: 8/9; overflow: hidden; background: linear-gradient(145deg, #f8f2e8, #e8ddcc); }
.ps-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ps-card__body { padding: 16px 18px 20px; }
.ps-card__body h3 { margin: 0; font-size: 17px; font-weight: 700; }
.ps-brand { color: var(--ps-accent); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 2px 0 8px; }
.ps-desc { color: var(--ps-muted); font-size: 13px; margin: 0 0 12px; }

.ps-variants { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--ps-line);
	border-radius: 999px;
	padding: 3px 9px 3px 4px;
	font-size: 11px;
	color: var(--ps-muted);
	background: #fafaf9;
}
.ps-chip img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }

.ps-store-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(190px, 250px) auto;
	align-items: end;
	gap: 14px;
	margin: 0 0 30px;
	padding: 16px;
	border: 1px solid #eee7df;
	border-radius: 16px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 8px 26px rgba(55, 39, 27, .05);
}
.ps-store-search { position: relative; display: flex; min-width: 0; align-items: center; }
.ps-store-search > svg { position: absolute; left: 15px; width: 19px; height: 19px; color: #a49a90; pointer-events: none; }
.ps-store-search input,
.ps-store-category select {
	width: 100%;
	min-height: 48px;
	border: 1px solid #e8e0d7;
	border-radius: 11px;
	background: #fff;
	color: var(--ps-ink);
	font: 14px Arial, Helvetica, sans-serif;
}
.ps-store-search input { padding: 0 45px 0 44px; }
.ps-store-category { display: grid; gap: 5px; color: #75685d; font: 600 11px Arial, Helvetica, sans-serif; }
.ps-store-category select { padding: 0 12px; }
.ps-store-search input:focus,
.ps-store-category select:focus {
	border-color: var(--ps-accent);
	box-shadow: 0 0 0 3px rgba(180, 83, 9, .12);
	outline: 0;
}
.ps-store-search button {
	position: absolute;
	right: 8px;
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #75685d;
	font-size: 20px;
	cursor: pointer;
}
.ps-store-search button:hover { background: #f5f1eb; color: var(--ps-ink); }
.ps-store-search button[hidden] { display: none; }
.ps-store-controls > p { min-width: 88px; margin: 0 2px 13px 0; color: #75685d; font: 600 12px Arial, Helvetica, sans-serif; text-align: right; white-space: nowrap; }
.ps-store-empty { display: grid; min-height: 170px; align-content: center; justify-items: center; gap: 7px; margin: 12px 0 30px; padding: 25px; border: 1px dashed #dfd4c8; border-radius: 17px; background: rgba(255,255,255,.7); color: #75685d; text-align: center; }
.ps-store-empty strong { color: #35271f; font-size: 16px; }
.ps-store-empty[hidden] { display: none; }
.ps-category[hidden],
.ps-card[hidden] { display: none !important; }

body :is(button, input, select, textarea, a):focus-visible {
	outline: 3px solid rgba(180, 83, 9, .42);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.ps-store-controls { grid-template-columns: 1fr; gap: 11px; margin-bottom: 22px; padding: 13px; }
	.ps-store-controls > p { margin: 1px 2px 0; text-align: left; }
	.ps-card__body { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.ps-card,
	.ps-card * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
	.ps-card:hover { transform: none; }
}

.ps-notice {
	background: #fef3c7;
	color: #92400e;
	padding: 14px 18px;
	border-radius: 8px;
	margin: 24px 0;
}

.ps-footer {
	border-top: 1px solid var(--ps-line);
	margin-top: 64px;
	padding: 24px;
	text-align: center;
	color: var(--ps-muted);
	font-size: 13px;
}

@media (max-width: 640px) {
	.ps-hero h1 { font-size: 30px; }
	.ps-header__inner { flex-direction: column; }
}

body.ps-portal-site {
	background: var(--ps-bg);
	color: #171717;
	font-family: Arial, Helvetica, sans-serif;
}

.ps-header__inner {
	position: relative;
	flex-direction: row;
	max-width: none;
	min-height: 78px;
	margin: 0;
	padding: 12px 20px;
}

.ps-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #171717;
	text-decoration: none;
}

.ps-brand:hover { color: #171717; }

.ps-brand__mark {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 15px;
	background: linear-gradient(145deg, var(--ps-accent), var(--ps-accent-dark));
	box-shadow: 0 5px 14px rgba(16, 41, 73, .22);
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-weight: 700;
}

.ps-brand__text { display: grid; gap: 2px; }
.ps-brand__text strong { font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
.ps-brand__text small { color: #78716c; font-size: 12px; }
.ps-brand__logo { display: block; width: auto; max-width: 180px; max-height: 48px; object-fit: contain; }

.ps-nav-toggle {
	display: flex;
	width: 46px;
	height: 46px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
}

.ps-nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #57534e; }

.ps-nav {
	position: absolute;
	top: calc(100% - 2px);
	right: 24px;
	z-index: 20;
	display: none;
	min-width: 220px;
	padding: 8px;
	border: 1px solid #e7e5e4;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(28, 25, 23, .12);
}

.ps-nav--open { display: block; }
.ps-nav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ps-nav a { display: block; padding: 10px 12px; border-radius: 9px; color: #57534e; font-size: 14px; text-decoration: none; }
.ps-nav a:hover, .ps-nav a[aria-current="page"] { background: #fff1e6; color: var(--ps-accent-dark); }
.ps-nav .ps-store-link { margin-top: 6px; border-top: 1px solid #f0eeec; border-radius: 0 0 9px 9px; }

.ps-main { width: 100%; max-width: 1280px; min-height: calc(100vh - 180px); padding: 24px 30px; }
.ps-portal { padding: 12px 0 56px; }
.ps-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 10px 0 28px; }
.ps-page-heading h1 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(28px, 2.4vw, 32px); font-weight: 700; line-height: 1.2; }
.ps-page-heading p { margin: 8px 0 0; color: #78716c; font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
.ps-action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ps-accent); color: #fff; font: 700 14px Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ps-action:hover { background: var(--ps-accent-dark); color: #fff; }
.ps-action__icon { display: inline-flex; width: 18px; height: 18px; margin-right: 9px; }
.ps-action__icon svg { width: 100%; height: 100%; }
.ps-action--secondary { border: 1px solid #e7e5e4; background: #fff; color: #1c1917; }
.ps-action--secondary:hover { border-color: #d6d3d1; background: #fafaf9; color: #1c1917; }
.ps-access-card { max-width: 620px; padding: 28px; border: 1px solid #e7e5e4; border-radius: 18px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); }
.ps-access-card h2 { margin: 0 0 8px; font-size: 22px; }
.ps-access-card p { color: #78716c; }
.ps-muted { color: #78716c; }

body.ps-access-restricted .ps-header,
body.ps-access-restricted .ps-footer { display: none !important; }
body.ps-access-restricted .ps-main--portal { display: grid; width: 100%; min-height: 100vh; margin: 0; padding: 24px; place-items: center; }
.ps-access-denied { width: min(100%, 520px); padding: 42px; border: 1px solid #e7e1d9; border-radius: 22px; background: #fff; box-shadow: 0 22px 65px rgba(28, 25, 23, .1); text-align: center; }
.ps-access-denied__mark { display: grid; width: 52px; height: 52px; margin: 0 auto 20px; place-items: center; border-radius: 17px; background: #fff3e4; color: #a95522; font-size: 25px; font-weight: 700; }
.ps-access-denied__eyebrow { margin: 0 0 10px !important; color: #a95522 !important; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.ps-access-denied h1 { margin: 0 0 12px; color: #29211c; font-size: clamp(24px, 4vw, 32px); line-height: 1.2; }
.ps-access-denied > p:not(.ps-access-denied__eyebrow) { margin: 0 0 24px; color: #78716c; line-height: 1.6; }
.ps-access-denied .ps-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; background: var(--ps-accent); color: #fff; font-weight: 700; text-decoration: none; }
.ps-access-denied .ps-action:hover { background: #92400e; }

@media (max-width: 640px) {
	.ps-header__inner { flex-direction: row; }
	.ps-page-heading { flex-direction: column; align-items: stretch; margin-top: 4px; }
	.ps-page-heading .ps-action { align-self: flex-start; }
	.ps-main { padding: 18px; }
}

.ps-header--portal {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100;
	width: 205px;
	overflow-y: auto;
	border: 0;
	background: var(--ps-accent-dark);
	color: #fff;
}

.ps-header--portal .ps-header__inner {
	min-height: 100vh;
	height: 100%;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 26px;
	padding: 18px 13px 15px;
}

.ps-header--portal .ps-brand { gap: 10px; color: #fff; }
.ps-header--portal .ps-brand:hover { color: #fff; }
.ps-header--portal .ps-brand__mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; font-size: 19px; }
.ps-header--portal .ps-brand__mark svg { width: 20px; height: 20px; }
.ps-header--portal .ps-brand__logo { max-width: 150px; max-height: 38px; }
.ps-header--portal .ps-brand__text { gap: 1px; }
.ps-header--portal .ps-brand__text strong { color: #fafaf9; font-size: 14px; }
.ps-header--portal .ps-brand__text small { color: #a8a29e; font-size: 10px; }
.ps-language-control { display: block; min-width: 0; }
.ps-language-control select {
	width: 100%;
	min-height: 34px;
	padding: 0 10px;
	border: 1px solid #334d6b;
	border-radius: 8px;
	background: #18385d;
	color: #f5f5f4;
	font: 12px Arial, Helvetica, sans-serif;
}
.ps-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.ps-header--portal .ps-nav-toggle { display: none; }
.ps-header--portal .ps-nav {
	position: static;
	z-index: auto;
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.ps-header--portal .ps-nav ul { display: grid; gap: 5px; }
.ps-header--portal .ps-nav a {
	display: flex;
	min-height: 38px;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #d6d3d1;
	font-size: 12px;
	font-weight: 500;
}
.ps-header--portal .ps-nav a:hover { background: #18385d; color: #fff; }
.ps-header--portal .ps-nav a[aria-current="page"] { background: var(--ps-accent); color: #fff; }
.ps-header--portal .ps-nav__icon { display: inline-flex; width: 17px; height: 17px; flex: 0 0 17px; }
.ps-header--portal .ps-nav__icon svg { width: 100%; height: 100%; }
.ps-header--portal .ps-nav .ps-store-link {
	margin-top: 12px;
	border-top: 1px solid #334d6b;
	border-radius: 0;
	padding-top: 16px;
}
.ps-header--portal .ps-sidebar-note {
	display: grid;
	gap: 5px;
	margin-top: auto;
	padding: 14px 5px 0;
	border-top: 1px solid #334d6b;
	color: #a8a29e;
	font-size: 10px;
}
.ps-header--portal .ps-sidebar-note strong { color: #e7e5e4; font-size: 11px; font-weight: 500; }
.ps-main--portal {
	width: calc(100% - 205px);
	max-width: none;
	min-height: 100vh;
	margin: 0 0 0 205px;
	padding: 24px;
}
.ps-main--portal .ps-portal { max-width: 1084px; margin: 0 auto; padding: 8px 0 42px; }
.ps-portal-site .ps-footer { display: none; }

.ps-header--store .ps-header__inner { max-width: 1100px; margin: 0 auto; }
.ps-header--store .ps-language-control { margin-left: auto; }
.ps-header--store .ps-language-control select { min-height: 36px; padding: 0 9px; border: 1px solid #e7e5e4; border-radius: 8px; background: #fff; color: #44403c; font: 12px Arial, Helvetica, sans-serif; }
.ps-header--store .ps-nav-toggle { display: none; }
.ps-header--store .ps-sidebar-note { display: none; }
.ps-header--store .ps-nav { position: static; display: block; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.ps-header--store .ps-nav ul { display: flex; gap: 20px; }
.ps-header--store .ps-nav a { display: inline-block; padding: 6px 0; }
.ps-header--store .ps-nav .ps-store-link { margin: 0 0 0 18px; border: 0; }

@media (max-width: 760px) {
	.ps-header--portal { right: 0; bottom: auto; width: 100%; overflow: visible; }
	.ps-header--portal .ps-header__inner { min-height: 64px; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
	.ps-header--portal .ps-brand__text small { display: none; }
	.ps-header--portal .ps-language-control { width: 96px; margin-left: auto; }
	.ps-header--portal .ps-language-control select { min-height: 38px; padding: 0 6px; font-size: 11px; }
	.ps-header--portal .ps-nav-toggle { display: flex; width: 40px; height: 40px; flex: 0 0 40px; border-color: #334d6b; background: #18385d; }
	.ps-header--portal .ps-nav-toggle span { background: #e7e5e4; }
	.ps-header--portal .ps-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 8px 14px 14px;
		border-top: 1px solid #334d6b;
		background: var(--ps-accent-dark);
	}
	.ps-header--portal .ps-nav.ps-nav--open { display: flex; }
	.ps-header--portal .ps-nav ul { gap: 3px; }
	.ps-header--portal .ps-nav a { min-height: 42px; font-size: 14px; }
	.ps-header--portal .ps-nav .ps-store-link { margin-top: 7px; padding-top: 11px; }
	.ps-header--portal .ps-sidebar-note { display: none; }
	.ps-main--portal { width: 100%; margin: 64px 0 0; padding: 18px; }
	.ps-main--portal .ps-portal { padding-top: 4px; }
	.ps-header--store .ps-header__inner { flex-direction: row; }
	.ps-header--store .ps-language-control { width: 96px; margin-left: auto; }
	.ps-header--store .ps-language-control select { min-height: 38px; padding: 0 6px; font-size: 11px; }
	.ps-header--store .ps-nav-toggle { display: flex; }
	.ps-header--store .ps-nav { position: absolute; top: calc(100% - 2px); right: 16px; display: none; min-width: 220px; padding: 8px; border: 1px solid #e7e5e4; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(28, 25, 23, .12); }
	.ps-header--store .ps-nav.ps-nav--open { display: block; }
	.ps-header--store .ps-nav ul { display: grid; gap: 2px; }
	.ps-header--store .ps-nav a { display: block; padding: 10px 12px; }
	.ps-header--store .ps-nav .ps-store-link { margin: 6px 0 0; padding: 10px 12px; border-top: 1px solid #f0eeec; }
}

@media (max-width: 420px) {
	.ps-main--portal { padding: 14px; }
}

.ps-page-heading__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; }
.ps-action--instructions { min-height: 36px; padding: 0 13px; font-size: 12px; }
.ps-action--instructions .ps-action__icon { width: 16px; height: 16px; margin-right: 7px; }
.ps-instructions-dialog {
	width: min(760px, calc(100vw - 32px));
	max-width: none;
	max-height: min(680px, calc(100vh - 32px));
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 1px solid #e7e5e4;
	border-radius: 17px;
	background: #fff;
	color: #1c1917;
	box-shadow: 0 24px 70px rgba(28, 25, 23, .24);
	font-family: Arial, Helvetica, sans-serif;
}
.ps-instructions-dialog::backdrop { background: rgba(28, 25, 23, .56); backdrop-filter: blur(2px); }
.ps-instructions-dialog__content { padding: 24px; }
.ps-instructions-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.ps-instructions-dialog__eyebrow { color: var(--ps-accent); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.ps-instructions-dialog h2 { margin: 5px 0 0; color: #1c1917; font: 700 20px/1.3 Arial, Helvetica, sans-serif; }
.ps-instructions-dialog__close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 0; border-radius: 9px; background: #f5f5f4; color: #57534e; font-size: 24px; line-height: 1; cursor: pointer; }
.ps-instructions-dialog__close:hover { background: #e7e5e4; color: #1c1917; }
.ps-instructions-dialog__intro { margin: 18px 0 14px; color: #57534e; font-size: 13px; line-height: 1.55; }
.ps-instructions-dialog ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: portal-instruction; }
.ps-instructions-dialog li { position: relative; min-height: 38px; padding: 10px 12px 10px 46px; border: 1px solid #f0eeec; border-radius: 10px; background: #fafaf9; color: #44403c; counter-increment: portal-instruction; font-size: 12px; line-height: 1.5; }
.ps-instructions-dialog li::before { position: absolute; top: 9px; left: 11px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: #fff1e6; color: var(--ps-accent-dark); content: counter(portal-instruction); font-size: 11px; font-weight: 700; }
.ps-instructions-dialog__footer { display: flex; justify-content: flex-end; margin-top: 18px; }
.ps-instructions-dialog__footer .ps-action { min-height: 36px; border-radius: 8px; font-size: 12px; }
.ps-manual-bilingual { color: #44403c; }
.ps-manual-bilingual [lang="en"],
.ps-manual-bilingual [lang="am"] { display: block; }
.ps-manual-language { display: inline !important; color: #b45309; font-size: 10px; font-weight: 700; }
.ps-manual-sections { display: grid; gap: 12px; }
.ps-manual-section { padding: 13px 15px; border: 1px solid #eee7df; border-radius: 12px; background: #fffdfa; }
.ps-manual-section h3 { display: grid; gap: 3px; margin: 0 0 9px; color: #713e1d; font-size: 14px; line-height: 1.4; }
.ps-manual-section h3 [lang="am"] { color: #8a5a31; font-size: 13px; }
.ps-manual-section ol { gap: 8px; }
.ps-manual-section li { padding-top: 9px; padding-bottom: 9px; }
.ps-manual-section li p { margin: 0; }
.ps-manual-section li p + p { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e7e5e4; color: #57534e; }
.ps-manual-quick-guide { margin-top: 14px; border: 1px solid #e7e5e4; border-radius: 10px; background: #fafaf9; }
.ps-manual-quick-guide summary { padding: 11px 13px; color: #713e1d; font-size: 12px; font-weight: 700; cursor: pointer; }
.ps-manual-quick-guide > p,
.ps-manual-quick-guide > ol { margin-right: 13px; margin-left: 13px; }
.ps-manual-quick-guide > ol { margin-bottom: 13px; }
.ps-manual-quick-guide > ol li::before { content: counter(portal-instruction); }

html[lang="am-ET"] body,
html[lang="am-ET"] body * { font-family: Nyala, "Noto Sans Ethiopic", Arial, Helvetica, sans-serif; }

@media (max-width: 640px) {
	.ps-page-heading__actions { justify-content: flex-start; }
	.ps-instructions-dialog__content { padding: 19px; }
}

@media (max-width: 960px) {
	.ps-portal--dashboard .pip-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
	.ps-header--portal .ps-nav {
		max-height: calc(100vh - 64px);
		max-height: calc(100dvh - 64px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.ps-main--portal {
		min-height: calc(100vh - 64px);
		padding-bottom: 30px;
	}

	.ps-portal .pip-batch__head { align-items: flex-start; }
	.ps-portal .pip-batch__meta { width: 100%; margin-left: 0; }
	.ps-portal .pip-batch__actions { justify-content: flex-start; }
	.ps-portal .pip-duty-summary { flex-wrap: wrap; }
}

@media (max-width: 480px) {
	.ps-main--portal { padding: 14px 12px 24px; }
	.ps-portal .ps-page-heading { gap: 12px; }
	.ps-portal .ps-page-heading h1 { font-size: 20px; }
	.ps-portal .ps-page-heading p { max-width: 100%; font-size: 12px; }
	.ps-page-heading__actions { width: 100%; gap: 7px; }
	.ps-page-heading__actions .ps-action { min-height: 40px; padding: 0 11px; font-size: 12px; }
	.ps-portal--dashboard .pip-cards { grid-template-columns: 1fr; }
	.ps-portal .pip-card { min-height: 76px; }
	.ps-portal .pip-panel { padding: 13px; }
	.ps-store-controls { padding: 11px; }
	.ps-store-category select,
	.ps-store-search input { min-height: 44px; }
}

@media (max-width: 380px) {
	.ps-header--portal .ps-header__inner { min-height: 56px; gap: 8px; padding: 8px 10px; }
	.ps-header--portal .ps-brand { min-width: 0; gap: 7px; }
	.ps-header--portal .ps-brand__mark { width: 32px; height: 32px; flex-basis: 32px; }
	.ps-header--portal .ps-brand__text { min-width: 0; }
	.ps-header--portal .ps-brand__text strong { max-width: 105px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
	.ps-header--portal .ps-language-control { width: 72px; flex: 0 0 72px; }
	.ps-header--portal .ps-language-control select { min-height: 36px; padding: 0 4px; font-size: 10px; }
	.ps-header--portal .ps-nav-toggle { width: 36px; height: 36px; flex-basis: 36px; }
	.ps-main--portal { margin-top: 56px; padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 320px) {
	.ps-header--portal .ps-header__inner { gap: 6px; padding-right: 8px; padding-left: 8px; }
	.ps-header--portal .ps-brand__mark { width: 29px; height: 29px; flex-basis: 29px; }
	.ps-header--portal .ps-brand__text strong { max-width: 76px; font-size: 11px; }
	.ps-header--portal .ps-language-control { width: 64px; flex-basis: 64px; }
	.ps-header--portal .ps-language-control select { min-height: 34px; font-size: 9px; }
	.ps-header--portal .ps-nav-toggle { width: 32px; height: 32px; flex-basis: 32px; }
	.ps-header--portal .ps-nav-toggle span { width: 15px; }
	.ps-portal .ps-page-heading__actions .ps-action { min-height: 38px; padding: 0 9px; font-size: 11px; }
}

.ps-install-button {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #334d6b;
	border-radius: 9px;
	background: #18385d;
	color: #fff;
	font: 600 12px Arial, Helvetica, sans-serif;
	cursor: pointer;
}
.ps-install-button:hover { border-color: var(--ps-accent); background: var(--ps-accent); }
.ps-install-button[hidden] { display: none; }
.ps-pwa-dialog {
	width: min(420px, calc(100% - 32px));
	padding: 26px;
	border: 1px solid var(--ps-line);
	border-radius: 18px;
	color: var(--ps-ink);
	box-shadow: 0 24px 70px rgba(16, 41, 73, .24);
	font-family: Arial, Helvetica, sans-serif;
}
.ps-pwa-dialog::backdrop { background: rgba(16, 41, 73, .58); }
.ps-pwa-dialog__content { position: relative; }
.ps-pwa-dialog h2 { margin: 0 38px 10px 0; font-size: 20px; }
.ps-pwa-dialog p { margin: 0; color: var(--ps-muted); font-size: 14px; line-height: 1.6; }
.ps-pwa-dialog__close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #edf1f6;
	color: var(--ps-ink);
	font-size: 22px;
	cursor: pointer;
}
.ps-header--store .ps-install-button { width: auto; margin-left: 12px; }
