.ww-fmc {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: inherit;
}

.ww-fmc-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wwfk-accent, #2a7be4);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: var(--wwfk-shadow-soft, 0 10px 30px rgba(17, 24, 39, 0.06));
  cursor: pointer;
}

.ww-fmc-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.ww-fmc-fab-count {
  background: #fff;
  color: var(--wwfk-accent, #2a7be4);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.ww-fmc-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 120% at 80% 20%, rgba(42, 123, 228, 0.22) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.7) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ww-fmc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--wwfk-card-bg, #fff);
  border-left: 1px solid var(--wwfk-border, #e5e7eb);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.08);
}

.ww-fmc.is-open .ww-fmc-backdrop {
  opacity: 1;
  pointer-events: all;
}

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

.ww-fmc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wwfk-border, #e5e7eb);
}

.ww-fmc-title {
  font-size: var(--wwfk-font-title, 16px);
  font-weight: 600;
  color: var(--wwfk-text-primary, #111827);
}

.ww-fmc-badge {
  margin-left: auto;
  background: var(--wwfk-soft, #e8e8e8);
  color: var(--wwfk-text-primary, #111827);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.ww-fmc-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--wwfk-text-muted, #6b7280);
}

.ww-fmc-free {
  margin: 12px 0;
}

.ww-fmc-free-text {
  font-size: 13px;
  color: var(--wwfk-text-muted, #6b7280);
  margin-bottom: 6px;
}

.ww-fmc-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--wwfk-soft, #e8e8e8);
  overflow: hidden;
}

.ww-fmc-progress-fill {
  height: 100%;
  background: var(--wwfk-accent, #2a7be4);
  width: 0;
  transition: width 0.2s ease;
}

.ww-fmc-items {
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 8px;
}

.ww-fmc-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--wwfk-border, #e5e7eb);
  padding-bottom: 12px;
  position: relative;
}

.ww-fmc-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--wwfk-soft, #e8e8e8);
  object-fit: cover;
}

.ww-fmc-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wwfk-text-primary, #111827);
}


.ww-fmc-item-sub {
  display:none;
}

.ww-fmc-item-sub,
.ww-fmc-item-total {
  font-size: 12px;
  color: var(--wwfk-accent, #2a7be4);
}

.ww-fmc-item-total {
  text-align: right;
}

.wwfk-summary-chips.ww-fmc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 2px;
}

.wwfk-chip {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--wwfk-border, #e5e7eb);
  background: var(--wwfk-soft, #e8e8e8);
  font-size: 12px;
  color: var(--wwfk-text-primary, #111827);
}

.ww-fmc-qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1px solid var(--wwfk-border, #e5e7eb);
  border-radius: 24px;
  padding: 6px 6px;
  font-size: 12px;
  margin-top:6px;
  
}

.ww-fmc-qty button {
  border: 1px solid var(--wwfk-border, #e5e7eb);
  background: #fff;
  color: var(--wwfk-text-primary, #111827);
  border-radius: 100%;
  padding: 2px 6px;
  font-weight: 600;
  cursor: pointer;
}

.ww-fmc-remove {
  border: none;
  background: transparent;
  color: var(--wwfk-text-muted, #6b7280);
  cursor: pointer;
}

.ww-fmc-item-spinner {
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--wwfk-border, #e5e7eb);
  border-top-color: var(--wwfk-accent, #2a7be4);
  display: none;
  animation: ww-fmc-spin 0.8s linear infinite;
}

.ww-fmc-item.is-loading {
  opacity: 0.6;
}

.ww-fmc-item.is-loading .ww-fmc-item-spinner {
  display: block;
}

@keyframes ww-fmc-spin {
  to { transform: rotate(360deg); }
}

.ww-fmc-coupon {
  border-top: 1px solid var(--wwfk-border, #e5e7eb);
  padding-top: 12px;
}

.ww-fmc-coupon-toggle,
.ww-fmc-link {
  border: none;
  background: transparent;
  color: var(--wwfk-accent, #2a7be4);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom:12px;
}

.ww-fmc-coupon-panel,
.ww-fmc-address {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.ww-fmc-coupon-panel[hidden],
.ww-fmc-address[hidden] {
  display: none !important;
}

.ww-fmc-coupon-list {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.ww-fmc-coupon-row {
  font-size: 12px;
}

.ww-fmc-input {
  border: 1px solid var(--wwfk-border, #e5e7eb);
  border-radius: var(--wwfk-radius, 10px);
  padding: 8px 10px;
  font-size: 14px;
}

.ww-fmc-btn {
  border: 1px solid var(--wwfk-border, #e5e7eb);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.ww-fmc-btn-primary {
  display: inline-block;
  text-align: center;
  background: var(--wwfk-accent, #2a7be4);
  color: #fff;
  border-color: var(--wwfk-accent, #2a7be4);
  width: 100%;
  text-decoration: none;
}

.ww-fmc-totals {
  border-top: 1px solid var(--wwfk-border, #e5e7eb);
  padding-top: 12px;
  display: grid;
  gap: 6px;
}

.ww-fmc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--wwfk-text-muted, #6b7280);
}

.ww-fmc-total {
  font-weight: 700;
  color: var(    --wwfk-accent, #2a7be4);
  font-size: 14px;
}

.ww-fmc-footer {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .ww-fmc-drawer {
    width: 100vw;
  }
}
