/* CMT Power — Project Enquiry Basket */

/* ── Floating trigger button ── */
.cmt-basket-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #002747;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px 12px 16px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,39,71,.35);
  transition: background .2s, transform .2s;
}
.cmt-basket-trigger:hover { background: #468eb7; transform: translateY(-2px); }
.cmt-basket-trigger__badge {
  background: #468eb7;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmt-basket-trigger.cmt-hidden { display: none !important; }

/* ── Slide-out panel ── */
.cmt-basket-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  transition: right .3s ease;
  font-family: "IBM Plex Sans", sans-serif;
}
.cmt-basket-panel.cmt-panel-open { right: 0; }

.cmt-basket-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9997;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.cmt-basket-overlay.cmt-panel-open { opacity: 1; pointer-events: all; }

/* Panel header */
.cmt-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #002747;
  color: #fff;
  flex-shrink: 0;
}
.cmt-panel-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.cmt-panel-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: .8;
  transition: opacity .15s;
}
.cmt-panel-close:hover { opacity: 1; }

/* Item list */
.cmt-basket-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.cmt-basket-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  text-align: center;
  padding: 40px 24px;
  gap: 12px;
}
.cmt-basket-empty p { margin: 0; font-size: 14px; line-height: 1.5; }

.cmt-basket-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background .15s;
}
.cmt-basket-item:hover { background: #f9fafb; }
.cmt-basket-item__icon {
  width: 36px;
  height: 36px;
  background: #f0f5fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #002747;
}
.cmt-basket-item__body { flex: 1; min-width: 0; }
.cmt-basket-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #002747;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmt-basket-item__meta { font-size: 12px; color: #6b7280; margin: 0; }
.cmt-basket-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #d1d5db;
  flex-shrink: 0;
  transition: color .15s;
  display: flex;
  align-items: center;
}
.cmt-basket-item__remove:hover { color: #ef4444; }

/* Panel footer */
.cmt-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cmt-panel-footer__count {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.cmt-btn-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 4px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  width: 100%;
  box-sizing: border-box;
  transition: all .2s;
}
.cmt-btn-primary { background: #002747; color: #fff; border-color: #002747; }
.cmt-btn-primary:hover { background: #fff; color: #002747; }
.cmt-btn-ghost { background: transparent; color: #002747; border-color: #d1d5db; }
.cmt-btn-ghost:hover { border-color: #002747; }
.cmt-btn-full:disabled { opacity: .5; pointer-events: none; }

/* Toast */
.cmt-toast {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 10000;
  background: #002747;
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: 280px;
}
.cmt-toast.cmt-toast-show { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 480px) {
  .cmt-basket-panel { width: 100vw; right: -100vw; }
  .cmt-basket-trigger { bottom: 16px; right: 16px; padding: 11px 16px 11px 13px; font-size: 13px; }
}
