/* Global reset for calculator area */
body {
  background: white!important;
  color: black!important;
}

p {
  color: black!important;
}

/* -----------------------------------
   WRAPPER
----------------------------------- */
.fc-wrap {
  padding: 40px 0;
}

.fc-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: flex-start; /* do not force equal height */
}

/* -----------------------------------
   COLUMN HEADINGS (Rooms, Items)
----------------------------------- */
.fc-col-title {
  margin: 0;
  padding: 4px 0 12px 4px; /* Aligns headings with content */
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* -----------------------------------
   LEFT COLUMN: ROOMS
----------------------------------- */
.fc-rooms {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 12px;
  overflow: visible;  /* no scroll */
}

.fc-rooms-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-room-nav {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  transition: background 0.15s ease;
}

.fc-room-nav + .fc-room-nav {
  margin-top: 6px;
}

.fc-room-nav.is-active {
  background: #e1edff;
}

.fc-room-name {
  font-weight: 600;
}

.fc-room-m3 {
  font-size: 12px;
  color: #3366ff;
}

/* -----------------------------------
   MIDDLE COLUMN: ITEMS
----------------------------------- */
.fc-items {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #eee;
  display: flex;
  flex-direction: column;
  overflow: visible; /* parent does not scroll */
}

/* Panels for each room */
.fc-room-panel {
  display: none;
  padding: 0 16px 16px;
  flex: 1;
  min-height: 0;
}

.fc-room-panel.is-active {
  display: flex;
  flex-direction: column;
}

/* Scrollable item list */
.fc-item-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  border-top: 1px solid #eee;
  margin-top: 8px;
}

/* Scrollbar styling (optional subtle design) */
.fc-item-list::-webkit-scrollbar {
  width: 8px;
}

.fc-item-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Item rows */
.fc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
}

.fc-item-name {
  flex: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Per-item subtotal text */
.fc-item-subtotal {
  font-size: 12px;
  color: #666;
}

/* -----------------------------------
   QUANTITY INPUT + BUTTONS
----------------------------------- */
.fc-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Remove browser input arrows */
.fc-qty-input::-webkit-outer-spin-button,
.fc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.fc-qty-input[type="number"] {
  -moz-appearance: textfield;
}

.fc-qty-input {
  width: 44px;
  text-align: center;
  padding: 4px;
  font-size: 14px;
  color: black!important;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Black round + and – buttons */
.fc-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #000;
  background: #000;
  color: #fff!important;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.fc-qty-btn:hover {
  background: #222;
}

/* -----------------------------------
   RIGHT COLUMN: SUMMARY
----------------------------------- */
.fc-summary {
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 0 0 1px #eee;
  display: flex;
  flex-direction: column;
}

.fc-summary h2 {
  margin-top: 0;
}

.fc-summary-total {
  margin: 16px 0;
}

.fc-summary-label {
  font-size: 14px;
  color: #666;
}

.fc-summary-value {
  font-size: 24px;
  font-weight: 700;
}

/* Summary button */
.fc-btn-primary {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  background: #d8372a;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 8px;
  font-size: 16px;
}

.fc-btn-primary:hover {
  background: #c03024;
}

/* -----------------------------------
   MOBILE RESPONSIVE
----------------------------------- */
@media (max-width: 900px) {
  .fc-inner {
    grid-template-columns: 1fr;
  }

  .fc-items,
  .fc-summary {
    overflow: visible;
  }

  /* Scroll only items list on mobile too */
  .fc-item-list {
    max-height: 300px;
  }
}

/* Wrapper for icon + tooltip */
.fc-info-wrap {
  position: relative;
}

/* Info icon circle */
.fc-info-icon {
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0057ff;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Hover */
.fc-info-icon:hover {
  background: #003dcc;
}

/* Tooltip */
.fc-tooltip {
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.fc-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

/* Show tooltip on hover */
.fc-info-wrap:hover .fc-tooltip {
  opacity: 1;
}