.sn-cart-modern {
    --cart-panel: #1a1e29;
    --cart-border: #3b4051;
    --cart-ink: #f5f5fa;
    --cart-muted: #c1c6d4;
    --cart-accent: #ff9654;
    color: var(--cart-ink);
}
.sn-cart-modern .title_nocol {
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    text-transform: none;
    margin-block: 16px 22px;
}
.sn-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(230px, 1fr);
    gap: 16px 22px;
    align-items: start;
    margin-bottom: 30px;
}
.sn-cart-layout > :not(.cart-total) { grid-column: 1; min-width: 0; }
.sn-cart-layout .form_cart_content {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
}
.sn-cart-modern .cart-info, .sn-cart-empty, .sn-cart-modern .cart-total,
.sn-cart-modern .cart_content, .sn-cart-modern .cart-module > .content {
    background: #1a1e29;
    border: 1px solid #3b4051;
    border-radius: 16px;
}
.sn-cart-modern .cart-info { margin: 0; }
.sn-cart-modern .cart-info .table {
    margin: 0;
    width: 100%;
    table-layout: auto;
    background: transparent;
}
.sn-cart-modern .cart-info .table td {
    padding: 14px 10px;
    vertical-align: middle;
    border-color: var(--cart-border);
    background: transparent;
    color: var(--cart-ink);
    overflow-wrap: anywhere;
}
.sn-cart-modern .cart-info thead td { font-weight: 700; color: var(--cart-muted); }
.sn-cart-modern .cart-info .table td.product_price {
    width: 116px;
    min-width: 96px;
    padding-block: 14px;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    text-transform: none;
}
.sn-cart-modern .cart-info .table td.product_price .price {
    color: var(--cart-ink);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.sn-cart-modern .cart-info .image img { width: 58px; max-width: none; height: auto; border-radius: 8px; }
.sn-cart-modern .cart-info a { color: var(--cart-ink); }
.sn-cart-modern .cart-info .name a { font-weight: 700; }
.sn-cart-modern .cart-info .remove a { color: #ffbd99; text-decoration: underline; }
.sn-cart-modern .cart-info .price { color: var(--cart-ink); white-space: normal; }
.sn-cart-modern .cart-info td.total .price { font-weight: 800; color: var(--cart-accent); }
.sn-cart-modern .cart-info td.model { display: none; }
.sn-cart-modern .cart-info td.quantity input[type=text] {
    width: 3.4em;
    padding: 6px;
    min-height: 38px;
    border: 1px solid #697288;
    border-radius: 8px;
    background: #111521;
    color: white;
    text-align: center;
}
.sn-cart-modern .cart-info td.quantity .icon { display: inline-block; margin: 0; float: none; }
.sn-cart-modern .cart-info .sn-cart-update {
    width: 40px;
    min-height: 38px;
    vertical-align: middle;
    border: 1px solid #697288;
    border-radius: 8px;
    color: var(--cart-ink);
    background: #292e3d;
    font-size: 21px;
    cursor: pointer;
}
.sn-cart-stepper { display: inline-flex; align-items: center; gap: 2px; }
.sn-cart-stepper button:not([hidden]) {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid #697288;
    border-radius: 8px;
    background: #292e3d;
    color: var(--cart-ink);
    font: 600 22px/1 system-ui, sans-serif;
    cursor: pointer;
}
.sn-cart-stepper button:disabled { opacity: .45; cursor: default; }
.sn-cart-modern .sn-cart-stepper input[type=text] { width: 3em; min-height: 44px; }
.sn-cart-modern .sn-cart-quantity-ready td.quantity .icon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sn-cart-modern .sn-cart-quantity-ready td.quantity .icon:focus-within { position: static; width: auto; height: auto; clip-path: none; }
.sn-cart-modern .cart-info .remove,
.sn-cart-modern .cart-info .total,
.sn-cart-modern .cart-info .total .price { white-space: nowrap; overflow-wrap: normal; }
.sn-cart-modern .cart-total {
    grid-area: 1 / 2 / span 4;
    width: auto;
    float: none;
    margin: 0;
    padding: 18px;
    position: sticky;
    top: 18px;
    background: linear-gradient(145deg, #2d2424, #1a1e29 65%);
}
.sn-cart-modern .cart-total > div { display: block; float: none; margin: 10px 0 0; }
.sn-cart-modern .cart-total #total { width: 100%; float: none; color: var(--cart-ink); }
.sn-cart-modern .cart-total #total td { padding: 10px 4px; color: var(--cart-ink); background: none; }
.sn-cart-modern .cart-total #total tr:last-child td { border-top: 1px solid var(--cart-border); font-weight: 800; }
.sn-cart-modern .cart-total #total tr:last-child .right { color: var(--cart-accent); font-size: 1.3em; }
.sn-cart-modern .cart-total a, .sn-cart-empty a {
    display: block;
    min-height: 46px;
    height: auto;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
    white-space: normal;
    line-height: 1.4;
}
.sn-cart-modern .cart-total .btn-checkout, .sn-cart-empty a {
    background: #ff9654;
    color: #20140e;
    font-weight: 800;
}
.sn-cart-modern .cart-total .btn-other { background: transparent; border: 1px solid #697288; color: var(--cart-ink); }
.sn-cart-modern .cart-total > :is(.checkout_cart, .continueshopping) {
    width: 100%;
}
.sn-cart-modern .cart-total > :is(.checkout_cart, .continueshopping) > a:is(:link, :visited, :hover, :focus, :active) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    line-height: 1.4;
    text-transform: none;
    text-decoration: none;
    transform: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.sn-cart-modern .cart-total > .checkout_cart > a:hover { background-color: #ffad76; color: #20140e; }
.sn-cart-modern .cart-total > .continueshopping > a:is(:link, :visited, :hover, :focus, :active) { border-color: #697288; }
.sn-cart-modern .cart-total > .continueshopping > a:hover { background-color: #292e3d; }
.sn-cart-modern .cart_content, .sn-cart-modern .cart-module > .content { padding: 14px 18px; }
.sn-cart-modern .text_next_cart { margin: 4px 0 0; font-size: 1.2rem; text-transform: none; }
.sn-cart-empty { padding: 30px 22px; text-align: center; color: #f5f5fa; }
.sn-cart-empty .fa { color: #ff9654; font-size: 28px; }
.sn-cart-empty a { display: inline-block; }
.sn-cart-modern :focus-visible, .sn-cart-empty :focus-visible, .sn-cart-notice a:focus-visible {
    outline: 2px solid #ffbd8e;
    outline-offset: 3px;
}
.sn-cart-notice, .sn-cart-announcement {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font: 600 14px/1.45 system-ui, sans-serif;
    color: #f5f5fa;
    text-align: start;
}
.sn-cart-notice strong { color: #a8efc3; font-size: 15px; }
.sn-cart-product { overflow-wrap: anywhere; }
.sn-cart-mobile-label { display: none; }
.sn-cart-notice a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ff9654;
    color: #20140e !important;
    font-weight: 800;
    text-decoration: none;
}
#jGrowl .jGrowl-notification:has(.sn-cart-notice),
#notification .success:has(.sn-cart-notice) {
    background: #1a1e29;
    border: 1px solid #626b80;
    border-radius: 14px;
    padding: 16px;
    opacity: 1;
    box-shadow: 0 12px 30px #0007;
}
#jGrowl .jGrowl-notification:has(.sn-cart-notice) { width: min(355px, calc(100vw - 28px)); }
#jGrowl .jGrowl-notification:has(.sn-cart-notice) .jGrowl-header:empty { display: none; }
#jGrowl .jGrowl-notification:has(.sn-cart-notice) h3 { margin: 0; }
@media (max-width: 850px) {
    .sn-cart-layout { grid-template-columns: minmax(0, 1fr); }
    .sn-cart-modern .cart-total { grid-area: auto; position: static; }
}
@media (max-width: 720px) {
    .sn-cart-modern .sn-cart-mobile-label { display: block; color: var(--cart-muted); font-size: 12px; font-weight: 600; }
    .sn-cart-modern div.cart-info { border: 0; overflow: visible; }
    .sn-cart-modern .cart-info thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .sn-cart-modern .cart-info table, .sn-cart-modern .cart-info tbody { display: block; }
    .sn-cart-modern .cart-info tbody tr {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr) auto;
        padding: 12px;
        gap: 6px 10px;
        border: 1px solid var(--cart-border);
        border-radius: 13px;
        margin-bottom: 10px;
        background: var(--cart-panel);
    }
    .sn-cart-modern .cart-info .table td { padding: 4px 0; border: 0; text-align: start; }
    .sn-cart-modern .cart-info .image { grid-area: 1 / 1 / span 2; }
    .sn-cart-modern .cart-info .name { grid-area: 1 / 2 / auto / 4; }
    .sn-cart-modern .cart-info .quantity { grid-area: 3 / 1 / auto / 3; }
    .sn-cart-modern .cart-info .remove { grid-area: 2 / 2; }
    .sn-cart-modern .cart-info .total { grid-area: 3 / 3; align-self: center; text-align: end; }
    .sn-cart-modern .cart-info .table td.product_price {
        grid-area: 2 / 3;
        width: auto;
        min-width: 0;
        padding-block: 4px;
        text-align: end;
    }
    .sn-cart-modern .cart-info td[colspan] { grid-column: 1 / -1; }
}
