/* Scoped multi-item enquiry cart styles (.fdp-ec-*) */

body.fdp-ec-has-items {
  padding-bottom: 92px;
}

@media (max-width: 639px) {
  body.fdp-ec-has-items {
    padding-bottom: 136px;
  }
}

/* Item-level Add to Enquiry toggle button */
.fdp-ec-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.fdp-ec-item-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.fdp-ec-item-btn.is-selected {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
}

.fdp-ec-item-btn.is-selected:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.75);
  color: #a7f3d0;
}

.fdp-ec-item-btn--sm {
  padding: 4px 10px;
  font-size: 11px;
  gap: 4px;
}

.fdp-ec-item-btn--lg {
  padding: 12px 22px;
  font-size: 14px;
  gap: 8px;
}

.fdp-ec-item-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

/* Floating bottom bar & drawer container */
.fdp-ec-root[hidden],
.fdp-ec-drawer[hidden] {
  display: none !important;
}

.fdp-ec-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0 12px max(12px, env(safe-area-inset-bottom));
  pointer-events: none;
  box-sizing: border-box;
}

.fdp-ec-root *,
.fdp-ec-root *::before,
.fdp-ec-root *::after {
  box-sizing: border-box;
}

.fdp-ec-container {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

/* Slide-up review drawer */
.fdp-ec-drawer {
  background: rgba(13, 19, 33, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  overflow: hidden;
  color: #f8fafc;
}

.fdp-ec-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.7);
}

.fdp-ec-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fdp-ec-drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.fdp-ec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fdp-ec-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fdp-ec-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.fdp-ec-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: min(44vh, 320px);
  overflow-y: auto;
}

.fdp-ec-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.fdp-ec-list-item:last-child {
  border-bottom: none;
}

.fdp-ec-list-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  color: #f1f5f9;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}

.fdp-ec-list-num {
  color: #38bdf8;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.fdp-ec-remove-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #fda4af;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fdp-ec-remove-btn:hover {
  background: rgba(244, 63, 94, 0.28);
  color: #ffffff;
}

/* Floating Bottom Bar */
.fdp-ec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 20px;
  background: rgba(13, 19, 33, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  color: #f8fafc;
}

.fdp-ec-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.fdp-ec-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  flex-shrink: 0;
}

.fdp-ec-count-text {
  font-size: 13px;
  color: #cbd5e1;
  white-space: nowrap;
}

.fdp-ec-count-text strong {
  color: #ffffff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.fdp-ec-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fdp-ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.fdp-ec-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
}

.fdp-ec-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.fdp-ec-btn--ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.fdp-ec-btn--ghost:hover {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.fdp-ec-btn--whatsapp {
  background: linear-gradient(135deg, #059669, #10b981);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.fdp-ec-btn--whatsapp:hover {
  background: linear-gradient(135deg, #047857, #059669);
}

@media (max-width: 639px) {
  .fdp-ec-root {
    padding: 0 10px max(10px, env(safe-area-inset-bottom));
  }

  .fdp-ec-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .fdp-ec-summary {
    justify-content: center;
  }

  .fdp-ec-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .fdp-ec-btn--whatsapp {
    grid-column: 1 / -1;
    min-height: 42px;
    font-size: 13px;
  }
}
