.calculator-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 116, 15, 0.24);
  border-radius: 12px;
  background: #fff7f1;
  padding: 1rem 1.25rem;
  color: #525252;
  font-size: 0.875rem;
  line-height: 1.5;
}

.calculator-note svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  margin-top: 0.05rem;
  color: #ff740f;
}

.calculator-note p {
  margin: 0;
}

.calculator-note strong {
  color: #010609;
  font-weight: 700;
}

.calculator-market-switch {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 116, 15, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.45rem;
  box-shadow: 0 12px 32px rgba(38, 22, 12, 0.07);
  backdrop-filter: blur(12px);
}

.calculator-market-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.35rem 0 0.75rem;
  color: #737373;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.calculator-market-label > span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ff740f;
  box-shadow: 0 0 0 0.3rem rgba(255, 116, 15, 0.1);
}

.calculator-market-options {
  display: inline-flex;
  gap: 0.25rem;
  border-radius: 0.85rem;
  background: #fff5ed;
  padding: 0.25rem;
}

.calculator-market-switch a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  padding: 0.65rem 1.1rem;
  color: #525252;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.calculator-market-switch a:hover {
  color: #ff740f;
  transform: translateY(-1px);
}

.calculator-market-switch a.is-active {
  background: #ff740f;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 116, 15, 0.22);
}

.calculator-market-switch a:focus-visible {
  outline: 2px solid #010609;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .calculator-note {
    padding: 0.875rem 1rem;
  }

  .calculator-market-switch {
    width: 100%;
    justify-content: space-between;
    border-radius: 1rem;
  }

  .calculator-market-label {
    padding-left: 0.6rem;
    font-size: 0.7rem;
  }

  .calculator-market-options {
    flex: 1;
  }

  .calculator-market-options a {
    flex: 1;
    padding-inline: 0.75rem;
  }
}

@media (max-width: 420px) {
  .calculator-market-switch {
    display: grid;
    gap: 0.5rem;
  }

  .calculator-market-label {
    padding: 0.3rem 0.55rem 0;
  }

  .calculator-market-options {
    width: 100%;
  }
}
