/* ---------------- TABLE ---------------- */

.volto-table-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.volto-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1c2434;
  border-radius: 10px;
  padding: 10px 14px;
  color: #f5f5f5;
}
.volto-coin-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volto-coin-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2b3548;
}
.volto-coin-name {
  font-weight: 600;
}
.volto-coin-right {
  text-align: right;
}
.volto-coin-price {
  font-weight: 600;
}
.volto-coin-change {
  font-size: 12px;
}
.volto-change-positive {
  color: #2ecc71;
}
.volto-change-negative {
  color: #e74c3c;
}

/* ---------------- WIDGET ---------------- */

.volto-widget-wrapper {
  background: #1c2434;
  border-radius: 12px;
  padding: 20px;
  color: #f5f5f5;
}

/* Columns */
.volto-exchange-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.volto-exchange-column {
  flex: 1 1 200px;
}
.volto-exchange-column label {
  display: block;
  margin-bottom: 6px;
  color: #7c869b;
  font-size: 14px;
}

/* Inputs + selects */
.volto-exchange-column select,
.volto-exchange-column input {
  width: 100%;
  padding: 12px 16px !important; /* убедимся, что тема не обнуляет padding */
  border-radius: 10px;
  border: 1px solid #2b3548 !important; /* перекрываем border-bottom из темы */
  background: #131722 !important;
  color: #ffffff !important;
  font-size: 16px;
  box-sizing: border-box;
}

/* Повышенная специфичность на случай, если тема подключает стили позже */
.volto-widget-wrapper .volto-exchange-column select,
.volto-widget-wrapper .volto-exchange-column input {
  padding: 12px 16px !important;
  border: 1px solid #2b3548 !important;
}

/* Remove spinner buttons */
.volto-exchange-column input[type=number]::-webkit-inner-spin-button,
.volto-exchange-column input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.volto-exchange-column input[type=number] {
  -moz-appearance: textfield;
  margin-top: 8px; /* отступ сверху от селекта */
}

/* Switch button */
.volto-exchange-switch {
  display: flex;
  align-items: center;
  justify-content: center;
}
.volto-switch-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2b3548;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.volto-switch-button:hover {
  background: #3a445a;
}

/* Step 2 inputs */
.volto-exchange-contact input,
.volto-exchange-contact textarea {
  background: #101522 !important;
  color: #ffffff !important;
  border: 1px solid #2b3548 !important;
  padding: 10px 14px;
  border-radius: 10px;
}

.volto-exchange-contact input::placeholder,
.volto-exchange-contact textarea::placeholder {
  color: #7c869b !important;
}

.volto-exchange-contact {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Submit buttons */
.volto-exchange-submit {
  margin-top: 16px;
  display: flex;            /* центрируем кнопку по центру виджета */
  justify-content: center;  /* горизонтальное выравнивание */
}
.volto-exchange-submit button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: #2ecc71;
  color: #111;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}
.volto-exchange-submit button:hover {
  background: #34d97b;
}

/* Step messages */
.volto-exchange-message {
  margin-top: 10px;
  font-size: 14px;
  color: #ff7676;
}

/* Result block */
.volto-exchange-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #131722;
  color: #f5f5f5;
  line-height: 1.6;
}

/* Ensure result title visible on dark bg */
.volto-exchange-result h3 {
  color: #f5f5f5 !important;
  margin-top: 0;
}
