/* Only the requested homepage menus and image-search panel. */
#authModal { z-index: 10100; }
.am-popular-item { display: inline-flex; }
.am-home-account-trigger { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.am-home-panel[hidden] { display: none !important; }
.am-home-panel { position: fixed; z-index: 10070; box-sizing: border-box; border: 1px solid #dce5ef; border-radius: 12px; background: #fff; color: #17344e; box-shadow: 0 12px 36px #122b462b; overflow: auto; overscroll-behavior: contain; font: 14px/1.45 'Public Sans', Arial, sans-serif; }
.am-home-panel a { color: #17344e; text-decoration: none; }
.am-home-panel a:hover, .am-home-panel a:focus-visible { color: #003f87; background: #edf4fc; }
.am-home-panel :focus-visible { outline: 2px solid #003f87; outline-offset: -2px; }
.am-home-panel-heading { display: block; padding: 16px 18px 12px; font-size: 17px; border-bottom: 1px solid #e8edf3; }
.am-popular-panel { padding: 6px; }
.am-popular-panel a { display: block; padding: 9px 12px; border-radius: 6px; overflow-wrap: anywhere; }
.am-popular-panel .am-popular-view-all { margin-top: 4px; border-top: 1px solid #e8edf3; color: #003f87; font-weight: 600; }
.am-home-account-panel > a { display: block; padding: 10px 18px; font-size: 15px; }
.am-home-account-auth { display: flex; gap: 10px; padding: 14px 18px; }
.am-home-account-auth a { flex: 1; padding: 10px; text-align: center; border: 1px solid #003f87; border-radius: 7px; color: #003f87; font-weight: 600; }
.am-home-account-auth a:first-child { background: #003f87; color: #fff; }
.am-home-account-panel .am-home-account-last { margin-top: 5px; border-top: 1px solid #e8edf3; padding-block: 14px; }
.am-home-cart-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #e8edf3; font-size: 18px; }
.am-home-cart-heading span { margin-left: 6px; font-size: 14px; color: #60748b; }
.am-home-cart-heading button { border: 0; border-radius: 50%; width: 32px; height: 32px; background: #edf4fc; color: #003f87; font-size: 24px; }
.am-home-cart-items { list-style: none; margin: 0; padding: 0 18px; max-height: min(340px, 40vh); overflow-y: auto; }
.am-home-cart-item { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid #e8edf3; }
.am-home-cart-item img { width: 68px; height: 68px; object-fit: contain; border-radius: 7px; background: #f6f8fb; }
.am-home-cart-item a { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.am-home-cart-item p { margin: 6px 0; color: #60748b; font-size: 13px; }
.am-home-cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.am-home-cart-quantity { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #dce5ef; border-radius: 6px; padding: 3px; }
.am-home-cart-quantity button { width: 28px; height: 28px; border: 0; border-radius: 4px; background: #edf4fc; color: #003f87; font-size: 18px; }
.am-home-cart-remove { border: 0; background: transparent; color: #60748b; font-size: 12px; padding: 8px 0; }
.am-home-cart-item button:disabled { opacity: .5; cursor: wait; }
.am-home-cart-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 16px; }
.am-home-cart-total strong { color: #003f87; }
.am-home-cart-actions { display: flex; gap: 10px; padding: 0 18px 18px; }
.am-home-cart-actions a { flex: 1; border: 1px solid #003f87; border-radius: 7px; padding: 11px; text-align: center; color: #003f87; font-weight: 600; }
.am-home-cart-actions a:last-child { background: #003f87; color: #fff; }
.am-home-cart-empty { text-align: center; padding: 30px 20px; }
.am-home-cart-empty strong { display: block; font-size: 17px; }
.am-home-cart-empty p { color: #60748b; margin: 8px 0 16px; }
.am-home-cart-empty a { color: #003f87; font-weight: 600; }
[data-home-cart-status] { margin: 12px 18px; color: #60748b; font-size: 13px; }
.image-search-popup[data-home-image-panel] .am-image-popup-header { padding-block: 24px; }
.image-search-popup[data-home-image-panel] .am-image-popup-body { padding-top: 24px; padding-bottom: 20px; }
.image-search-popup[data-home-image-panel] .am-image-drop-area { padding-block: 24px; }
@media (max-width: 479px) {
    .am-home-cart-item { gap: 10px; }
    .am-home-cart-items { padding-inline: 14px; }
    .am-home-cart-heading, .am-home-cart-total { padding-inline: 14px; }
}
