/* =========================
   MINI CART  -  drawer panel
   Scoped to .mc-cart-panel__items so WC's output doesn't bleed
   into sidebar widgets or other mini-cart contexts.
========================= */

.mc-cart-panel__items {
  margin-top: 0.25rem;
}

/* UL container */
.mc-cart-panel__items .woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- Each cart item ---- */

.mc-cart-panel__items .woocommerce-mini-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "link remove"
    "qty  qty";
  column-gap: 0.5rem;
  row-gap: 0.35rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  list-style: none;
}

/* Product link (thumbnail + name) */
.mc-cart-panel__items .woocommerce-mini-cart-item > a:not(.remove_from_cart_button) {
  grid-area: link;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mc-white);
  text-decoration: none;
  transition: color 160ms ease;
}

.mc-cart-panel__items .woocommerce-mini-cart-item > a:not(.remove_from_cart_button):hover {
  color: var(--mc-green);
}

.mc-cart-panel__items .woocommerce-mini-cart-item img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

/* Remove button */
.mc-cart-panel__items .remove_from_cart_button {
  grid-area: remove;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.mc-cart-panel__items .remove_from_cart_button:hover {
  background: rgba(255, 80, 80, 0.18);
  color: #ff6b6b;
}

.mc-cart-panel__items .remove_from_cart_button:focus-visible {
  outline: 2px solid var(--mc-green);
  outline-offset: 2px;
}

/* Quantity x price */
.mc-cart-panel__items .quantity {
  grid-area: qty;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.mc-cart-panel__items .woocommerce-Price-amount {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Subtotal row ---- */

.mc-cart-panel__items .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.mc-cart-panel__items .woocommerce-mini-cart__total strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.mc-cart-panel__items .woocommerce-mini-cart__total .woocommerce-Price-amount {
  color: var(--mc-white);
  font-size: 1rem;
}

/* ---- WC's built-in checkout buttons  -  replaced by .mc-cart-panel__actions ---- */

.mc-cart-panel__items .woocommerce-mini-cart__buttons {
  display: none;
}

/* ---- Empty state ---- */

.mc-cart-panel__items .woocommerce-mini-cart__empty-message {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.mc-cart-panel__empty {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ---- Action buttons (Checkout / View Cart) ---- */

.mc-cart-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.25rem;
}

.mc-cart-panel__actions .mc-btn {
  width: 100%;
  min-height: 48px;
}
