/* =====================================================
   NITPOS - Carrito y Checkout Styles
   ===================================================== */

/* Modal Overlay */
.checkout-modal-overlay{
  position:fixed;
  inset:0;
  z-index:2000;
  background:rgba(15,23,42,.85);
  backdrop-filter:blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

/* Carrito flotante */
.cart-float{
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--c-blue);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26,86,219,.4);
  cursor: pointer;
  z-index: 1000;
  transition: all .3s;
  font-size: 1.4rem;
}
.cart-float:hover{
  transform: scale(1.1);
  background: var(--c-blue-h);
}
.cart-float .cart-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--c-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checkout Modal */
.checkout-modal{
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}

.checkout-header{
  background: linear-gradient(135deg,#0f172a,#1e293b);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-header h2{
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
}
.close-checkout{
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  transition: all .2s;
}
.close-checkout:hover{
  background: rgba(255,255,255,0.2);
}

.checkout-summary{
  background: linear-gradient(90deg,#059669,#10b981);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
.checkout-summary strong{
  font-size: 1.8rem;
  color: #fff;
  font-weight: 900;
}

.checkout-form{
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkout-errors{
  background: #FEF2F2;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .85rem;
  display: none;
  border: 1px solid #FECACA;
}

.checkout-form .form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-form .form-group{
  margin-bottom: 0;
}

.checkout-form label{
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"]{
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all .2s;
  box-sizing: border-box;
}
.checkout-form input:focus{
  border-color: var(--c-blue);
  outline: none;
}

.pago-opts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pago-btn{
  padding: 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: #374151;
  transition: all .2s;
}
.pago-btn:hover{
  border-color: var(--c-blue);
}

.pago-info{
  background: linear-gradient(135deg,#ecfdf5,#d1fae5);
  padding: 20px;
  border-radius: 14px;
  border: 2px solid #10b981;
}
.pago-info-box{
  text-align: center;
}
.pago-info-badge{
  background: #10b981;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}
.pago-info-content{
  color: #047857;
}
.pago-info-content .numero{
  font-size: 2rem;
  font-weight: 900;
  margin: 8px 0;
}
.pago-info-content .nombre{
  font-weight: 600;
  margin-bottom: 8px;
}
.pago-info-content .nota{
  font-size: .85rem;
  color: #065f46;
  padding-top: 12px;
  border-top: 1px dashed #a7f3d0;
  margin-top: 12px;
}

.comprobante-section{
  background: #fef3c7;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #fcd34d;
}
.comprobante-section label{
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}
.comprobante-section input{
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  box-sizing: border-box;
}
.comprobante-section small{
  display: block;
  margin-top: 6px;
  color: #a16207;
  font-size: .8rem;
}

.checkout-form .btn-primary{
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg,#059669,#10b981);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(16,185,129,0.4);
  transition: all .2s;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.checkout-form .btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16,185,129,0.5);
}

/* Responsive */
@media(max-width: 640px){
  .cart-float{
    bottom: 16px;
    right: 16px;
  }
  
  .checkout-form .form-row{
    grid-template-columns: 1fr;
  }
  
  .pago-opts{
    grid-template-columns: 1fr;
  }
}
.cart-float:hover{
  transform: scale(1.1);
  background: var(--c-blue-h);
}
.cart-float .cart-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--c-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Checkout Modal */
.checkout-modal{
  background: #fff;
  border-radius: var(--r-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.checkout-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-gray-100);
  background: linear-gradient(to right, var(--c-blue), #1e40af);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.checkout-header h2{
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.close-checkout{
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.close-checkout:hover{
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.checkout-summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-bottom: 1px solid #bae6fd;
  font-size: .95rem;
}
.checkout-summary strong{
  font-size: 1.3rem;
  color: var(--c-blue);
  font-weight: 800;
}

#checkoutForm{
  padding: 24px;
}

.checkout-errors{
  background: #FEF2F2;
  color: #DC2626;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: .85rem;
  margin-bottom: 16px;
  display: none;
  border: 1px solid #FECACA;
}

.checkout-form .form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-form .form-group{
  margin-bottom: 20px;
}

.checkout-form label{
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-gray-600);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"],
.checkout-form input[type="file"]{
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--c-gray-200);
  border-radius: var(--r-md);
  font-size: .95rem;
  transition: all .25s;
  background: #fafafa;
}

.checkout-form input[type="text"]:focus,
.checkout-form input[type="tel"]:focus,
.checkout-form input[type="email"]:focus,
.checkout-form input[type="file"]:focus{
  border-color: var(--c-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,86,219,.12);
  outline: none;
}

.checkout-form input::placeholder{
  color: var(--c-gray-400);
}

.pago-opts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pago-opt{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border: 2px solid var(--c-gray-200);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .25s;
  font-weight: 600;
  background: #fafafa;
}

.pago-opt:hover{
  border-color: var(--c-blue);
  background: #eff6ff;
}

.pago-opt input:checked + span{
  color: var(--c-blue);
  font-weight: 700;
}
.pago-opt input:checked{
  accent-color: var(--c-blue);
}

.comprobante-section{
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-radius: var(--r-md);
  border: 1px solid #fcd34d;
}
.comprobante-section label{
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}
.comprobante-section input[type="file"]{
  background: #fff;
  padding: 12px;
  border: 2px dashed #d97706;
  border-radius: var(--r-md);
  width: 100%;
}
.comprobante-section small{
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  color: #a16207;
}

/* Order Success */
.order-success{
  text-align: center;
  padding: 48px 24px;
}

.success-icon{
  width: 80px;
  height: 80px;
  background: var(--c-green);
  color: #fff;
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.order-success h2{
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-gray-900);
  margin-bottom: 12px;
}

.order-success p{
  color: var(--c-gray-600);
  margin-bottom: 8px;
}

.order-success .btn{
  margin-top: 24px;
}

/* Cart Items in modal */
.cart-items-list{
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 8px 24px;
  border-bottom: 1px solid var(--c-gray-100);
}

.cart-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.cart-item:last-child{
  border-bottom: none;
}

.cart-item-info{
  flex: 1;
}

.cart-item-name{
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-gray-900);
  line-height: 1.3;
}

.cart-item-price{
  font-size: .9rem;
  color: var(--c-blue);
  font-weight: 700;
  margin-top: 2px;
}

.cart-item-qty{
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border-radius: var(--r-md);
  padding: 4px;
}

.cart-item-qty button{
  width: 32px;
  height: 32px;
  border: none;
  background: #fff;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-gray-700);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all .2s;
}
.cart-item-qty button:hover{
  background: var(--c-blue);
  color: #fff;
  transform: scale(1.05);
}

.cart-item-qty span{
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
}

/* Confirm Order Button */
.checkout-form .btn-primary{
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-blue) 0%, #1e40af 100%);
  color: #fff;
  cursor: pointer;
  transition: all .3s;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.checkout-form .btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,.45);
}
.checkout-form .btn-primary:active{
  transform: translateY(0);
}
.checkout-form .btn-primary:disabled{
  background: var(--c-gray-300);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Empty cart */
.cart-empty{
  text-align: center;
  padding: 40px 20px;
  color: var(--c-gray-400);
}

/* Responsive */
@media(max-width: 640px){
  .cart-float{
    bottom: 16px;
    right: 16px;
  }
  
  .checkout-form .form-row{
    grid-template-columns: 1fr;
  }
}

/* Pago Info Box */
.pago-info{
  margin-bottom: 20px;
}

.pago-btn{
  padding: 12px 24px;
  border: 2px solid var(--c-gray-200);
  background: #fff;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.pago-btn:hover{
  border-color: var(--c-blue);
  background: var(--c-blue-lt);
}

.pago-info-box{
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
}

.pago-info-title{
  font-size: .85rem;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pago-info-number{
  font-size: 1.4rem;
  font-weight: 800;
  color: #047857;
  margin-bottom: 6px;
}

.pago-info-name{
  font-size: 1rem;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #a7f3d0;
}

.pago-info-note{
  font-size: .85rem;
  color: #047857;
  font-style: italic;
}

/* =====================================================
   CART SIDEBAR
   ===================================================== */
.cart-sidebar{
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  overflow: hidden;
}

.cart-sidebar.open{
  right: 0;
}

.cart-sidebar-header{
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-header h3{
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-cart-sidebar{
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-cart-sidebar:hover{
  background: rgba(255,255,255,0.2);
}

.cart-sidebar-items{
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-sidebar-items .cart-empty{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cart-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

.cart-item-info{
  flex: 1;
  min-width: 0;
}

.cart-item-name{
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price{
  display: block;
  font-size: 0.85rem;
  color: #059669;
  font-weight: 700;
  margin-top: 4px;
}

.cart-item-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-qty{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
}

.cart-item-qty .qty-btn{
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #334155;
}

.cart-item-qty .qty-btn:hover{
  background: #e2e8f0;
}

.cart-item-qty span{
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.remove-btn{
  width: 32px;
  height: 32px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.remove-btn:hover{
  background: #fecaca;
  transform: scale(1.05);
}

.cart-sidebar-footer{
  background: #f8fafc;
  padding: 16px 20px;
  border-top: 2px solid #e2e8f0;
}

.cart-subtotal{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.btn-clear-cart{
  width: 100%;
  padding: 10px;
  border: 2px solid #dc2626;
  background: #fff;
  color: #dc2626;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.btn-clear-cart:hover{
  background: #fef2f2;
}

.btn-checkout{
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-checkout:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* =====================================================
   CHECKOUT CART ITEMS
   ===================================================== */
.checkout-cart-items{
  padding: 20px 28px;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.checkout-cart-items h4{
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.checkout-cart-item{
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

.checkout-cart-item:last-child{
  border-bottom: none;
}

.checkout-item-info{
  flex: 1;
  min-width: 0;
}

.checkout-item-name{
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.checkout-item-price{
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.checkout-item-actions{
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-item-subtotal{
  font-weight: 700;
  color: #059669;
  min-width: 80px;
  text-align: right;
}

.checkout-cart-actions{
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-clear-cart-sm{
  padding: 6px 12px;
  border: 1px solid #dc2626;
  background: #fff;
  color: #dc2626;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-clear-cart-sm:hover{
  background: #fef2f2;
}

/* Overlay for sidebar */
.cart-sidebar-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-sidebar-overlay.active{
  opacity: 1;
  pointer-events: all;
}

/* Responsive */
@media(max-width: 640px){
  .cart-sidebar{
    width: 100vw;
    max-width: 100vw;
  }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 5000;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.toast.show{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.info{
  background: #3b82f6;
}

.toast.success{
  background: #10b981;
}

.toast.error{
  background: #ef4444;
}

/* =====================================================
   CHECKOUT MODAL COMPACTO
   ===================================================== */
.checkout-modal-compact{
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}

.checkout-compact-header{
  background: linear-gradient(135deg,#0f172a,#1e293b);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.checkout-compact-header h2{
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.close-checkout-compact{
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.close-checkout-compact:hover{
  background: rgba(255,255,255,0.2);
}

.checkout-cart-list{
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  background: #f8fafc;
  max-height: 50vh;
}

.checkout-cart-row{
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

.checkout-cart-row:last-child{
  border-bottom: none;
}

.checkout-cart-info{
  flex: 1;
  min-width: 0;
}

.checkout-cart-name{
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.checkout-cart-price{
  font-size: 0.8rem;
  color: #64748b;
}

.checkout-cart-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-control-compact{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
}

.qty-control-compact button{
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #334155;
}

.qty-control-compact button:hover{
  background: #e2e8f0;
}

.qty-control-compact span{
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.btn-remove-compact{
  padding: 6px 12px;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-remove-compact:hover{
  background: #fecaca;
}

.checkout-cart-subtotal{
  font-weight: 700;
  color: #059669;
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.checkout-compact-footer{
  background: #fff;
  padding: 20px 24px;
  border-top: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.checkout-total-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}

.btn-clear-compact{
  width: 100%;
  padding: 10px;
  border: 2px solid #dc2626;
  background: #fff;
  color: #dc2626;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.btn-clear-compact:hover{
  background: #fef2f2;
}

.btn-confirm-compact{
  width: 100%;
  padding: 14px;
  border: none;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

.btn-confirm-compact:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16,185,129,0.45);
}

/* Responsive */
@media(max-width: 640px){
  .checkout-modal-compact{
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    position: fixed;
    bottom: 0;
  }
  
  .checkout-cart-row{
    flex-wrap: wrap;
  }
  
  .checkout-cart-subtotal{
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }
}