/* METRO Offers PWA shell (header/footer); the offers UI itself is css/metro-offers.css */
[hidden] { display: none !important; }
html, body { margin: 0; background: #f3f5f8; color: #18212c; font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
body { padding-bottom: env(safe-area-inset-bottom, 0px); }
.app-head {
	display: flex; align-items: center; gap: 12px;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
	background: #fff; border-bottom: 3px solid #ffd23f;
}
.app-logo img { display: block; width: 72px; height: auto; }
.app-title { font-size: 22px; font-weight: 800; color: #0055a5; letter-spacing: .01em; flex: 1; }
.app-actions { display: flex; align-items: center; gap: 10px; }
.app-btn { background: #0055a5; color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.app-btn:focus-visible, .app-lang:focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }
.app-lang { color: #0055a5; font-weight: 700; text-decoration: none; padding: 6px 8px; border: 1px solid #cfd6df; border-radius: 8px; }
.mo-page { margin-top: 0; padding-top: 12px; }
.mo-side { --mo-top: 0px; }
.app-loading, .app-offline { color: #5a6575; text-align: center; padding: 2em 1em; }
.app-offline { padding: .5em .75em; margin: 0 0 .5em; background: #fdeced; border: 1px solid #f3b8bd; border-radius: 8px; color: #7a1f27; font-size: 13px; text-align: left; }
.app-foot { text-align: center; color: #5a6575; font-size: 13px; padding: 1.5em 16px 2.5em; border-top: 1px solid #e1e6ed; }
.app-foot p { margin: .35em 0; }
.app-foot a { color: #0055a5; }
#appIosHint { background: #fff7d9; border: 1px solid #f1d98a; border-radius: 8px; padding: .6em .8em; color: #3b3000; max-width: 40em; margin: 0 auto 1em; }
/* Safari install how-to (button in the header; Safari has no install prompt) */
.app-howto { position: fixed; z-index: 200; left: 12px; right: 12px; top: calc(76px + env(safe-area-inset-top, 0px)); max-width: 26em; margin: 0 auto;
	display: flex; align-items: center; gap: 12px; background: #fff7d9; border: 1px solid #f1d98a; border-radius: 10px; padding: .7em .8em; color: #3b3000; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.app-howto p { margin: 0; flex: 1; }
@media (max-width: 480px) { .app-title { font-size: 19px; } .app-logo img { width: 60px; } }

/* METRO app: bottom tab bar, stores view, notifications button */
body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.app-tabs {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
	display: flex; justify-content: space-around;
	background: #fff; border-top: 1px solid #e1e6ed;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -2px 10px rgba(16, 24, 40, .06);
}
.app-tab { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 10px; color: #5a6575; text-decoration: none; font-size: 12px; font-weight: 600; }
.app-tab .ic { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .75; }
.app-tab.on { color: #0055a5; background: #fff7d9; }
.app-tab.on .ic { filter: none; opacity: 1; }
.app-tab:focus-visible { outline: 2px solid #0055a5; outline-offset: 2px; }
.app-icon { background: #fff; border: 1px solid #cfd6df; border-radius: 999px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.app-icon[aria-pressed="true"] { background: #fff7d9; border-color: #e6c84d; }

.st-wrap { max-width: 1280px; margin: 0 auto; padding: 14px 16px 24px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.st-card { background: #fff; border: 1px solid #e1e6ed; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.st-img { display: block; width: 100%; height: auto; aspect-ratio: 584 / 276; object-fit: cover; background: #eef1f5; }
.st-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.st-name { margin: 0; font-size: 18px; font-weight: 800; color: #0055a5; }
.st-status { margin: 0; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.st-status.is-open { background: #e2f3f0; color: #0d6b5e; }
.st-status.is-closed { background: #fdeced; color: #b3202b; }
.st-addr { margin: 0; color: #18212c; }
.st-hours { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.st-hours th, .st-hours td { text-align: left; padding: 3px 0; font-weight: 400; color: #5a6575; border-bottom: 1px solid #f0f2f5; }
.st-hours td { text-align: right; }
.st-hours tr.today th, .st-hours tr.today td { color: #18212c; font-weight: 700; }
.st-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.st-btn { flex: 1 1 auto; text-align: center; background: #0055a5; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 12px; border-radius: 10px; }
.st-btn.ghost { background: #fff; color: #0055a5; border: 1px solid #cfd6df; }
.st-btn:focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }
.st-phone { margin: 0; color: #5a6575; font-size: 13px; }
@media (max-width: 480px) { .st-wrap { grid-template-columns: 1fr; padding: 10px 10px 20px; gap: 10px; } }

/* toast for notification messages */
.app-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200;
	background: #18212c; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .4s; }
.app-toast.out { opacity: 0; }

/* bell state: off = grey bell with a red diagonal strike; on = coloured bell on yellow with a green dot */
.app-icon { position: relative; overflow: hidden; }
.app-icon > span { transition: filter .2s, opacity .2s; }
.app-icon[aria-pressed="false"] > span { filter: grayscale(1); opacity: .55; }
.app-icon[aria-pressed="false"]::after {
	content: ""; position: absolute; left: 6px; right: 6px; top: 50%;
	height: 3px; margin-top: -1.5px; border-radius: 2px;
	background: #e41837; box-shadow: 0 0 0 1.5px #fff;
	transform: rotate(-45deg);
}
.app-icon[aria-pressed="true"] { background: #ffd23f; border-color: #e6b800; }
.app-icon[aria-pressed="true"]::after {
	content: ""; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
	background: #12a150; box-shadow: 0 0 0 2px #fff;
}
.app-icon > span { display: inline-flex; color: #0055a5; }
.app-icon[aria-pressed="false"] > span { color: #5a6575; }
.app-icon[aria-pressed="true"] > span { color: #1a1a1a; }

/* theme button: one icon per mode */
.app-theme svg path { display: none; }
.app-theme[data-mode="auto"] .i-auto, .app-theme:not([data-mode]) .i-auto { display: inline; }
.app-theme[data-mode="light"] .i-light { display: inline; }
.app-theme[data-mode="dark"] .i-dark { display: inline; }
.app-theme > span { color: #0055a5; }

/* narrow phones (Galaxy Fold cover screen, 344px): header fits without sideways scroll */
.app-title { min-width: 0; overflow-wrap: anywhere; }
.app-actions { flex-shrink: 0; }
@media (max-width: 380px) {
	.app-head { gap: 8px; padding-left: 10px; padding-right: 10px; }
	.app-logo img { width: 50px; }
	.app-title { font-size: 15px; line-height: 1.2; }
	.app-actions { gap: 6px; }
	.app-icon { width: 34px; height: 34px; }
	.app-lang { padding: 5px 6px; }
}
/* install button: text on wide screens, a round download icon on phones (the title needs the room) */
#appInstall { display: inline-flex; align-items: center; justify-content: center; }
#appInstall .i { display: none; }
@media (max-width: 600px) {
	#appInstall { width: 38px; height: 38px; padding: 0; }
	#appInstall .t { display: none; }
	#appInstall .i { display: block; }
}
@media (max-width: 380px) { #appInstall { width: 34px; height: 34px; } }
