/* ───────────────── sidebar shell ───────────────── */
.summary-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 340px; /* ≈ 20 rem  */
  max-width: 90%;
  background: #fff;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  z-index: 1040;

  /* hidden by default */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* visible state */
.summary-sidebar.show {
  transform: translateX(0);
  opacity: 1;
}

/* internal card should fill height & lose border radius */
/* .summary-sidebar .card {
  height: 100%;
  border-radius: 0;
  margin: 0;
} */
.summary-sidebar .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0;
}

.card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #dee2e6;
}

/* lock body scroll when sidebar is open */
body.sb-open {
  overflow: hidden;
}

/* close-button styling (optional) */
#closeSummaryBtn {
  font-size: 22px;
  line-height: 1;
  color: rgb(255, 255, 255);
}
#closeSummaryBtn:hover {
  background: red !important;
  color: #fff !important;
}

/* remove button */

.remove-circle {
  position: absolute;
  left: -13px;
  top: 20%;
  transform: translateY(-50%);
  background-color: #dc3545;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.remove-circle:hover {
  background-color: #bd2130;
}
