.chat-bubble {
  background-color: #E6F8F1;
  padding: 16px 28px;
  -webkit-border-radius: 20px;
  -webkit-border-bottom-left-radius: 2px;
  -moz-border-radius: 20px;
  -moz-border-radius-bottomleft: 2px;
  border-radius: 20px;
  border-bottom-left-radius: 2px;
  display: inline-block;
}

.typing {
  align-items: center;
  display: flex;
  height: 17px;
}

.typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: #6CAD96;
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}

.typing .dot:nth-child(1) {
  animation-delay: 200ms;
}

.typing .dot:nth-child(2) {
  animation-delay: 300ms;
}

.typing .dot:nth-child(3) {
  animation-delay: 400ms;
}

.typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color: #6CAD96;
  }
  28% {
    transform: translateY(-7px);
    background-color: #9ECAB9;
  }
  44% {
    transform: translateY(0px);
    background-color: #B5D9CB;
  }
}

#fakechat {
  position: fixed;
  bottom: 20px;
}

body {
  overflow-y: scroll;
}

.player-level-form-container form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.player-level-form-container form label {
  margin: 0;
}

#cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  opacity: 0.8;
  padding: 15px 20px;
  z-index: 20000;
  text-align: center;
  color: #fff;
}

.copyable {
  cursor: pointer;
}

/* Forge calculator: column panels, replacing bare <h5>/<p> headers
   with a clearer visual unit. Bootstrap 4 default colors only. */
.forge-panel {
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  padding: 1rem;
  height: 100%;
  background: #fff;
}

.forge-panel__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.forge-panel__hint {
  font-size: .8125rem;
  color: #6c757d;
  margin: 0 0 .75rem;
}

/* Target chip: slot as a leading badge, item name as the primary
   line, remove button stays reachable (was a cramped flex row). */
.forge-target-chip {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .75rem;
}

.forge-target-chip__slot {
  flex: 0 0 auto;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #495057;
  background: #e9ecef;
  border-radius: .25rem;
  padding: .2rem .5rem;
  white-space: nowrap;
}

.forge-target-chip__label {
  flex: 1 1 auto;
  font-size: .875rem;
  line-height: 1.3;
  min-width: 0;
}

.forge-target-chip__label .muted {
  color: #adb5bd;
}

/* Detected items: a single-line slot select (was a nav-tabs row that
   wrapped across ~5 lines for 10 long slot labels in a narrow column)
   above a denser, zebra-striped list so long inventories scan faster. */
.forge-detected-slot-select {
  margin-bottom: .5rem;
  font-size: .8125rem;
}

.forge-detected-items {
  max-height: 260px;
  overflow-y: auto;
  font-size: 0.875rem;
  padding: 0;
  border-radius: .25rem;
}

.forge-detected-items ul {
  margin: 0;
}

.forge-detected-items li {
  padding: .375rem .625rem;
  border-bottom: 1px solid #f1f3f5;
}

.forge-detected-items li:last-child {
  border-bottom: 0;
}

.forge-detected-items li:nth-child(even) {
  background: #fafbfc;
}

/* Results table: clearer column headers, a distinct "ready" row
   treatment, and a totals row that doesn't blend into the data. */
.forge-results {
  table-layout: fixed;
  width: 100%;
  font-size: .875rem;
}

.forge-results th,
.forge-results td {
  padding: .5rem .625rem;
  vertical-align: middle;
}

.forge-results thead th {
  text-transform: uppercase;
  font-size: .6875rem;
  letter-spacing: .04em;
  color: #6c757d;
  border-top: none;
  border-bottom-width: 1px;
  white-space: nowrap;
}

.forge-results col.col-target,
.forge-results th:nth-child(1),
.forge-results td:nth-child(1) {
  width: 16%;
}

.forge-results th:nth-child(2),
.forge-results td:nth-child(2) {
  width: 26%;
}

.forge-results th:nth-child(3),
.forge-results th:nth-child(4),
.forge-results th:nth-child(5),
.forge-results td:nth-child(3),
.forge-results td:nth-child(4),
.forge-results td:nth-child(5) {
  width: 9%;
  font-variant-numeric: tabular-nums;
}

.forge-results th:last-child,
.forge-results td:last-child {
  width: 31%;
}

.forge-results tbody tr:hover td {
  background: #f8f9fa;
}

.forge-results tr.is-ready td {
  background: #f1f9f3;
}

.forge-results tr.is-ready:hover td {
  background: #e6f5ea;
}

.forge-results tr.is-ready td:first-child {
  border-left: 3px solid #28a745;
  padding-left: calc(.625rem - 3px);
}

.forge-results td:first-child {
  font-weight: 600;
  color: #343a40;
}

.forge-results td.text-muted {
  font-style: italic;
}

.forge-results tr.forge-results__total td {
  border-top: 2px solid #dee2e6;
  font-weight: 700;
  background: #fafbfc;
}

.forge-results tr.forge-results__total td:first-child {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .04em;
  color: #495057;
}

#forge-target-picker .form-group {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

#forge-target-picker .form-group label {
  flex: 0 0 90px;
  margin-bottom: 0;
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

#forge-target-picker .form-group select {
  flex: 1 1 auto;
  min-width: 0;
}
