/* Extracted from shopping-cart.html */
/* === Modern Cart Page Enhancements === */

/* Smooth transitions for everything */
* {
  transition: all 0.3s ease-in-out;
}

/* Glass-style card look */
.cart-item.card,
.cart-summary-card.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Headings */
h4.mb-30,
h5.cart-item__title,
h5.card-title {
  color: #002B5B;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Quantity input styling (kept for future use) */
.quantity__input-wrap {
  background: #f3f8ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
}

.quantity__input-wrap input {
  width: 45px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 600;
}

.quantity__input-wrap i {
  cursor: pointer;
  color: #007BFF;
}

.quantity__input-wrap i:hover {
  color: #00BFFF;
}

/* Proceed to Checkout button — solid dark blue with black shadow */
.btn__primary {
  background-color: #01244a;
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.btn__primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Coupon input improvement */
.input-group input {
  border-radius: 30px 0 0 30px;
  border: 1px solid #cde0ff;
  padding-left: 20px;
}

.input-group-append .btn {
  border-radius: 0 30px 30px 0;
}

/* Hover effect on cart cards */
.cart-item.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
}

/* Fade-in animation for totals */
#cart-subtotal,
#cart-total {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust badges spacing */
.payment-icons i {
  opacity: 0.8;
}

.payment-icons i:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive checkout button (mobile floating) */
@media (max-width: 768px) {
  .btn__primary.btn__block {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 999;
    height: 50px;
  }

  .payment-icons {
    margin-top: 3rem;
  }
}

/* Modern rental meta styling */
.cart-rate-pill {
  background: #f3f8ff;
  color: #01244a;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0, 36, 74, 0.08);
}

.cart-rate-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  opacity: 0.7;
  margin-right: 6px;
}

.cart-rate-value {
  font-size: 13px;
}

.cart-qty-pill {
  background: #fee023;
  color: #01244a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.cart-item__period i {
  font-size: 13px;
}

.cart-item__total-label {
  letter-spacing: 0.08em;
}

.cart-item__breakdown {
  white-space: nowrap;
}

/* Mobile: Move Continue Shopping button above Your Cart header */
@media (max-width: 991px) {
  .col-lg-8 {
    display: flex;
    flex-direction: column;
  }

  .col-lg-8 h4 {
    order: 2;
  }

  .col-lg-8 #cartList {
    order: 3;
  }

  .col-lg-8 .btn__link {
    order: 1;
    justify-content: center;
    margin-bottom: 1rem;
  }
}

label.text-muted.fz-13{
  margin-bottom: 0;
}

input.form-control.rental-days-input, input.form-control.quantity-input{
  height: 25px;
  /* quick workaround to align with quantity input */
  padding-left: 3rem;
  padding-right: 0;
}

i.far.fa-calendar-alt.mr-5, i.fas.fa-times.mr-5{
  margin-right: 0.5rem !important;
}

.apply-btn {
  background-color: #fee023;
  color: #063464;
}

.apply-btn:hover {
  transform: translateY(0);
}

.back-btn {
  transition: all 0.3s ease-in-out;
  background-color: #fee023;
  color: #063464;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 16px;
}

ol.breadcrumb.justify-content-center.mb-0{
    justify-content: flex-start;
}
/* CART ITEM */

.cart-item__icon {
  align-self: center;
}

.cart-item__icon img {
  width: 100px;
  height: 100px;
  border-radius: 16px; 
  object-fit: contain;
}

.control-row .quantity-input-container {
  display: flex;
  align-items: center;
}

.control-row .quantity-input-container input {
  width: 2.5rem; 
  display: inline-block; 
  font-size: 13px; 
  padding: 4px 8px;
  background: none;
  border: 2px solid #eef3fa;
  text-align: center;
}

/* Remove number spinner up/down arrows so they don't cause blank overlapping space */
.control-row .quantity-input-container input[type=number],
.control-row .quantity-input-container input[type=number]::-webkit-inner-spin-button,
.control-row .quantity-input-container input[type=number]::-webkit-outer-spin-button {
  -moz-appearance: textfield;
  -webkit-appearance: none;
  margin: 0;
}

.control-row .quantity-input-container button {
  min-width: unset;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0 4px;
  background-color: #eef3fa;
}

.cart-item__total-section {  
  display: flex;
  flex-direction: column;
  text-align: right;
}

.cart-item__total-details {
  display: flex;
  flex-direction: column;
}

.cart-item__remove {
  padding: 0;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid;    
  text-decoration: none !important;
}

/* Mobile layout */
@media (max-width: 768px) {
  .card-body {
    flex-direction: column;
  }

  .card-body .top-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
  }

  .cart-item__title {
    margin-top: 10px; /* match with margin-bottom */
  }

  .cart-item__icon {
    margin: 0 !important;
  }

  .cart-item__total-section {
    width: 100%;
    flex-direction: row;
    align-items: center;
  }

  .cart-item__remove {
    width: 100%;
    text-align: center;
    order: -1;
    height: 3rem;
    border: 1px solid;
    margin-right: 1rem;
  }
}