/**
 * Estilos del sidebar de carrito AJAX.
 * Migrado desde inc/lr-cart-drawer.php (wp_add_inline_style) a archivo real.
 */
.lr-cart-drawer { position: fixed; inset: 0; z-index: 100010; pointer-events: none; overflow: hidden; }
.lr-cart-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.42); opacity: 0; transition: opacity 0.22s ease; }
.lr-cart-drawer__panel { position: absolute; top: 0; right: 0; width: min(420px, 100vw); height: 100%; background: #ffffff; box-shadow: -24px 0 60px rgba(15, 23, 42, 0.22); transform: translateX(105%); transition: transform 0.28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.lr-cart-drawer.is-open { pointer-events: auto; }
.lr-cart-drawer.is-open .lr-cart-drawer__overlay { opacity: 1; }
.lr-cart-drawer.is-open .lr-cart-drawer__panel { transform: translateX(0); }
.lr-cart-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid #e5e7eb; }
.lr-cart-drawer__eyebrow { display: block; color: #6b7280; font-size: 11px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 3px; }
.lr-cart-drawer__header h2 { margin: 0; color: #2a154b; font-size: 24px; font-weight: 900; line-height: 1.1; }
.lr-cart-drawer__close { width: 38px; height: 38px; border: 1px solid #e5e7eb; border-radius: 10px; background: #ffffff; color: #374151; cursor: pointer; }
.lr-cart-drawer__content { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.lr-cart-drawer__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lr-cart-drawer__item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc; animation: lrCartItemIn .28s ease both; }
.lr-cart-drawer__thumb { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 12px; background: #ffffff; border: 1px solid #e5e7eb; overflow: hidden; }
.lr-cart-drawer__thumb img { width: 100%; height: 100%; object-fit: contain; }
.lr-cart-drawer__item-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.lr-cart-drawer__item-title { color: #1f2937; font-size: 13px; font-weight: 800; line-height: 1.3; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-cart-drawer__item-meta { color: #6b7280; font-size: 12px; font-weight: 750; }
.lr-cart-drawer__item-meta .amount { color: #0d6efd; font-weight: 900; }
.lr-cart-drawer__remove { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #ef4444; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .35px; padding: 0; cursor: pointer; }
.lr-cart-drawer__remove[disabled] { opacity: .55; cursor: wait; }
.lr-cart-drawer__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; padding: 16px; border-radius: 14px; background: #2a154b; color: #ffffff; }
.lr-cart-drawer__summary span { font-size: 12px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.lr-cart-drawer__summary strong, .lr-cart-drawer__summary .amount { color: #ffffff; font-size: 17px; font-weight: 900; }
.lr-cart-drawer__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.lr-cart-drawer__cart, .lr-cart-drawer__checkout, .lr-cart-drawer__empty a { display: block; text-align: center; border-radius: 12px; padding: 13px 16px; font-size: 12px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; }
.lr-cart-drawer__cart { background: #f3f4f6; color: #2a154b; }
.lr-cart-drawer__checkout, .lr-cart-drawer__empty a { background: linear-gradient(135deg, #2a154b, #3d1b66); color: #ffffff; box-shadow: 0 12px 28px rgba(42, 21, 75, 0.22); }
.lr-cart-drawer__empty { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; color: #6b7280; }
.lr-cart-drawer__empty i { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(13, 110, 253, 0.10); color: #0d6efd; font-size: 24px; }
.lr-cart-drawer__empty p { margin: 0; font-weight: 800; }
body.lr-cart-drawer-open { overflow: hidden; }
@keyframes lrCartItemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) { .lr-cart-drawer__panel { width: 100vw; } .lr-cart-drawer__header { padding: 20px; } }
