/* Tryggo final UX pass — Stitch-aligned layouts, accessible interactions and responsive polish. */
:root {
  --cf-final-forest: #0F5C45;
  --cf-final-green: #15966A;
  --cf-final-orange: #F28C28;
  --cf-final-paper: #FFFFFF;
  --cf-final-canvas: #FAFAF8;
  --cf-final-soft: #E8F5EE;
  --cf-final-ink: #191C1A;
  --cf-final-muted: #57615B;
  --cf-final-line: #C8D4CC;
  --cf-final-shadow: 0 8px 26px rgba(15, 40, 29, .08);
}

/* Merchant workspace: same brand color on every page, clear borders and visible text. */
body.merchant-pages-stitch .market-workspace > #merchant-sidebar,
body.merchant-pages-stitch #merchant-sidebar.workspace-sidebar {
  background: var(--cf-final-forest) !important;
  color: #FFFFFF !important;
}
body.merchant-pages-stitch .cf-sidebar-brand-row {
  display: flex; align-items: center; gap: 8px; min-height: 56px;
  margin: 0 5px 20px; padding: 0 4px 15px; border-bottom: 1px solid rgba(255,255,255,.22);
}
body.merchant-pages-stitch .cf-sidebar-brand {
  display: flex; flex: 1 1 auto; min-width: 0; align-items: center; justify-content: flex-start;
  min-height: 40px; margin: 0; padding: 0; border: 0;
}
body.merchant-pages-stitch .cf-sidebar-brand .cf-sidebar-logo-full {
  display: block !important; width: 150px; max-width: 100%; height: auto; max-height: 42px; object-fit: contain; object-position: left center;
}
body.merchant-pages-stitch .cf-sidebar-brand .cf-sidebar-logo-symbol { display: none !important; width: 38px; height: 38px; object-fit: contain; }
body.merchant-pages-stitch .cf-sidebar-business { margin: 0 2px 14px; padding: 11px 9px 16px; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.13) !important; border-radius: 0; background: transparent !important; box-shadow: none !important; }
body.merchant-pages-stitch .workspace-nav-section { color: #C4E2D2 !important; }
body.merchant-pages-stitch .workspace-nav-link { color: #F0F7F2 !important; }
body.merchant-pages-stitch .workspace-nav-link .nav-symbol { color: #D3E9DD !important; }
body.merchant-pages-stitch .workspace-nav-link.active { background: var(--cf-final-orange) !important; color: #2E1B0A !important; }
body.merchant-pages-stitch .workspace-nav-link.active .nav-symbol { color: #2E1B0A !important; }
body.merchant-pages-stitch .cf-sidebar-footer { border-top-color: rgba(255,255,255,.22) !important; }
body.merchant-pages-stitch .cf-sidebar-user strong,
body.merchant-pages-stitch .cf-sidebar-user small { color: #FFFFFF !important; }
body.merchant-pages-stitch .workspace-main { color: var(--cf-final-ink); }
body.merchant-pages-stitch .cf-data-panel,
body.merchant-pages-stitch .cf-form-card,
body.merchant-pages-stitch .cf-role-panel,
body.merchant-pages-stitch .workspace-main .panel,
body.merchant-pages-stitch .workspace-main .report-panel {
  border-color: #C8D4CC !important; box-shadow: 0 3px 15px rgba(15, 40, 29, .055);
}
body.merchant-pages-stitch .cf-data-table th,
body.merchant-pages-stitch .cf-data-table td { border-color: #D5DED8 !important; }
body.merchant-pages-stitch .cf-data-table th { color: #4B5B52 !important; }
body.merchant-pages-stitch .cf-data-table td { color: #34443A !important; }
body.merchant-pages-stitch .cf-metric-label,
body.merchant-pages-stitch .workspace-main label { color: #405148 !important; }
body.merchant-pages-stitch .cf-metric-card > small,
body.merchant-pages-stitch .cf-page-footnote { color: #58685F !important; }

/* Shared notification popover for merchant and Tryggo internal console. */
.cf-notification-menu { position: relative; display: inline-flex; align-items: center; z-index: 100; }
.cf-notification-trigger {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid #D5DED8; border-radius: 13px;
  background: #FFFFFF; color: var(--cf-final-forest); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.cf-notification-trigger:hover { border-color: #8DA99A; background: #F4F8F5; transform: translateY(-1px); }
.cf-notification-trigger > .cf-ui-icon { width: 22px; height: 22px; }
.cf-notification-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border: 2px solid #FFFFFF; border-radius: 99px; background: #D94B42; color: #FFFFFF; font: 800 9px Manrope, sans-serif; }
.cf-notification-pulse { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #EF6A50; box-shadow: 0 0 0 0 rgba(239,106,80,.55); animation: cf-notification-pulse 1.9s infinite; }
@keyframes cf-notification-pulse { 0% { box-shadow: 0 0 0 0 rgba(239,106,80,.5); } 70% { box-shadow: 0 0 0 8px rgba(239,106,80,0); } 100% { box-shadow: 0 0 0 0 rgba(239,106,80,0); } }
.cf-notification-popover[hidden] { display: none !important; }
.cf-notification-popover {
  position: absolute; top: calc(100% + 12px); right: 0; width: min(390px, calc(100vw - 28px));
  overflow: hidden; border: 1px solid #D5DED8; border-radius: 17px; background: #FFFFFF;
  box-shadow: 0 18px 48px rgba(16, 40, 29, .18); color: #191C1A; animation: cf-notification-open .16s ease-out;
}
@keyframes cf-notification-open { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.cf-notification-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 14px; border-bottom: 1px solid #E6ECE8; }
.cf-notification-popover-head > div { display: grid; gap: 3px; }
.cf-notification-popover-head strong { color: #173F30; font-size: 14px; font-weight: 850; }
.cf-notification-popover-head small { color: #64736A; font-size: 10px; }
.cf-notification-popover-head > a { color: #0F6B4E; font-size: 10px; font-weight: 800; white-space: nowrap; }
.cf-notification-list { max-height: 390px; overflow-y: auto; }
.cf-notification-item-form { margin: 0; }
.cf-notification-item { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) 8px; align-items: start; gap: 10px; padding: 13px 17px; border: 0; border-bottom: 1px solid #EEF2EF; background: #FFFFFF; color: inherit; text-align: left; cursor: pointer; }
.cf-notification-item:hover { background: #F7FAF8; }
.cf-notification-item.is-unread { background: #F2F8F4; }
.cf-notification-item-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #E8F5EE; color: #0F5C45; }
.cf-notification-item-icon .cf-ui-icon { width: 18px; height: 18px; }
.cf-notification-item-copy { min-width: 0; display: grid; gap: 4px; }
.cf-notification-item-copy strong { color: #23382D; font-size: 11px; font-weight: 800; line-height: 1.35; }
.cf-notification-item-copy small { color: #526259; font-size: 10px; line-height: 1.45; }
.cf-notification-item-copy time { color: #748078; font-size: 9px; }
.cf-notification-item > i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #E56C45; }
.cf-notification-empty { display: grid; justify-items: center; gap: 7px; padding: 30px 22px; text-align: center; }
.cf-notification-empty > .cf-ui-icon { color: #82948A; width: 29px; height: 29px; }
.cf-notification-empty strong { color: #283B30; font-size: 12px; }
.cf-notification-empty p { max-width: 245px; margin: 0; color: #718078; font-size: 10px; line-height: 1.5; }
.cf-notification-all { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; border-top: 1px solid #E6ECE8; color: #0F6B4E; font-size: 10px; font-weight: 850; }
.platform-top-actions .cf-notification-menu { margin-right: 3px; }
.platform-top-actions .cf-notification-trigger { width: 39px; height: 39px; border-color: rgba(15,92,69,.16); }
.cf-merchant-top-actions .cf-notification-trigger { width: 40px; height: 40px; border-color: rgba(15,92,69,.16); }
@media(max-width:560px) { .cf-notification-popover { position: fixed; top: 72px; right: 12px; width: min(390px, calc(100vw - 24px)); } }

/* Public club: reproduce the Stitch member storefront hierarchy without cover overlays. */
body.public-club-page { background: var(--club-background, #FAFAF8); color: var(--club-text, #191C1A); }
body.public-club-page > .footer { display: none; }
body.public-club-page .page-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body.public-club-page .cf-storefront-shell { width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 0 0 70px; }
body.public-club-page .cf-storefront-header { position: sticky; top: 0; z-index: 35; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 28px; min-height: 76px; margin: 0 calc((min(1280px, 100% - 64px) - 100vw)/2); padding: 0 max(32px, calc((100vw - 1280px)/2)); border-bottom: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 13%, #FFFFFF); background: color-mix(in srgb, var(--club-background, #FAFAF8) 96%, #FFFFFF); box-shadow: 0 3px 12px rgba(20, 42, 29, .035); }
body.public-club-page .cf-public-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--club-primary, #0F5C45); font-weight: 850; }
body.public-club-page .cf-public-brand img { display: block; max-width: 166px; max-height: 44px; object-fit: contain; object-position: left center; }
body.public-club-page .cf-public-brand.has-club-logo img { width: 40px; height: 40px; border-radius: 10px; }
body.public-club-page .cf-public-brand span { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.public-club-page .cf-public-nav { display: flex; justify-content: center; align-items: center; gap: 7px; min-width: 0; }
body.public-club-page .cf-public-nav a { display: inline-flex; align-items: center; min-height: 39px; padding: 0 14px; border-radius: 999px; color: var(--club-text, #34443A); font-size: 11px; font-weight: 750; white-space: nowrap; }
body.public-club-page .cf-public-nav a:hover, body.public-club-page .cf-public-nav a.active { background: color-mix(in srgb, var(--club-primary, #0F5C45) 10%, var(--club-background, #FAFAF8)); color: var(--club-primary, #0F5C45); }
body.public-club-page .cf-public-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
body.public-club-page .cf-public-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 41px; padding: 0 17px; border: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 25%, #FFFFFF); border-radius: 999px; font-size: 11px; font-weight: 850; }
body.public-club-page .cf-public-actions .button-secondary { background: #FFFFFF; color: var(--club-primary, #0F5C45); }
body.public-club-page .cf-public-actions .button-primary { border-color: var(--club-primary, #0F5C45); background: var(--club-primary, #0F5C45); color: var(--club-primary-ink, #FFFFFF); }
body.public-club-page .cf-storefront-intro { padding: 36px 0 22px; }
body.public-club-page .cf-storefront-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--club-accent, #F28C28); font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }
body.public-club-page .cf-storefront-eyebrow .material-symbols-outlined { font-size: 17px; }
body.public-club-page .cf-storefront-intro h1 { margin: 11px 0 6px; color: var(--club-primary, #0F5C45); font-size: clamp(29px, 4vw, 43px); font-weight: 850; letter-spacing: -1.5px; line-height: 1.12; }
body.public-club-page .cf-storefront-intro p { max-width: 760px; margin: 0; color: var(--club-text, #34443A); font-size: 14px; line-height: 1.65; }
body.public-club-page .cf-storefront-intro small { display: block; margin-top: 8px; color: color-mix(in srgb, var(--club-text, #34443A) 78%, #FFFFFF); font-size: 11px; line-height: 1.55; }
body.public-club-page .cf-storefront-cover { width: 100%; aspect-ratio: 16 / 5; min-height: 205px; max-height: 400px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 12%, #FFFFFF); border-radius: 22px; background: color-mix(in srgb, var(--club-primary, #0F5C45) 8%, var(--club-background, #FAFAF8)); box-shadow: 0 7px 22px rgba(20,42,29,.07); }
body.public-club-page .cf-storefront-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
body.public-club-page .cf-storefront-cover-fallback { position: relative; display: flex; align-items: center; gap: 18px; width: 100%; height: 100%; overflow: hidden; padding: clamp(22px,5vw,56px); background: linear-gradient(105deg, var(--club-primary, #0F5C45), color-mix(in srgb, var(--club-primary, #0F5C45) 67%, var(--club-accent, #F28C28))); color: var(--club-primary-ink, #FFFFFF); }
body.public-club-page .cf-storefront-cover-fallback > .material-symbols-outlined { z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; border: 1px solid rgba(255,255,255,.35); border-radius: 19px; background: rgba(255,255,255,.13); font-size: 34px; }
body.public-club-page .cf-storefront-cover-fallback > div { z-index: 1; display: grid; gap: 5px; }
body.public-club-page .cf-storefront-cover-fallback strong { font-size: clamp(18px,2.5vw,28px); font-weight: 850; }
body.public-club-page .cf-storefront-cover-fallback small { font-size: 12px; opacity: .9; }
body.public-club-page .cf-cover-decoration { position: absolute; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
body.public-club-page .cf-cover-decoration-one { right: 6%; top: -120px; }
body.public-club-page .cf-cover-decoration-two { right: 18%; bottom: -190px; width: 310px; height: 310px; }
body.public-club-page .cf-storefront-member-strip, body.public-club-page .cf-storefront-join-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 20px 0 27px; padding: 17px 21px; border: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 17%, #FFFFFF); border-radius: 18px; background: color-mix(in srgb, var(--club-primary, #0F5C45) 5%, var(--club-background, #FAFAF8)); }
body.public-club-page .cf-storefront-member-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
body.public-club-page .cf-storefront-member-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--club-primary, #0F5C45); color: var(--club-primary-ink, #FFFFFF); }
body.public-club-page .cf-storefront-member-icon .material-symbols-outlined { font-size: 23px; }
body.public-club-page .cf-storefront-member-main div { display: grid; gap: 3px; }
body.public-club-page .cf-storefront-member-main small, body.public-club-page .cf-storefront-join-strip small { color: var(--club-primary, #0F5C45); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
body.public-club-page .cf-storefront-member-main strong { color: var(--club-primary, #0F5C45); font-size: 22px; font-weight: 900; }
body.public-club-page .cf-storefront-member-main strong span { font-size: 11px; font-weight: 700; }
body.public-club-page .cf-storefront-member-main p { margin: 0; color: var(--club-text, #34443A); font-size: 10px; }
body.public-club-page .cf-storefront-member-qr { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 16%, #FFFFFF); border-radius: 12px; background: #FFFFFF; color: var(--club-text, #34443A); font-size: 10px; font-weight: 750; }
body.public-club-page .cf-storefront-member-qr img { display: block; width: 42px; height: 42px; }
body.public-club-page .cf-storefront-member-link { display: inline-flex; align-items: center; gap: 8px; min-height: 39px; padding: 0 15px; border-radius: 999px; background: var(--club-primary, #0F5C45); color: var(--club-primary-ink, #FFFFFF); font-size: 10px; font-weight: 850; white-space: nowrap; }
body.public-club-page .cf-storefront-join-strip > div:first-child { display: grid; gap: 5px; }
body.public-club-page .cf-storefront-join-strip strong { color: var(--club-primary, #0F5C45); font-size: 16px; font-weight: 850; }
body.public-club-page .cf-storefront-join-strip p { margin: 0; color: var(--club-text, #34443A); font-size: 11px; }
body.public-club-page .cf-storefront-join-actions { display: flex; align-items: center; gap: 8px; }
body.public-club-page .cf-storefront-primary-action, body.public-club-page .cf-storefront-secondary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--club-primary, #0F5C45); border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap; }
body.public-club-page .cf-storefront-primary-action { background: var(--club-primary, #0F5C45); color: var(--club-primary-ink, #FFFFFF); }
body.public-club-page .cf-storefront-secondary-action { background: #FFFFFF; color: var(--club-primary, #0F5C45); }
body.public-club-page .cf-store-category-nav { position: sticky; top: 76px; z-index: 25; display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 0 0 30px; padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 13%, #FFFFFF); background: color-mix(in srgb, var(--club-background, #FAFAF8) 96%, #FFFFFF); scrollbar-width: thin; }
body.public-club-page .cf-store-category-label { flex: 0 0 auto; margin-right: 5px; color: var(--club-text, #34443A); font-size: 10px; font-weight: 850; }
body.public-club-page .cf-store-category-nav a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 19%, #FFFFFF); border-radius: 999px; background: #FFFFFF; color: var(--club-text, #34443A); font-size: 10px; font-weight: 750; white-space: nowrap; }
body.public-club-page .cf-store-category-nav a .material-symbols-outlined { font-size: 16px; }
body.public-club-page .cf-store-category-nav a:hover, body.public-club-page .cf-store-category-nav a.is-active { border-color: var(--club-primary, #0F5C45); background: var(--club-primary, #0F5C45); color: var(--club-primary-ink, #FFFFFF); }
body.public-club-page .cf-storefront-section { margin: 0 0 44px; scroll-margin-top: 132px; }
body.public-club-page .cf-storefront-section .cf-public-section-head { margin-bottom: 19px; }
body.public-club-page .cf-storefront-section .cf-public-section-head h2 { color: var(--club-text, #191C1A); font-size: clamp(20px,2.4vw,27px); font-weight: 850; letter-spacing: -.8px; }
body.public-club-page .cf-storefront-section .cf-public-section-head p { color: color-mix(in srgb, var(--club-text, #34443A) 83%, #FFFFFF); font-size: 12px; }
body.public-club-page .cf-storefront-card, body.public-club-page .cf-storefront-coupon, body.public-club-page .cf-storefront-product { overflow: hidden; border: 1px solid #D9E2DC; border-radius: 17px; background: #FFFFFF; box-shadow: 0 5px 18px rgba(22,45,32,.045); transition: transform .18s ease, box-shadow .18s ease; }
body.public-club-page .cf-storefront-card:hover, body.public-club-page .cf-storefront-coupon:hover, body.public-club-page .cf-storefront-product:hover { transform: translateY(-3px); box-shadow: var(--cf-final-shadow); }
body.public-club-page .cf-storefront-card .cf-public-offer-media, body.public-club-page .cf-storefront-coupon .cf-public-offer-media, body.public-club-page .cf-storefront-product .cf-public-product-media { aspect-ratio: 4 / 3; overflow: hidden; background: #F0F5F1; }
body.public-club-page .cf-storefront-card .cf-public-offer-media img, body.public-club-page .cf-storefront-coupon .cf-public-offer-media img, body.public-club-page .cf-storefront-product .cf-public-product-media img { width: 100%; height: 100%; object-fit: cover; }
body.public-club-page .cf-storefront-card .cf-public-offer-copy, body.public-club-page .cf-storefront-coupon .cf-public-coupon-copy { padding: 15px 16px 17px; }
body.public-club-page .cf-storefront-card .cf-public-offer-copy h3, body.public-club-page .cf-storefront-coupon .cf-public-coupon-copy h3, body.public-club-page .cf-storefront-product .cf-public-product-copy h3 { color: var(--club-text, #191C1A); font-size: 14px; font-weight: 850; }
body.public-club-page .cf-storefront-card .cf-public-offer-copy p, body.public-club-page .cf-storefront-coupon .cf-public-coupon-copy p { color: #55635A; font-size: 11px; line-height: 1.55; }
body.public-club-page .cf-storefront-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
body.public-club-page .cf-storefront-product-copy { display: grid; gap: 5px; padding: 13px; }
body.public-club-page .cf-storefront-product-copy small { color: var(--club-primary, #0F5C45); font-size: 9px; font-weight: 800; }
body.public-club-page .cf-storefront-product-copy strong { color: var(--club-primary, #0F5C45); font-size: 14px; }
body.public-club-page .cf-storefront-contact { margin-top: 28px; border-radius: 19px; }
body.public-club-page .cf-storefront-footer { padding: 22px 0 10px; border-top: 1px solid color-mix(in srgb, var(--club-primary, #0F5C45) 17%, #FFFFFF); }
body.public-club-page .cf-storefront-mobile-nav { display: none; }

/* Consumer account dashboard: same club-storefront language, with a clear member wallet. */
body.consumer-portal-page { background: #F7F9F7; }
body.consumer-portal-page > .footer { display: none; }
body.consumer-portal-page .page-shell { width: 100%; max-width: none; margin: 0; padding: 0; }
body.consumer-portal-page .consumer-portal-shell { width: min(1180px, calc(100% - 56px)); padding: 0 0 76px; }
body.consumer-portal-page .consumer-portal-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; background: rgba(250,252,250,.97); border-bottom-color: #D5DED8; }
body.consumer-portal-page .cf-consumer-desktop-nav { display: flex; align-items: center; justify-content: center; gap: 5px; }
body.consumer-portal-page .cf-consumer-desktop-nav a { padding: 10px 13px; border-radius: 999px; color: #43564A; font-size: 10px; font-weight: 800; }
body.consumer-portal-page .cf-consumer-desktop-nav a:hover, body.consumer-portal-page .cf-consumer-desktop-nav a.active { background: #E8F5EE; color: #0F5C45; }
body.consumer-portal-page .consumer-welcome { padding-top: 31px; }
body.consumer-portal-page .consumer-benefit-grid { gap: 15px; }
body.consumer-portal-page .consumer-points-card { border-radius: 19px; box-shadow: 0 9px 24px rgba(15,92,69,.13); }
body.consumer-portal-page .consumer-stat-card, body.consumer-portal-page .consumer-panel, body.consumer-portal-page .consumer-member-card { border-color: #D5DED8; box-shadow: 0 5px 18px rgba(20,42,29,.045); }
body.consumer-portal-page .consumer-panel { border-radius: 18px; }
body.consumer-portal-page .cf-consumer-product-group { margin-top: 18px; }
body.consumer-portal-page .cf-consumer-product-group > h3 { margin: 0 0 11px; color: #344C3D; font-size: 13px; font-weight: 850; }
body.consumer-portal-page .cf-consumer-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
body.consumer-portal-page .cf-consumer-product-card { display: grid; overflow: hidden; border: 1px solid #DAE3DD; border-radius: 14px; background: #FFFFFF; }
body.consumer-portal-page .cf-consumer-product-image { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; background: #EDF4EF; color: #0F5C45; font-size: 24px; font-weight: 850; }
body.consumer-portal-page .cf-consumer-product-image img { width: 100%; height: 100%; object-fit: cover; }
body.consumer-portal-page .cf-consumer-product-card > div:last-child { display: grid; gap: 5px; padding: 11px; }
body.consumer-portal-page .cf-consumer-product-card small { color: #0F6B4E; font-size: 9px; font-weight: 800; }
body.consumer-portal-page .cf-consumer-product-card strong { color: #263A2E; font-size: 11px; }
body.consumer-portal-page .cf-consumer-product-card b { color: #0F5C45; font-size: 13px; }
body.consumer-portal-page .consumer-mobile-nav { display: none; }

/* Consumer login: clear back action and more balanced desktop form. */
body.consumer-auth-page .consumer-auth-brandbar { position: relative; }
body.consumer-auth-page .consumer-back-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 1px solid #B7C8BC; border-radius: 999px; background: #FFFFFF; color: #0F5C45; font-size: 11px; font-weight: 850; text-decoration: none; box-shadow: 0 3px 10px rgba(15,92,69,.07); }
body.consumer-auth-page .consumer-back-link:hover { border-color: #0F5C45; background: #E8F5EE; }
body.consumer-auth-page .consumer-back-link .material-symbols-outlined { font-size: 18px; }

/* Platform internal team management. */
.platform-brand img { width: 154px !important; height: auto !important; max-height: 46px; object-fit: contain; object-position: left center; }
.platform-login-brand img { width: 176px !important; height: auto !important; max-height: 52px; object-fit: contain; }
.platform-team-heading { align-items: flex-end; }
.platform-team-heading-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.platform-team-total, .platform-team-security { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid #D7E1DA; border-radius: 999px; background: #FFFFFF; color: #42564A; font-size: 10px; font-weight: 800; }
.platform-team-security .material-symbols-outlined { color: #0F6B4E; font-size: 15px; }
.platform-team-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(290px,.8fr); gap: 17px; align-items: start; margin-bottom: 18px; }
.platform-team-invite-panel, .platform-team-permissions, .platform-team-directory { padding: 23px; }
.platform-section-kicker { display: block; margin-bottom: 6px; color: #15966A; font-size: 9px; font-weight: 900; letter-spacing: 1.15px; }
.platform-panel-icon { display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 41px; border-radius: 13px; background: #E8F5EE; color: #0F5C45; }
.platform-panel-icon .material-symbols-outlined { font-size: 21px; }
.platform-team-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 13px; }
.platform-team-form-grid .platform-field input, .platform-team-form-grid .platform-field select { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid #C8D4CC; border-radius: 10px; background: #FFFFFF; color: #191C1A; font: 600 12px Manrope,sans-serif; }
.platform-team-form-grid .platform-field input:focus, .platform-team-form-grid .platform-field select:focus { outline: 0; border-color: #15966A; box-shadow: 0 0 0 3px rgba(21,150,106,.13); }
.platform-team-form-grid .platform-field label { display: block; margin-bottom: 6px; color: #35483D; font-size: 10px; font-weight: 850; }
.platform-team-form-grid .platform-field small { color: #5B6B61; font-size: 9px; }
.platform-team-form-grid .platform-field.span-two { grid-column: 1/-1; }
.platform-team-form-note { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; padding: 12px; border: 1px solid #CFE2D5; border-radius: 12px; background: #F2F8F4; color: #40564A; font-size: 10px; line-height: 1.55; }
.platform-team-form-note .material-symbols-outlined { flex: 0 0 auto; color: #0F6B4E; font-size: 18px; }
.platform-team-submit { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 17px; }
.platform-team-submit .material-symbols-outlined { font-size: 17px; }
.platform-department-list { display: grid; gap: 8px; }
.platform-department-list article { display: flex; align-items: flex-start; gap: 11px; padding: 11px; border: 1px solid #E1E9E3; border-radius: 12px; background: #FCFDFC; }
.platform-department-list article > .material-symbols-outlined { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 10px; background: #E8F5EE; color: #0F5C45; font-size: 18px; }
.platform-department-list article > div { display: grid; gap: 3px; }
.platform-department-list strong { color: #21382B; font-size: 10px; font-weight: 850; }
.platform-department-list small { color: #58685F; font-size: 9px; line-height: 1.45; }
.platform-team-table-wrap { width: 100%; overflow-x: auto; }
.platform-team-table { min-width: 950px; }
.platform-team-table td { vertical-align: middle; }
.platform-team-person { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.platform-team-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #E8F5EE; color: #0F5C45; font-size: 12px; font-weight: 900; }
.platform-team-person > span:last-child { display: grid; gap: 3px; }
.platform-team-person strong { color: #22372B; font-size: 10px; }
.platform-team-person small { color: #68776E; font-size: 9px; }
.platform-department-pill { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #EEF5F0; color: #285A40; font-size: 9px; font-weight: 800; white-space: nowrap; }
.platform-team-access-form { display: flex; align-items: center; gap: 7px; min-width: 350px; }
.platform-team-access-form input[type="text"] { width: 220px; min-height: 36px; padding: 0 9px; border: 1px solid #CBD7CE; border-radius: 9px; font: 500 9px Manrope,sans-serif; }
.platform-team-access-form .platform-button { min-height: 35px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
.platform-button.danger { border-color: #E5B5AF; background: #FFF1EF; color: #A32F27; }
.platform-team-footnote { display: flex; align-items: center; gap: 7px; margin: 13px 0 0; color: #5C6B62; font-size: 9px; }
.platform-team-footnote .material-symbols-outlined { color: #0F6B4E; font-size: 15px; }

/* Platform pilot reports. */
.platform-report-filter { margin-bottom: 17px; padding: 18px 20px; }
.platform-report-filter-form { display: flex; align-items: flex-end; gap: 11px; flex-wrap: wrap; }
.platform-report-filter-form > div { display: grid; gap: 5px; min-width: 145px; }
.platform-report-filter-form label { color: #41564A; font-size: 9px; font-weight: 850; }
.platform-report-filter-form input, .platform-report-filter-form select { min-height: 39px; padding: 0 10px; border: 1px solid #C8D4CC; border-radius: 9px; background: #FFFFFF; color: #24362B; font: 600 10px Manrope,sans-serif; }
.platform-report-period-caption { margin: 10px 0 0; color: #5A6A60; font-size: 9px; }
.platform-report-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.platform-report-kpis .platform-stat-card { min-height: 133px; }
.platform-report-kpis .platform-stat-card > strong { font-size: clamp(19px,2vw,26px); }
.platform-report-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 16px; margin-bottom: 17px; align-items: start; }
.platform-report-grid .platform-panel { min-width: 0; min-height: 100%; }
.platform-report-period-tag { padding: 6px 9px; border-radius: 999px; background: #E8F5EE; color: #0F5C45; font-size: 9px; font-weight: 800; white-space: nowrap; }
.platform-report-chart { display: grid; gap: 11px; margin-top: 19px; }
.platform-report-bar-row { display: grid; grid-template-columns: 42px minmax(70px,1fr) minmax(90px,auto); align-items: center; gap: 10px; }
.platform-report-bar-row time { color: #56665C; font: 600 9px "Fira Code",monospace; }
.platform-report-bar-track { height: 11px; overflow: hidden; border-radius: 999px; background: #EAF0EC; }
.platform-report-bar-track span { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg,#0F5C45,#15966A); }
.platform-report-bar-row strong { color: #243A2D; font: 700 9px "Fira Code",monospace; text-align: right; }
.platform-report-engagement { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.platform-report-engagement article { display: grid; gap: 6px; padding: 12px; border: 1px solid #E0E8E2; border-radius: 11px; background: #FCFDFC; }
.platform-report-engagement span { color: #5B6B61; font-size: 9px; line-height: 1.4; }
.platform-report-engagement strong { color: #0F5C45; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.platform-report-note { margin: 12px 0 0; color: #5B6B61; font-size: 9px; line-height: 1.55; }
.platform-report-markets { margin-bottom: 14px; }
.platform-report-markets .platform-table { min-width: 1120px; }
.platform-report-markets .platform-table td { color: #34463A; }
.platform-report-footnote { display: flex; align-items: flex-start; gap: 7px; color: #617167; font-size: 9px; line-height: 1.5; }
.platform-report-footnote .material-symbols-outlined { flex: 0 0 auto; color: #0F6B4E; font-size: 15px; }

@media (max-width: 1050px) {
  .platform-team-layout { grid-template-columns: 1fr; }
  .platform-report-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .platform-report-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  body.public-club-page .cf-storefront-shell { width: calc(100% - 36px); padding-bottom: 88px; }
  body.public-club-page .cf-storefront-header { grid-template-columns: auto 1fr; gap: 10px; min-height: 65px; margin-inline: -18px; padding-inline: 18px; }
  body.public-club-page .cf-public-nav { display: none; }
  body.public-club-page .cf-public-actions { justify-content: flex-end; }
  body.public-club-page .cf-storefront-intro { padding: 26px 0 17px; }
  body.public-club-page .cf-storefront-cover { aspect-ratio: 16/6; min-height: 170px; max-height: 270px; border-radius: 17px; }
  body.public-club-page .cf-store-category-nav { top: 65px; }
  body.public-club-page .cf-storefront-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.consumer-portal-page .consumer-portal-header { grid-template-columns: 1fr auto; gap: 10px; }
  body.consumer-portal-page .cf-consumer-desktop-nav { display: none; }
  body.consumer-portal-page .cf-consumer-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  body.public-club-page .cf-storefront-shell { width: calc(100% - 28px); padding-bottom: 88px; }
  body.public-club-page .cf-storefront-header { min-height: 60px; margin-inline: -14px; padding-inline: 14px; }
  body.public-club-page .cf-public-brand img { max-width: 126px; max-height: 36px; }
  body.public-club-page .cf-public-brand.has-club-logo img { width: 34px; height: 34px; }
  body.public-club-page .cf-public-actions { gap: 6px; }
  body.public-club-page .cf-public-actions .button { min-height: 35px; padding: 0 11px; font-size: 9px; }
  body.public-club-page .cf-storefront-intro { padding: 23px 0 14px; }
  body.public-club-page .cf-storefront-intro h1 { font-size: 28px; }
  body.public-club-page .cf-storefront-intro p { font-size: 12px; }
  body.public-club-page .cf-storefront-cover { aspect-ratio: 16/8; min-height: 132px; max-height: 205px; border-radius: 14px; }
  body.public-club-page .cf-storefront-cover-fallback { gap: 10px; padding: 16px; }
  body.public-club-page .cf-storefront-cover-fallback > .material-symbols-outlined { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 22px; }
  body.public-club-page .cf-storefront-cover-fallback strong { font-size: 15px; }
  body.public-club-page .cf-storefront-cover-fallback small { font-size: 9px; }
  body.public-club-page .cf-storefront-member-strip, body.public-club-page .cf-storefront-join-strip { align-items: flex-start; flex-direction: column; gap: 13px; margin: 14px 0 19px; padding: 14px; }
  body.public-club-page .cf-storefront-member-qr { align-self: stretch; }
  body.public-club-page .cf-storefront-member-link { align-self: stretch; justify-content: center; }
  body.public-club-page .cf-storefront-join-actions { width: 100%; }
  body.public-club-page .cf-storefront-primary-action, body.public-club-page .cf-storefront-secondary-action { flex: 1; padding: 0 10px; font-size: 9px; }
  body.public-club-page .cf-store-category-nav { top: 60px; gap: 6px; margin-bottom: 22px; padding: 10px 0; }
  body.public-club-page .cf-store-category-label { display: none; }
  body.public-club-page .cf-store-category-nav a { min-height: 34px; padding: 0 10px; font-size: 9px; }
  body.public-club-page .cf-storefront-section { margin-bottom: 30px; scroll-margin-top: 110px; }
  body.public-club-page .cf-storefront-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  body.public-club-page .cf-public-offer-grid, body.public-club-page .cf-public-coupon-grid { grid-template-columns: 1fr; }
  body.public-club-page .cf-storefront-mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-around; min-height: 64px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #D6E0D9; background: rgba(255,255,255,.97); box-shadow: 0 -5px 20px rgba(20,42,29,.08); }
  body.public-club-page .cf-storefront-mobile-nav a { display: grid; justify-items: center; gap: 2px; min-width: 58px; color: var(--club-text, #35473B); font-size: 9px; font-weight: 800; }
  body.public-club-page .cf-storefront-mobile-nav a .material-symbols-outlined { font-size: 21px; }
  body.public-club-page .cf-storefront-mobile-nav a:active, body.public-club-page .cf-storefront-mobile-nav a:hover { color: var(--club-primary, #0F5C45); }
  body.public-club-page .cf-storefront-footer { gap: 8px; align-items: flex-start; flex-direction: column; }
  body.consumer-portal-page .consumer-portal-shell { width: calc(100% - 28px); padding-bottom: 90px; }
  body.consumer-portal-page .consumer-portal-header { min-height: 62px; }
  body.consumer-portal-page .consumer-welcome-actions { gap: 7px; }
  body.consumer-portal-page .consumer-welcome-actions .consumer-button { min-height: 35px; padding: 0 10px; font-size: 9px; }
  body.consumer-portal-page .cf-consumer-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  body.consumer-portal-page .consumer-mobile-nav.cf-consumer-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-around; min-height: 64px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #D6E0D9; background: rgba(255,255,255,.97); box-shadow: 0 -5px 20px rgba(20,42,29,.08); }
  body.consumer-portal-page .consumer-mobile-nav.cf-consumer-bottom-nav a { display: grid; justify-items: center; gap: 2px; color: #41564A; font-size: 9px; font-weight: 800; }
  body.consumer-portal-page .consumer-mobile-nav.cf-consumer-bottom-nav a .material-symbols-outlined { font-size: 21px; }
  body.consumer-auth-page .consumer-back-link { min-height: 37px; padding: 0 10px; font-size: 9px; }
  .platform-team-invite-panel, .platform-team-permissions, .platform-team-directory { padding: 16px; }
  .platform-team-form-grid { grid-template-columns: 1fr; }
  .platform-team-form-grid .platform-field.span-two { grid-column: auto; }
  .platform-team-submit { width: 100%; justify-content: center; }
  .platform-team-heading-meta { width: 100%; }
  .platform-report-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .platform-report-kpis .platform-stat-card { min-height: 122px; padding: 13px; }
  .platform-report-kpis .platform-stat-card > strong { font-size: 18px; overflow-wrap: anywhere; }
  .platform-report-filter-form { align-items: stretch; flex-direction: column; }
  .platform-report-filter-form > div { width: 100%; }
  .platform-report-filter-form .platform-button { width: 100%; justify-content: center; }
  .platform-report-engagement { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


/* Final polish: live club-theme preview must follow the merchant's selected palette and image. */
.club-live-preview .club-preview-top { background: var(--club-background) !important; color: var(--club-primary) !important; }
.club-live-preview .club-preview-top > strong,
.club-live-preview .club-preview-login { color: var(--club-primary) !important; }
.club-live-preview .club-preview-logo { background: var(--club-primary) !important; color: var(--club-primary-ink) !important; }
.club-live-preview .club-preview-hero:not(.has-cover) { background: linear-gradient(125deg, var(--club-primary), color-mix(in srgb, var(--club-primary) 72%, #FFFFFF)) !important; color: var(--club-primary-ink) !important; }
.club-live-preview .club-preview-hero:not(.has-cover) h3,
.club-live-preview .club-preview-hero:not(.has-cover) p { color: var(--club-primary-ink) !important; }
.club-live-preview .club-preview-hero.has-cover { background-color: #24362B !important; background-image: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.015)), var(--club-preview-cover) !important; background-position: center !important; background-size: cover !important; color: #FFFFFF !important; }
.club-live-preview .club-preview-hero.has-cover h3,
.club-live-preview .club-preview-hero.has-cover p,
.club-live-preview .club-preview-hero.has-cover > span:first-child { color: #FFFFFF !important; text-shadow: 0 1px 5px rgba(0,0,0,.34); }
.club-live-preview .club-preview-cta { background: var(--club-accent) !important; color: var(--club-accent-ink) !important; }

/* Platform topbar: keep the notification popover visible on narrow screens. */
.platform-topbar { position: relative; z-index: 90; overflow: visible; }
.platform-top-actions { min-width: 0; }
.platform-top-actions .cf-notification-menu { flex: 0 0 auto; }
.platform-login-brand img { width: 176px !important; height: auto !important; max-height: 52px; object-fit: contain; object-position: left center; }
@media (max-width: 720px) {
  .platform-topbar { gap: 9px; }
  .platform-top-actions { gap: 7px; }
  .platform-top-actions .hq-pill.light { display: none; }
  .platform-top-actions .cf-notification-popover { right: -6px; width: min(370px, calc(100vw - 24px)); max-height: min(72vh, 520px); }
}

/* Full notification center used by the 'Ver todas' action. */
.notification-page { max-width: 1040px; margin: 28px auto 50px; }
.notification-page .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.notification-page .page-heading h1 { margin: 5px 0; color: #0F5C45; font-size: clamp(26px, 3vw, 36px); letter-spacing: -1px; }
.notification-page .notification-count { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid #BFD5C7; border-radius: 999px; background: #E8F5EE; color: #0F5C45; font-size: 11px; font-weight: 850; white-space: nowrap; }
.notification-page .notification-list { display: grid; gap: 10px; }
.notification-page .notification-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid #D3DED6; border-radius: 15px; background: #FFFFFF; box-shadow: 0 4px 15px rgba(15,50,30,.045); }
.notification-page .notification-item.unread { border-color: #A7C9B4; background: #F4FAF6; }
.notification-page .notification-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #E8F5EE; color: #0F5C45; font-size: 19px; font-weight: 900; }
.notification-page .notification-copy { min-width: 0; }
.notification-page .notification-copy strong { color: #24392D; font-size: 13px; font-weight: 850; }
.notification-page .notification-copy p { margin: 4px 0; color: #506157; font-size: 11px; line-height: 1.5; }
.notification-page .notification-copy small { color: #6C7C72; font-size: 9px; }
.notification-page .notification-item .button { min-height: 36px; padding: 0 12px; font-size: 10px; }
@media (max-width: 620px) {
  .notification-page { margin: 16px auto 35px; }
  .notification-page .page-heading { align-items: flex-start; flex-direction: column; }
  .notification-page .notification-item { grid-template-columns: 36px minmax(0,1fr); padding: 13px; gap: 10px; }
  .notification-page .notification-item .button, .notification-page .notification-item > a { grid-column: 2; justify-self: start; }
  .notification-page .notification-icon { width: 36px; height: 36px; }
}


/* Dashboard sidebar keeps the full navigation visible on desktop. */
body.merchant-dashboard-stitch .cf-sidebar-brand-row { display:flex; align-items:center; gap:8px; min-height:58px; margin:0 4px 22px; padding:0 7px 18px; border-bottom:1px solid rgba(255,255,255,.14); }
body.merchant-dashboard-stitch .cf-sidebar-brand { display:flex; flex:1 1 auto; min-width:0; align-items:center; min-height:40px; margin:0; padding:0; border:0; }
body.merchant-dashboard-stitch .cf-sidebar-brand .cf-sidebar-logo-full { display:block !important; width:150px; max-width:100%; height:auto; max-height:42px; object-fit:contain; object-position:left center; }
body.merchant-dashboard-stitch .cf-sidebar-brand .cf-sidebar-logo-symbol { display:none !important; width:38px; height:38px; object-fit:contain; }
body.merchant-dashboard-stitch .cf-topbar-actions .cf-notification-menu { display:inline-flex; align-items:center; }
body.merchant-dashboard-stitch .cf-topbar-actions .cf-notification-trigger { width:40px; height:40px; border-radius:50%; }
body.merchant-dashboard-stitch .cf-topbar-actions .cf-notification-popover { top:calc(100% + 10px); }
@media (max-width:680px) {
  body.merchant-dashboard-stitch .cf-sidebar-brand .cf-sidebar-logo-symbol { display:none !important; }
}


/* Internal notification center retains the corporate console shell after 'Ver todas'. */
.platform-notifications-heading { align-items:center; }
.platform-notification-list { display:grid; gap:9px; }
.platform-notification-row { display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px; border:1px solid #D9E3DC; border-radius:13px; background:#FFFFFF; }
.platform-notification-row.unread { border-color:#A9CBB6; background:#F3F9F5; }
.platform-notification-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:#E8F5EE; color:#0F5C45; font-size:20px; }
.platform-notification-copy { min-width:0; }
.platform-notification-copy strong { color:#263A2E; font-size:11px; font-weight:850; }
.platform-notification-copy p { margin:4px 0; color:#526258; font-size:10px; line-height:1.5; }
.platform-notification-copy small { color:#718078; font-size:9px; }
.platform-notification-row .platform-button { min-height:35px; padding:0 12px; font-size:9px; }
@media (max-width:620px) {
  .platform-notification-row { grid-template-columns:36px minmax(0,1fr); gap:9px; padding:12px; }
  .platform-notification-icon { width:36px; height:36px; }
  .platform-notification-row form, .platform-notification-row > a { grid-column:2; justify-self:start; }
}


/* Console branding: use the complete horizontal brand lockup, not a cropped icon-sized wordmark. */
.platform-brand { min-width: 0; gap: 9px; }
.platform-brand img { display:block; width:142px !important; max-width:calc(100% - 42px); height:auto !important; max-height:40px; object-fit:contain; object-position:left center; }
.platform-brand b { flex:0 0 auto; margin-left:auto; }
@media (max-width:1100px) {
  .platform-brand img { width:128px !important; max-height:36px; }
}
@media (max-width:720px) {
  .platform-brand { padding-bottom:12px; }
  .platform-brand img { width:132px !important; max-height:36px; }
}

/* Merchant pages use the mobile navigation drawer instead of the desktop collapse control. */
@media (max-width:850px) {
}


/* Merchant account menu: quick actions without sending the user straight to settings. */
.cf-account-menu { position:relative; z-index:110; flex:0 0 auto; }
.cf-account-menu > summary { list-style:none; }
.cf-account-menu > summary::-webkit-details-marker { display:none; }
.cf-account-trigger {
  display:flex; align-items:center; gap:9px; min-height:42px; max-width:250px; padding:4px 11px 4px 5px;
  border:1px solid #C8D4CC; border-radius:13px; background:#FFFFFF; color:#263A2E; cursor:pointer;
  box-shadow:0 3px 10px rgba(15,40,29,.045); transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cf-account-trigger:hover, .cf-account-menu[open] .cf-account-trigger { border-color:#8FAF9A; box-shadow:0 5px 14px rgba(15,40,29,.09); transform:translateY(-1px); }
.cf-account-avatar { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:10px; background:#E8F5EE; color:#0F5C45; font-size:12px; font-weight:900; }
.cf-account-trigger-copy { display:grid; min-width:0; gap:2px; text-align:left; }
.cf-account-trigger-copy strong { overflow:hidden; max-width:170px; color:#263A2E; font-size:10px; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
.cf-account-trigger-copy small { color:#596B60; font-size:9px; font-weight:700; }
.cf-account-chevron { width:17px; height:17px; color:#53685B; transition:transform .15s ease; }
.cf-account-menu[open] .cf-account-chevron { transform:rotate(180deg); }
.cf-account-popover { position:absolute; top:calc(100% + 10px); right:0; width:min(300px,calc(100vw - 24px)); padding:9px; border:1px solid #CBD7CE; border-radius:16px; background:#FFFFFF; box-shadow:0 18px 44px rgba(15,40,29,.17); animation:cf-notification-open .16s ease-out; }
.cf-account-popover-heading { display:flex; align-items:center; gap:10px; padding:10px 9px 13px; border-bottom:1px solid #E4EBE6; }
.cf-account-popover-heading .cf-account-avatar { width:37px; height:37px; flex-basis:37px; }
.cf-account-popover-heading > span:last-child { display:grid; min-width:0; gap:3px; }
.cf-account-popover-heading strong { overflow:hidden; color:#24392D; font-size:11px; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
.cf-account-popover-heading small { color:#617168; font-size:9px; }
.cf-account-menu-links { display:grid; gap:3px; padding:8px 0; }
.cf-account-menu-links a, .cf-account-logout-form button { display:flex; align-items:center; gap:10px; width:100%; min-height:40px; padding:0 10px; border:0; border-radius:9px; background:transparent; color:#30463A; font:750 10px Manrope,sans-serif; text-align:left; text-decoration:none; cursor:pointer; }
.cf-account-menu-links a:hover { background:#EFF6F1; color:#0F5C45; }
.cf-account-menu-links .cf-ui-icon, .cf-account-logout-form .cf-ui-icon { width:18px; height:18px; color:#0F6B4E; }
.cf-account-logout-form { margin:0; padding-top:7px; border-top:1px solid #E4EBE6; }
.cf-account-logout-form button { color:#A33D32; }
.cf-account-logout-form button:hover { background:#FFF1EF; }
.cf-account-logout-form button .cf-ui-icon { color:#A33D32; }
@media(max-width:850px) { .cf-account-trigger { max-width:190px; min-height:39px; } .cf-account-trigger-copy strong { max-width:115px; } }
@media(max-width:560px) { .cf-account-trigger-copy, .cf-account-chevron { display:none; } .cf-account-trigger { width:41px; height:41px; justify-content:center; padding:4px; } .cf-account-avatar { width:31px; height:31px; } }

/* Club identity: show the establishment's own logo where the platform mark used to be. */
body.public-club-page .cf-consumer-brand { min-width:0; gap:10px; }
body.public-club-page .cf-consumer-brand > img { display:block; width:auto; max-width:154px; height:auto; max-height:46px; object-fit:contain; object-position:left center; border-radius:0; }
body.public-club-page .cf-public-establishment-mark { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:12px; background:var(--club-primary,#0F5C45); color:var(--club-primary-ink,#FFFFFF); font-size:17px; font-weight:900; }
body.public-club-page .cf-consumer-brand > span:last-child { display:grid; min-width:0; gap:2px; }
body.public-club-page .cf-consumer-brand > span:last-child strong { max-width:220px; overflow:hidden; color:var(--club-primary,#0F5C45); font-size:15px; font-weight:850; text-overflow:ellipsis; white-space:nowrap; }
body.public-club-page .cf-consumer-brand > span:last-child small { color:var(--club-text,#34443A); font-size:9px; font-weight:700; }
body.public-club-page .cf-public-intro { align-items:flex-start; }
@media(max-width:720px) {
  body.public-club-page .cf-consumer-brand > img { max-width:112px; max-height:36px; }
  body.public-club-page .cf-consumer-brand > span:last-child strong { max-width:145px; font-size:12px; }
  body.public-club-page .cf-consumer-brand > span:last-child small { font-size:8px; }
}

/* Stronger contrast and consistent borders across the internal Tryggo console. */
body.platform-shell { color:#202B24; }
body.platform-shell .platform-content { color:#202B24; }
body.platform-shell .platform-content p,
body.platform-shell .platform-content small,
body.platform-shell .platform-content label,
body.platform-shell .platform-content .muted { color:#4B5B51; }
body.platform-shell .platform-panel,
body.platform-shell .platform-stat-card,
body.platform-shell .platform-card,
body.platform-shell .platform-table-wrap,
body.platform-shell .platform-login-card { border-color:#C5D1C8 !important; box-shadow:0 4px 16px rgba(15,40,29,.065); }
body.platform-shell .platform-panel h1,
body.platform-shell .platform-panel h2,
body.platform-shell .platform-panel h3,
body.platform-shell .platform-page-heading h1,
body.platform-shell .platform-stat-card strong { color:#1D3025; }
body.platform-shell .platform-table th { color:#34483B; border-color:#CBD6CE; }
body.platform-shell .platform-table td { color:#2F4035; border-color:#D7E0D9; }
body.platform-shell .platform-field input,
body.platform-shell .platform-field select,
body.platform-shell .platform-field textarea,
body.platform-shell input,
body.platform-shell select,
body.platform-shell textarea { border-color:#BAC9BF; color:#1F2D24; }
body.platform-login-body .platform-login-card { border:1px solid #CFDAD2 !important; box-shadow:0 16px 42px rgba(15,40,29,.12); }
body.platform-login-body .platform-login-heading h1 { color:#1F3026; }
body.platform-login-body .platform-login-heading p,
body.platform-login-body .platform-login-footnote { color:#4F6055; }
body.platform-login-body .platform-field label { color:#34483B; font-weight:800; }
body.platform-login-body .platform-field input { border:1px solid #BAC9BF; color:#1F2D24; }

/* Notification actions: bulk mark-as-read and remove only already-read items. */
.cf-notification-popover-actions { border-top:1px solid #E3EAE5; background:#FFFFFF; }
.cf-notification-popover-actions > form { margin:0; }
.cf-notification-popover-actions > form button { display:flex; align-items:center; gap:8px; width:100%; min-height:37px; padding:0 16px; border:0; background:#FFFFFF; color:#405348; font:750 9px Manrope,sans-serif; text-align:left; cursor:pointer; }
.cf-notification-popover-actions > form button:hover { background:#F3F8F4; color:#0F5C45; }
.cf-notification-popover-actions > form button .cf-ui-icon { width:16px; height:16px; color:#0F6B4E; }
.cf-notification-popover-actions .cf-notification-all { border-top:1px solid #E8EEE9; }
.platform-notification-bulk-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.platform-notification-bulk-actions form { margin:0; }
@media(max-width:620px) { .platform-notification-bulk-actions { justify-content:flex-start; } }

body.merchant-dashboard-stitch .cf-dashboard-topbar { position:sticky; z-index:70; overflow:visible; }
body.merchant-pages-stitch .cf-merchant-topbar { overflow:visible; }


/* Internal account management — clear hierarchy for profile, security and club memberships. */
.platform-account-page-heading { align-items: center; }
.platform-account-page-heading .platform-button { flex: 0 0 auto; }
.platform-account-summary {
  display: flex; align-items: center; gap: 15px; margin: 0 0 18px; padding: 17px 20px;
  border: 1px solid #D8E4DC; border-radius: 17px; background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(15, 50, 30, .045);
}
.platform-account-avatar {
  display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 15px; background: #E8F5EE; color: #0F5C45; font-size: 19px; font-weight: 850;
}
.platform-account-summary-copy { display: grid; min-width: 0; gap: 4px; }
.platform-account-summary-copy strong { color: #21392C; font-size: 14px; }
.platform-account-summary-copy > span { color: #63736A; font-size: 10px; overflow-wrap: anywhere; }
.platform-status.large { margin-left: auto; padding: 7px 11px; font-size: 10px; white-space: nowrap; }
.platform-account-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.platform-account-panel, .platform-account-clubs-panel, .platform-account-history-panel { min-width: 0; padding: 21px; }
.platform-account-panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.platform-panel-icon, .platform-club-row-icon {
  display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px;
  border-radius: 12px; background: #E8F5EE; color: #0F5C45;
}
.platform-panel-icon .material-symbols-outlined, .platform-club-row-icon .material-symbols-outlined { font-size: 20px; }
.platform-account-panel-heading h2 { margin: 1px 0 5px; color: #173F30; font-size: 14px; letter-spacing: -.2px; }
.platform-account-panel-heading p { margin: 0; color: #65766C; font-size: 10px; line-height: 1.55; }
.platform-account-form { display: grid; gap: 13px; min-width: 0; }
.platform-account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.platform-account-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.platform-account-field.span-two { grid-column: 1 / -1; }
.platform-account-field > label { color: #30483A; font-size: 10px; font-weight: 800; }
.platform-account-field input, .platform-account-field select, .platform-account-field textarea {
  display: block; width: 100%; min-width: 0; min-height: 41px; padding: 10px 12px;
  border: 1px solid #CBD9D0; border-radius: 10px; background: #FFFFFF; color: #22382B;
  font: 500 11px Manrope, sans-serif; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.platform-account-field textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.platform-account-field input:focus, .platform-account-field select:focus, .platform-account-field textarea:focus {
  border-color: #0F7A58; box-shadow: 0 0 0 3px rgba(15, 92, 69, .11);
}
.platform-account-field small { color: #68796F; font-size: 9px; line-height: 1.5; }
.platform-account-field-error { color: #B42318; font-size: 9px; line-height: 1.4; }
.platform-account-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #E8EEE9; }
.platform-account-form-footer > span { color: #697A70; font-size: 9px; line-height: 1.45; }
.platform-account-security-stack { display: grid; gap: 12px; }
.platform-account-security-stack .platform-account-panel { padding: 17px; }
.platform-account-security-stack .platform-account-panel-heading { margin-bottom: 12px; }
.platform-account-security-stack .platform-panel-icon { width: 35px; height: 35px; flex-basis: 35px; }
.platform-account-security-stack .platform-account-form { gap: 10px; }
.platform-account-security-stack .platform-account-field textarea { min-height: 62px; }
.platform-account-security-stack .platform-button { justify-self: start; }
.platform-account-confirm-field, .platform-club-confirm { display: flex; align-items: flex-start; gap: 8px; color: #455B4E; font-size: 10px; line-height: 1.5; }
.platform-account-confirm-field input, .platform-club-confirm input { margin: 2px 0 0; accent-color: #0F5C45; }
.platform-account-clubs-panel, .platform-account-history-panel { margin-bottom: 16px; }
.platform-club-management-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 15px; align-items: start; }
.platform-club-list { display: grid; gap: 8px; min-width: 0; }
.platform-club-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid #E1EAE4; border-radius: 12px; background: #FBFDFC; }
.platform-club-row-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.platform-club-row-copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.platform-club-row-copy strong { color: #284334; font-size: 10px; overflow-wrap: anywhere; }
.platform-club-row-copy small { color: #6C7C72; font-size: 9px; line-height: 1.4; }
.platform-club-remove-details { position: relative; flex: 0 0 auto; }
.platform-club-remove-details > summary { color: #B42318; font-size: 9px; font-weight: 850; cursor: pointer; list-style: none; }
.platform-club-remove-details > summary::-webkit-details-marker { display: none; }
.platform-club-remove-form { display: grid; gap: 8px; width: min(310px, calc(100vw - 56px)); margin-top: 9px; padding: 12px; border: 1px solid #F0D4D1; border-radius: 11px; background: #FFFFFF; box-shadow: 0 8px 24px rgba(50, 20, 15, .09); }
.platform-club-remove-form > label:not(.platform-club-confirm) { color: #6B352F; font-size: 9px; font-weight: 800; }
.platform-club-remove-form textarea { width: 100%; min-height: 64px; padding: 9px; border: 1px solid #E3C9C5; border-radius: 8px; color: #382F2D; font: 10px Manrope, sans-serif; resize: vertical; }
.platform-club-remove-form .platform-button { justify-self: start; }
.platform-club-add-panel { padding: 16px; border: 1px solid #D7E7DD; border-radius: 13px; background: #F5FAF7; }
.platform-club-add-panel h3 { margin: 0 0 6px; color: #174B36; font-size: 12px; }
.platform-club-add-panel > p { margin: 0 0 13px; color: #5E7165; font-size: 9px; line-height: 1.55; }
.platform-account-preservation-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 11px 12px; border-radius: 10px; background: #F1F7F3; color: #4E6658; font-size: 9px; line-height: 1.55; }
.platform-account-preservation-note .material-symbols-outlined { flex: 0 0 auto; color: #0F5C45; font-size: 17px; }
.platform-account-empty-note { padding: 13px; border: 1px dashed #CEDDD3; border-radius: 10px; color: #64766B; font-size: 10px; line-height: 1.5; }
.platform-account-history-panel .platform-table-wrap { overflow-x: auto; }
.platform-account-history-panel .platform-table { min-width: 620px; }
@media (max-width: 1050px) {
  .platform-account-layout { grid-template-columns: minmax(0, 1fr); }
  .platform-account-security-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-account-security-stack > article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .platform-account-page-heading { align-items: flex-start; flex-direction: column; }
  .platform-account-summary { align-items: flex-start; flex-wrap: wrap; padding: 14px; }
  .platform-status.large { margin-left: 63px; }
  .platform-account-form-grid, .platform-account-security-stack, .platform-club-management-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-account-security-stack > article:last-child { grid-column: auto; }
  .platform-account-panel, .platform-account-clubs-panel, .platform-account-history-panel { padding: 15px; }
  .platform-account-form-footer { align-items: flex-start; flex-direction: column; }
  .platform-club-row { flex-wrap: wrap; }
  .platform-club-remove-details { margin-left: auto; }
}
