.fmc-cart-toggle,
.fmc-flyout button,
.fmc-flyout input {
  font: inherit;
}

.fmc-no-scroll {
  overflow: hidden;
}

/* Toggle button */
.fmc-cart-toggle {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 999991;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.product-footer .fmc-cart-toggle {
	bottom: 100px;
}

.woocommerce-cart .fmc-cart-toggle, .woocommerce-checkout .fmc-cart-toggle{
	display: none;
}

.fmc-cart-toggle__count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.15);
}

/* Overlay */
.fmc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999993;
  opacity: 0;
  transition: opacity 220ms ease;
}
.fmc-overlay.is-visible { opacity: 1; }

/* Flyout panel */
.fmc-flyout {
  position: fixed;
  top: 50px;
  right: 1rem;
  height: calc(100% - 100px);
  width: min(420px, 92vw);
  background: #fff;
  z-index: 999994;
  transform: translateX(calc(105% + 1rem));
  transition: transform 240ms ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.18);
  border-radius: 18px;
  overflow: hidden; /* keeps rounded corners clean */
}

.fmc-flyout.is-open { transform: translateX(0); }

.fmc-flyout__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.fmc-flyout__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
	font-weight: 900;
}

.fmc-flyout__close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

/* This wrapper now holds scroll body + sticky footer */
.fmc-flyout__content {
  display: flex;
  flex-direction: column;
  min-height: 0; /* critical for flex scroll areas */
  flex: 1;
}

/* Mini cart container */
.fmc-mini-cart {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

/* Scroll body */
.fmc-mini-cart__body {
  padding: 16px;
  overflow: auto;
  flex: 1;
}

.woocommerce-page .fmc-mini-cart__body ul.product_list_widget li::before {
    content: " ";
    display: none!important;
}

/* Sticky footer */
.fmc-mini-cart__footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 12px 16px;
  box-shadow: 0 -8px 18px rgba(0,0,0,0.06);
}

.fmc-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fmc-subtotal__label { opacity: 0.8; }
.fmc-subtotal__value { font-weight: 600; }

/* Items layout */
.fmc-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.fmc-item__thumb img {
  width: 64px;
  height: auto!important;
  display: block;
  border-radius: 10px;
}

.fmc-mini-cart__body ul{
	padding-left:0;
}

.fmc-item__top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.fmc-item__name {
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
}

.fmc-item__remove {
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
}

.fmc-item__price {
  margin-top: 6px;
  opacity: 0.9;
}

/* Qty controls */
.fmc-qty {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 32px 64px 32px 1fr;
  gap: 8px;
  align-items: center;
}

.fmc-qty__btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  cursor: pointer;
}

.fmc-qty__input {
  width: 64px;
  height: 32px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
}

.fmc-item__line {
  justify-self: end;
  font-weight: 600;
}

/* Visual “busy” state while updating */
.fmc-item.is-updating {
  opacity: 0.6;
  pointer-events: none;
}

/* Buttons spacing */
.fmc-mini-cart__footer .woocommerce-mini-cart__buttons a {
  display: inline-block;
  margin-right: 0;
  margin-bottom: 0;
}


.fmc-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fmc-btn {
  /*display: flex !important;*/
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px !important;
}

.fmc-btn__meta {
  font-weight: 700;
  white-space: nowrap;
}
