/* Floating Corner Menu (Front-End) */
.fcm {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  width: 280px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  overflow: hidden;
}

.fcm__toggle {
  width: 100%;
  border: 0;
  padding: 12px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #00448F;
  color: #FFF;
  font-size: 14px;
  line-height: 1;
}

.fcm__toggleText {
  font-weight: 600;
}

.fcm__chev {
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 180ms ease;
  opacity: 0.9;
}

.fcm__panel {
  background: rgba(255,255,255,0.8);
}

.fcm__buttons {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.fcm__btn {
  display: flex;
  align-items: center;
  justify-content: center; /* center icon+label group */
  gap: 10px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFD900;
  color: #00448F;
  font-size: 14px;
  line-height: 1.2;
  transition: transform 120ms ease, background 120ms ease;
}

.fcm__btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.fcm__btn:focus {
  outline: 2px solid rgba(59, 130, 246, 0.9);
  outline-offset: 2px;
}

/* Icon box: fixed square so it ALWAYS fits and never crops */
.fcm__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* prevents any odd glyph bleed */
}

/* FA icon sizing: make sure it fits exactly in the 18x18 box */
.fcm__icon i {
  font-size: 18px;
  line-height: 1;
  display: block;
  /* Some fonts can visually extend; keep it stable */
  transform: translateZ(0);
}

/* Prevent wrapping; keep one line and ellipsis if needed */
.fcm__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  max-width: calc(100% - 28px); /* icon(18) + gap(10) */
}

/* Collapsed state */
.fcm.is-collapsed .fcm__panel {
  display: none;
}

.fcm.is-collapsed .fcm__chev {
  transform: rotate(-90deg);
}