.rm-desktop-header [data-cart-open] > svg { width: 28px; height: 28px; flex-shrink: 0; }
.rm-cart { display: flex; flex-direction: column; min-height: 0; color: #191d26; background: #fbfcfe; font-size: var(--rm-type-body); line-height: 1.6; }
.rm-cart *, .rm-cart *::before, .rm-cart *::after { box-sizing: border-box; }
.rm-cart [hidden] { display: none !important; }
.rm-cart h2, .rm-cart h3, .rm-cart p { margin: 0; }
.rm-cart button, .rm-cart a, .rm-cart input { font: inherit; }
.rm-cart button { cursor: pointer; }
.rm-cart button:disabled { opacity: .45; cursor: not-allowed; }
.rm-cart button:focus-visible, .rm-cart a:focus-visible, .rm-cart input:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; }
.rm-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #e7ebf3; flex-shrink: 0; }
.rm-cart-heading h2 { display: flex; align-items: center; gap: 10px; font-size: var(--rm-type-section-title); font-weight: 800; }
.rm-cart-count { padding: 2px 10px; border-radius: 99px; background: #eaf1ff; color: #1f54c4; font-size: var(--rm-type-support); }
.rm-cart-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; flex: 0 0 44px; border: 0; border-radius: 10px; color: #6a7383; background: transparent; }
.rm-cart-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.rm-cart-icon-button:hover, .rm-cart-text-button:hover { color: #1f54c4; background: #eaf1ff; }
.rm-cart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 24px; border-bottom: 1px solid #e7ebf3; background: #fff; flex-shrink: 0; }
.rm-cart-text-button { min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #4b5566; font-weight: 650 !important; }
.rm-cart-check-label { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; cursor: pointer; font-weight: 700; }
.rm-cart input[type=checkbox] { appearance: none; width: 20px; height: 20px; margin: 0; flex: 0 0 20px; border: 1.5px solid #9aaac2; border-radius: 6px; background: #fff; cursor: pointer; }
.rm-cart input[type=checkbox]:checked { border-color: #2f6fed; background: #2f6fed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4 10-10' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.rm-cart input[type=checkbox]:indeterminate { border-color: #2f6fed; background: #2f6fed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12h12' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.rm-cart input:disabled { opacity: .5; cursor: not-allowed; }
.rm-cart-content { flex: 1; min-height: 0; padding: 16px 20px 24px; }
.rm-cart-items { display: grid; gap: 12px; }
.rm-cart-item { min-width: 0; padding: 12px 16px 16px; border: 1px solid #cbd8ec; border-radius: 16px; background: #fff; }
.rm-cart-item-main { display: flex; align-items: flex-start; gap: 8px; }
.rm-cart-item-check { flex: 0 0 28px; }
.rm-cart-item-info { flex: 1; min-width: 0; padding-top: 10px; }
.rm-cart-item-info h3 { display: flex; align-items: baseline; gap: 6px; font-size: var(--rm-type-card-title); font-weight: 800; line-height: 1.5; }
.rm-cart-item-info h3 span { min-width: 0; overflow-wrap: anywhere; }
.rm-cart-item-info img { flex: 0 0 24px; width: 24px; height: 18px; object-fit: contain; }
.rm-cart-item-info p { margin: 4px 0 12px; color: #6a7383; font-size: var(--rm-type-support); overflow-wrap: anywhere; }
.rm-cart-item-main > .rm-cart-icon-button { margin-right: -10px; }
.rm-cart-item-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; border-top: 1.5px dashed #cbd8ec; }
.rm-cart-price { font-size: var(--rm-type-card-large, 19px); font-weight: 800; overflow-wrap: anywhere; }
.rm-cart-stepper { display: inline-flex; align-items: center; flex: 0 0 auto; border: 1px solid #cbd8ec; border-radius: 10px; overflow: hidden; }
.rm-cart-stepper button { width: 44px; min-height: 44px; padding: 0; border: 0; color: #2f6fed; background: #fff; font-size: var(--rm-type-card-large, 19px); font-weight: 800; }
.rm-cart-stepper button:hover:not(:disabled) { background: #eaf1ff; }
.rm-cart-stepper output { min-width: 36px; padding: 4px 8px; text-align: center; border-left: 1px solid #dfe6f2; border-right: 1px solid #dfe6f2; font-weight: 750; }
.rm-cart-summary { flex-shrink: 0; padding: 20px 24px max(20px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e7ebf3; }
.rm-cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rm-cart-total > :last-child { color: #1f54c4; font-size: var(--rm-type-price); overflow-wrap: anywhere; }
.rm-cart-buy { width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 99px; color: #fff; background: #2f6fed; font-weight: 800 !important; box-shadow: 0 8px 20px #2f6fed26; }
.rm-cart-buy:hover:not(:disabled) { background: #1f54c4; }
.rm-cart-buy:disabled { box-shadow: none; }
.rm-cart-message { padding: 12px; margin-bottom: 12px; border: 1px solid #d8e4fb; border-radius: 10px; color: #4b5566; background: #f2f6fd; }
.rm-cart-empty { padding: 48px 16px; text-align: center; color: #6a7383; }
.rm-cart-browse { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: #1f54c4; font-weight: 700; text-decoration: underline; }
.rm-cart-dialog { position: fixed; inset: 0 0 0 auto; width: 420px; max-width: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; box-shadow: -24px 0 60px #0b122059; overflow: hidden; }
.rm-cart-dialog[open] { display: flex; }
.rm-cart-dialog .rm-cart { width: 100%; height: 100%; }
.rm-cart-dialog .rm-cart-content { overflow-y: auto; overscroll-behavior: contain; }
.rm-cart-dialog::backdrop { background: #0b12208c; }
html.rm-cart-open { overflow: hidden; scrollbar-gutter: stable; }
.rm-cart-page { max-width: 760px; margin: 0 auto; }
.rm-cart-page .rm-cart { min-height: 65dvh; border: 1px solid #cbd8ec; border-radius: 18px; }
.rm-cart-page .rm-cart-heading { border-radius: 18px 18px 0 0; }
.rm-cart-page .rm-cart-close { display: none; }
.rm-cart-page .rm-cart-summary { position: sticky; bottom: 0; z-index: 2; border-radius: 0 0 18px 18px; }
@media (max-width: 767px) {
    .rm-cart-route .rm-main { padding: 0; }
    .rm-cart-page .rm-cart { border: 0; border-radius: 0; min-height: calc(100dvh - 56px - var(--rm-bottom-nav-height, 0px)); }
    .rm-cart-page .rm-cart-heading { display: none; }
    .rm-cart-page .rm-cart-toolbar { padding: 8px 16px; }
    .rm-cart-content { padding: 12px 16px 20px; }
    .rm-cart-item { padding: 10px 12px 12px; }
    .rm-cart-item-info h3 { font-size: var(--rm-type-card-title); }
    .rm-cart-price { font-size: var(--rm-type-price); }
    .rm-cart-summary { padding: 14px 16px max(14px, env(safe-area-inset-bottom)); }
    .rm-cart-total { margin-bottom: 10px; }
    .rm-cart-page .rm-cart-summary { bottom: var(--rm-bottom-nav-height, 0px); border-radius: 0; }
    .rm-has-bottom-nav:has(> .rm-bottom-nav) .rm-cart-page .rm-cart-summary { padding-bottom: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
    .rm-cart-dialog[open] { animation: rm-cart-enter 280ms cubic-bezier(.32,.72,0,1); }
    @keyframes rm-cart-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
}
@media (forced-colors: active) { .rm-cart input[type=checkbox] { appearance: auto; } }
