.up-panel { --up-text: #243447; --up-muted: #667589; --up-border: #e4e9ef; --up-soft: #f5f7fa; --up-primary: #173957; width: 100%; color: var(--up-text); } .up-panel, .up-panel * { box-sizing: border-box; } .up-panel .up-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; width: 100%; } .up-panel .up-brand { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; } .up-panel .up-brand img { display: block; width: auto; max-height: 80px; max-width: 350px; transition: max-height 220ms ease; } /* Integrates with your shrinking navigation */ #site-navigation.is-scrolled .up-panel .up-brand img { max-height: 60px; } .up-panel .up-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; } .up-panel .up-actions > li { position: relative; margin: 0; padding: 0; list-style: none; } .up-panel .up-action, .up-panel .up-auth { margin-top: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; padding: 7px 10px; border: 1px solid var(--up-border); border-radius: 10px; background: #fff; color: var(--up-text); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; } .up-panel .up-action:hover, .up-panel .up-auth:hover { background: var(--up-soft); border-color: #b9c6d3; box-shadow: 0 3px 10px rgba(16, 36, 59, 0.05); } .up-panel .up-icon { display: block; width: 19px; height: 19px; object-fit: contain; flex-shrink: 0; } /* Keep either light or dark source icons visible on white */ .up-panel .up-action .up-icon, .up-panel .up-account-icon { filter: brightness(0); opacity: 0.65; } .up-panel .up-auth { padding-right: 20px; padding-left: 20px; } .up-panel .up-auth-primary { background: var(--up-primary); border-color: var(--up-primary); color: #fff; } .up-panel .up-auth-primary:hover { background: #244d70; border-color: #244d70; } .up-panel .up-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; min-height: 21px; padding: 2px 6px; border-radius: 20px; background: #edf2f7; color: var(--up-primary); font-size: 11px; font-weight: 700; } /* Empty cart count remains available for AJAX updates */ .up-panel .up-cart-count:empty { display: none; } .up-panel .up-account { display: flex; align-items: center; min-height: 44px; padding: 4px 5px 4px 11px; border: 1px solid var(--up-border); border-radius: 12px; background: var(--up-soft); } .up-panel .up-account-icon { width: 24px; height: 24px; margin-right: 9px; object-fit: contain; } .up-panel .up-account-link { display: block; max-width: 240px; overflow: hidden; color: var(--up-text); font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; } .up-panel .up-account-link:hover { text-decoration: underline; text-underline-offset: 3px; } .up-panel .up-profile-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 7px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--up-muted); cursor: pointer; } .up-panel .up-profile-toggle:hover { background: #e5ebf1; color: var(--up-primary); } .up-panel .up-chevron { width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); } /* GetProfile() continues to control display and visibility */ .up-panel #UPLayer { position: absolute; top: calc(100% + 12px); right: 0; left: auto; z-index: 1050; width: 300px; max-width: calc(100vw - 32px); padding: 10px; border: 1px solid var(--up-border); border-radius: 16px; background: #fff; color: var(--up-text); box-shadow: 0 18px 48px rgba(16, 36, 59, 0.14), 0 3px 10px rgba(16, 36, 59, 0.04); text-align: left; } .up-panel .up-profile-header { display: flex; align-items: center; gap: 13px; padding: 12px 10px 18px; margin-bottom: 7px; border-bottom: 1px solid var(--up-border); } .up-panel .up-profile-photo { display: block; flex-shrink: 0; width: 54px; height: 54px; border: 1px solid var(--up-border); border-radius: 14px; object-fit: cover; } .up-panel .up-profile-name { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; } .up-panel .up-profile-name small { display: block; margin-top: 3px; color: var(--up-muted); font-size: 11px; font-weight: 400; } .up-panel .up-profile-link { display: block; padding: 11px 12px; border-radius: 8px; color: var(--up-text); font-size: 13px; line-height: 1.5; text-decoration: none; } .up-panel .up-profile-link:hover { background: var(--up-soft); } .up-panel .up-profile-divider { height: 1px; margin: 8px 0; border: 0; background: var(--up-border); } .up-panel .up-signout { color: #ba3442; } .up-panel .up-signout:hover { background: #fff1f2; color: #9f2634; } .up-panel a:focus-visible, .up-panel button:focus-visible { outline: 2px solid #397db5; outline-offset: 3px; } @media (max-width: 1100px) { .up-panel .up-action-label { display: none; } .up-panel .up-account-link { max-width: 180px; } } @media (prefers-reduced-motion: reduce) { .up-panel .up-action, .up-panel .up-auth, .up-panel .up-brand img { transition: none; } }