/* OLMAX: mini-cart and action notices. Scoped to current storefront markup. */
body.goods-store #cart > .dropdown > .dropdown-menu {
  box-sizing:border-box; width:min(510px,calc(100vw - 24px)); min-width:0;
  max-width:calc(100vw - 24px); max-height:75vh; max-height:min(75dvh,680px);
  overflow:hidden; border:1px solid #dce7f2; border-radius:16px;
  background:#fff; color:#173d65; box-shadow:0 16px 50px #08224630;
  padding:0!important; margin:0; font-size:14px;
}
body.goods-store #cart > .dropdown > .dropdown-menu.show {display:flex;flex-direction:column}
body.goods-store #cart > .dropdown > .dropdown-menu > li {min-width:0;width:100%;box-sizing:border-box}
body.goods-store #cart .gs-mini-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:10px 14px;line-height:1.35;background:#fff;color:#123b63;font-size:17px;font-weight:750}
body.goods-store #cart .gs-mini-close {display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;border:0;border-radius:10px;background:#f0f5fb;color:#254b73;font-size:25px;line-height:1;cursor:pointer}
body.goods-store #cart .gs-mini-items {flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 14px;scrollbar-width:thin}
body.goods-store #cart .gs-mini-row {display:grid;grid-template-columns:64px minmax(0,1fr) 44px;gap:10px;align-items:start;padding:14px 0;border-bottom:1px solid #e5edf4}
body.goods-store #cart .gs-mini-image {display:block;width:100%;min-width:0}
body.goods-store #cart .gs-mini-image img {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border:1px solid #e8eef4;border-radius:9px;background:#fff}
body.goods-store #cart .gs-mini-product {min-width:0}
body.goods-store #cart .gs-mini-product>a {font-size:14px;line-height:1.4;font-weight:650;overflow-wrap:anywhere;word-break:normal;color:#153d64}
body.goods-store #cart .gs-mini-product>small {font-size:12px;line-height:1.35;word-break:normal;overflow-wrap:anywhere}
body.goods-store #cart .gs-mini-price {display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px;justify-content:space-between;margin-top:8px}
body.goods-store #cart .gs-mini-price strong {white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:15px;color:#153d64;font-variant-numeric:tabular-nums}
body.goods-store #cart .gs-mini-row>form {margin:0;min-width:0}
body.goods-store #cart .gs-mini-row .gs-cart-remove {display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid #e2eaf3;border-radius:9px;background:#f8fafc;color:#60758b}
body.goods-store #cart .gs-mini-row .gs-cart-remove:hover {background:#fff0f1;color:#a32d3a}
body.goods-store #cart .gs-mini-summary {flex:none;padding:10px 14px 4px;background:#fff;border-top:1px solid #e5edf4}
body.goods-store #cart .gs-mini-summary>div {gap:8px;line-height:1.35;padding:5px 0}
body.goods-store #cart .gs-mini-summary strong {white-space:nowrap;font-variant-numeric:tabular-nums}
body.goods-store #cart .gs-mini-summary .gs-mini-grand-total {font-size:18px;color:#082246}
body.goods-store #cart .gs-mini-footer {flex:none;display:flex;gap:8px;padding:10px 14px 14px;background:#fff}
body.goods-store #cart .gs-mini-footer>.btn {min-height:44px;min-width:0;font-size:14px;border-radius:10px;padding:10px 12px;line-height:1.3}
body.goods-store #cart .gs-mini-empty {flex:1 1 auto;min-height:0;overflow:auto;padding:24px 14px;color:#58728b}
body.goods-store #cart :is(.gs-mini-close,.gs-cart-remove,.gs-mini-footer .btn):focus-visible {outline:2px solid #1769c8;outline-offset:2px}
body.goods-store .gs-topbar:has(#cart .dropdown-menu.show) {z-index:1100}
body.goods-store #alert {z-index:1200;max-height:calc(100dvh - 24px);width:min(480px,calc(100% - 20px));top:calc(10px + env(safe-area-inset-top,0px));}
body.goods-store #alert .alert {background:#fff;border:1px solid #dce7f2;border-inline-start:4px solid #2775ca;color:#244869;border-radius:12px;padding:14px 48px 14px 12px;box-shadow:0 10px 30px #08224626;font-size:13px;line-height:1.45;word-break:normal;overflow-wrap:anywhere}
body.goods-store #alert .alert-success {background:#fff;border-color:#dce7f2;border-inline-start-color:#27875c;color:#173d65}
body.goods-store #alert .alert-danger {background:#fff;border-color:#eed9dc;border-inline-start-color:#c84252;color:#7f2935}
body.goods-store #alert .alert-success>i:first-child {color:#248456;font-size:19px;vertical-align:middle;margin-inline-end:5px}
body.goods-store #alert .alert-danger>i:first-child {color:#bd3d4d}
body.goods-store #alert .alert .btn-close {top:3px;right:3px;width:44px;height:44px;opacity:.8}
body.goods-store #alert .alert-success:has(>a[href*="route=checkout/cart"]) {display:grid;grid-template-columns:24px minmax(0,1fr);align-items:start;column-gap:8px;row-gap:10px}
body.goods-store #alert .alert-success:has(>a[href*="route=checkout/cart"])>i:first-child {margin:2px 0 0}
body.goods-store #alert .alert-success:has(>a[href*="route=checkout/cart"])>span {min-width:0;grid-column:2}
body.goods-store #alert .alert-success>a[href*="route=checkout/cart"] {grid-column:2;display:inline-flex;justify-content:center;align-items:center;justify-self:start;min-height:40px;padding:8px 13px;border-radius:8px;background:#0863cd;color:#fff;font-weight:700;text-decoration:none;line-height:1.3}
@media(max-width:991px) {
  html:has(body.goods-store #cart .dropdown-menu.show) {overflow:hidden}
  body.goods-store #cart > .dropdown:has(>.dropdown-menu.show)::before {content:"";position:fixed;inset:0;background:#09243c70;z-index:1;cursor:pointer}
  body.goods-store #cart > .dropdown > .dropdown-menu.show {
    position:fixed!important;inset:auto 8px calc(8px + env(safe-area-inset-bottom,0px)) 8px!important;
    transform:none!important;width:auto!important;min-width:0!important;max-width:none!important;
    margin:0!important;max-height:85vh;max-height:min(85dvh,680px);
    z-index:2;border-radius:16px;
  }
  body.goods-store #cart .gs-mini-heading {padding:7px 12px}
  body.goods-store #cart .gs-mini-items {padding:0 12px}
  body.goods-store #cart .gs-mini-row {grid-template-columns:52px minmax(0,1fr) 44px;gap:8px;padding:12px 0}
  body.goods-store #cart .gs-mini-product>a {font-size:13px}
  body.goods-store #cart .gs-mini-price strong {font-size:14px}
  body.goods-store #cart .gs-mini-summary {padding:8px 12px 3px}
  body.goods-store #cart .gs-mini-footer {padding:8px 12px 12px}
  body.goods-store #alert .alert {font-size:13px}
}
@media(max-height:420px) {
  body.goods-store #cart > .dropdown > .dropdown-menu.show {max-height:calc(100dvh - 20px)}
  body.goods-store #cart .gs-mini-heading {padding-block:3px}
  body.goods-store #cart .gs-mini-footer {padding-block:5px}
}
