.ridan-cart-drawer { position: fixed; inset: 0 0 0 auto; width: 450px; max-width: 100%; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: #333; background: #fff; box-shadow: -5px 0 25px rgb(0 0 0 / .15); transform: translateX(100%); transition: transform .32s cubic-bezier(.22, .61, .36, 1); }
.ridan-cart-drawer[open] { display: flex; flex-direction: column; }
.ridan-cart-drawer.is-visible { transform: translateX(0); }
.ridan-cart-drawer::backdrop { background: rgb(0 0 0 / .65); opacity: 0; transition: opacity .32s ease; }
.ridan-cart-drawer.is-visible::backdrop { opacity: 1; }
body.ridan-cart-open { overflow: hidden; }
.add_to_cart_button[aria-busy="true"] { opacity: .6; pointer-events: none; }
.ridan-cart-drawer-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 15px; padding: 24px 20px; border-bottom: 1px solid #e5e5e5; }
.ridan-cart-drawer-heading h2 { margin: 0; font-size: 24px; font-weight: 500; }
.ridan-cart-drawer-heading button { display: flex; align-items: center; gap: 8px; min-height: 0; padding: 0; border: 0; background: none; color: #333; font-size: 14px; font-weight: 600; text-transform: none; }
.ridan-cart-drawer-heading button span { font-size: 28px; font-weight: 300; line-height: 1; }
.ridan-cart-drawer-content { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.ridan-cart-drawer-notice { flex-shrink: 0; margin: 0; padding: 15px 20px; border-left: 3px solid #b6000f; color: #b6000f; background: #fff5f5; font-size: 14px; }
.ridan-cart-drawer-notice[hidden] { display: none; }
.ridan-cart-drawer-items { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ridan-cart-mini-item { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) 18px; align-items: start; gap: 15px; padding: 24px 20px; border-bottom: 1px solid #e5e5e5; }
.ridan-cart-mini-image { display: block; aspect-ratio: 1; }
.ridan-cart-mini-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ridan-cart-item-title { color: #333; line-height: 1.45; overflow-wrap: anywhere; }
.ridan-cart-item-title:hover { color: #b6000f; }
.ridan-cart-mini-info { min-width: 0; font-size: 15px; }
.ridan-cart-sku { margin: 12px 0 8px; color: #808080; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ridan-cart-sku strong { color: #333; font-weight: 600; }
.ridan-cart-mini-price { margin: 0; color: #999; font-size: 14px; }
.ridan-cart-mini-price strong, .ridan-cart-subtotal > strong:last-child { color: #28348a; }
.ridan-cart-remove { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 24px; min-width: 24px; height: 28px; min-height: 0; padding: 0; border: 0; color: #555; background: transparent; box-shadow: none; font-size: 24px; font-weight: 300; line-height: 1; }
.ridan-cart-remove:hover { color: #b6000f; background: transparent; }
.ridan-cart-drawer-footer { flex: 0 0 auto; padding: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); border-top: 1px solid #e5e5e5; }
.ridan-cart-subtotal { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 22px; font-size: 20px; }
.ridan-cart-subtotal strong:last-child { text-align: right; }
.ridan-cart-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 14px 20px; border: 0; border-radius: 0; color: #fff; background: #b6000f; box-shadow: none; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.ridan-cart-button:hover { color: #fff; background: #92000c; }
.ridan-cart-button-secondary { margin-bottom: 12px; color: #333; background: #f5f5f5; }
.ridan-cart-button-secondary:hover { color: #333; background: #eaeaea; }
.ridan-cart-button:disabled { opacity: .5; cursor: wait; }
.ridan-cart-empty { width: 100%; margin: auto; padding: 60px 20px; text-align: center; }
.ridan-cart-empty > i { display: block; margin-bottom: 25px; color: #ddd; font-size: 65px; }
.ridan-cart-empty h1, .ridan-cart-empty h2 { font-size: 25px; }
.ridan-cart-empty .ridan-cart-button { width: fit-content; margin: 25px auto 0; }
.ridan-cart-notice { position: fixed; z-index: 1000000; right: 20px; bottom: 24px; max-width: min(420px, calc(100% - 40px)); padding: 16px 22px; border-left: 4px solid #b6000f; color: #333; background: #fff; box-shadow: 0 3px 24px rgb(0 0 0 / .2); }
.ridan-cart-notice[hidden] { display: none; }
@media (max-width: 420px) {
    .ridan-cart-mini-item { grid-template-columns: 65px minmax(0, 1fr) 18px; gap: 12px; padding: 20px 15px; }
    .ridan-cart-mini-info { font-size: 14px; }
    .ridan-cart-drawer-heading, .ridan-cart-drawer-footer { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .ridan-cart-drawer, .ridan-cart-drawer::backdrop { transition: none; }
}
