/* The button keeps its normal appearance; only the lamps reflect the selected card. */
html:root body .zh-matched-header .aiWrap>a.zh-header-account-button[data-zh-account-card]{position:relative;padding-right:23px}
html:root body .zh-header-card-lamp{position:absolute;right:5px;top:4px;display:block;box-sizing:border-box;width:11px;height:11px;margin:0;border-radius:50%;border:1px solid #52605a;background:linear-gradient(#d8dcda,#8e9692);box-shadow:inset 0 1px 2px #0004;pointer-events:none}
html:root body .zh-header-card-lamp.is-on{border-color:#9e0b09;background:radial-gradient(circle at 35% 30%,#ffb7a8,#ff3024 45%,#b70d08);box-shadow:0 0 6px 2px #ff302499,inset 0 1px 2px #fff8}
html:root body .zh-menu-card-lamp{display:inline-block;box-sizing:border-box;vertical-align:middle;width:11px;height:11px;margin-left:8px;border-radius:50%;border:1px solid #52605a;background:linear-gradient(#d8dcda,#8e9692);box-shadow:inset 0 1px 2px #0004;pointer-events:none}
html:root body .zh-menu-card-lamp.is-on{border-color:#9e0b09;background:radial-gradient(circle at 35% 30%,#ffb7a8,#ff3024 45%,#b70d08);box-shadow:0 0 6px 2px #ff302499,inset 0 1px 2px #fff8}

/* Preserve the cabinet link emphasis when the account menu becomes a phone dialog. */
html:root body :is(.zh-account-menu,.zh-phone-menu-option) .zh-cabinet-menu-label{text-decoration:underline!important;text-decoration-style:solid;text-decoration-thickness:1px;text-underline-offset:3px}
/* Menu close controls are plain grey crosses, including hover and pressed states. */
html:root body :is(#zh-phone-menu-dialog button.zh-phone-menu-close,#zh-header-links button[data-zh-menu-close]){display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;color:#777!important;font:400 30px/1 Arial,sans-serif;box-shadow:none!important;text-shadow:none!important;opacity:1;filter:none!important;transform:none!important}
html:root body :is(#zh-phone-menu-dialog button.zh-phone-menu-close,#zh-header-links button[data-zh-menu-close]):hover{background:transparent!important;background-image:none!important;color:#555!important;border:0!important;box-shadow:none!important;filter:none!important}
html:root body :is(#zh-phone-menu-dialog button.zh-phone-menu-close,#zh-header-links button[data-zh-menu-close]):active{background:transparent!important;background-image:none!important;color:#444!important;box-shadow:none!important;transform:none!important}

/* Product examples and actual card savings share one compact presentation. */
html:root body .zh-price-example-prefix{font-size:12px;font-weight:400;color:#65706b}
html:root body .zh-price-example-size{display:block;margin-top:3px;font:400 11px/1.4 Ubuntu,Arial,sans-serif;color:#65706b;white-space:normal}
html:root body .zh-price-card-note{display:flex;align-items:center;gap:5px;margin-top:4px;font:400 11px/1.4 Ubuntu,Arial,sans-serif;color:#345653;white-space:normal}
html:root body .zh-price-mini-card{display:inline-block;flex:0 0 22px;width:22px;height:14px;border:1px solid #749390;border-radius:3px;background:linear-gradient(135deg,#416d72,#173e39);position:relative}
html:root body .zh-price-mini-card::after{content:"";position:absolute;left:3px;bottom:2px;width:5px;height:4px;border:1px solid #b6a671;border-radius:1px;background:linear-gradient(#e6d9ab,#c5b271)}
html:root body [data-zh-product-card-saving]{display:block;font:400 11px/1.4 Ubuntu,Arial,sans-serif;color:#345653;white-space:normal}
html:root body [data-zh-product-card-saving][hidden]{display:none!important}

/* Compact card colors follow the same cards shown in the account. */
html:root body .zh-price-mini-card.zh-card-kind-profile3{border-color:#aabdab;background:linear-gradient(135deg,#f6f8f5,#dce8de)}
html:root body .zh-price-mini-card.zh-card-kind-yandex{border-color:#dca400;background:linear-gradient(135deg,#fff25a,#ffbf00)}
html:root body .zh-price-mini-card.zh-card-kind-vk{border-color:#0755bf;background:linear-gradient(135deg,#2297ff,#0754c7)}
html:root body .zh-price-mini-card.zh-card-kind-unknown{border-color:#9ba7a0;background:linear-gradient(135deg,#dfe5e0,#a9b9ae)}
html:root body [data-zh-product-card-saving]:not([hidden]){display:flex;align-items:center;gap:5px}

/* A small lamp marks a card that is applied to the displayed price. */
html:root body .zh-price-mini-card::before,html:root body #checkout-cart .zh-cart-mini-card::after{content:"";position:absolute;top:1px;right:1px;width:5px;height:5px;box-sizing:border-box;border:1px solid #9e0b09;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffb7a8,#ff3024 45%,#b70d08);box-shadow:0 0 3px 1px #ff302499;pointer-events:none}
html:root body #checkout-cart .zh-cart-mini-card{position:relative}
html:root body #checkout-cart .zh-cart-mini-card::after{top:2px;right:2px;width:6px;height:6px}

/* At desktop width the cabinet begins at the cart scale, with room to grow for longer names. */
@media(min-width:901px){html:root body .zh-matched-header .aiWrap>a.zh-header-account-button[data-zh-account-card]{box-sizing:border-box;min-width:152px}}

/* Match the left edge of the cart scale on phones, while allowing longer names. */
@media(max-width:700px){html:root body .zh-matched-header .aiWrap>a.zh-header-account-button[data-zh-account-card]{box-sizing:border-box;min-width:127px}}
@media(min-width:701px) and (max-width:991px){html:root body .zh-matched-header .aiWrap>a.zh-header-account-button[data-zh-account-card]{box-sizing:border-box;min-width:122px}}

html:root body .zh-price-mini-card.zh-card-kind-site_review{border-color:#df870e;background:linear-gradient(120deg,#f47e05 0 35%,#fff2db 36% 100%)}
