.stmto-mini {
  --stmto-mini-red: #9b343a;
  --stmto-mini-red-dark: #7f292f;
  --stmto-mini-ink: #17191d;
  --stmto-mini-muted: #747881;
  --stmto-mini-line: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, rgba(247, 248, 250, 0.88), rgba(222, 225, 230, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(29, 33, 39, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: var(--stmto-mini-ink);
  direction: rtl;
  font-family: inherit;
  margin: 0;
  max-width: 600px;
  overflow: hidden;
  padding: 14px 26px 18px;
  position: relative;
  width: 100%;
}

.stmto-mini::before {
  background: radial-gradient(circle, rgba(255,255,255,.78) 0 2px, transparent 3px);
  content: "";
  inset: 0;
  opacity: .32;
  pointer-events: none;
  position: absolute;
}

.stmto-mini *, .stmto-mini *::before, .stmto-mini *::after { box-sizing: border-box; }
.stmto-mini button, .stmto-mini input, .stmto-mini select { font: inherit; }
.stmto-mini [hidden] { display: none !important; }

.stmto-mini-tabs {
  background: rgba(245, 246, 248, 0.72);
  border-radius: 9px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 13px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.stmto-mini-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #202227;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  padding: 9px 6px 7px;
}

.stmto-mini-tabs button.is-active {
  background: rgba(255, 255, 255, 0.5);
  border-bottom-color: var(--stmto-mini-red);
  color: var(--stmto-mini-red);
}

.stmto-mini-tabs svg {
  fill: none;
  height: 23px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 23px;
}

.stmto-mini-form {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.stmto-mini-wide { grid-column: 1 / -1; }
.stmto-mini-fields { display: grid; gap: 11px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stmto-mini-field { min-width: 0; }

.stmto-mini-field label {
  color: #292c32;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin: 0 2px 5px;
}

.stmto-mini-field input,
.stmto-mini-field select {
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(247, 248, 250, 0.82);
  border: 0;
  border-bottom: 2px solid rgba(155, 52, 58, 0.88);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(31, 34, 39, 0.05);
  color: var(--stmto-mini-ink);
  height: 45px;
  margin: 0;
  outline: 0;
  padding: 0 13px;
  width: 100%;
}

.stmto-mini-field select {
  background-image: linear-gradient(45deg, transparent 50%, #6f737b 50%), linear-gradient(135deg, #6f737b 50%, transparent 50%);
  background-position: 15px 19px, 10px 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  direction: rtl;
  font-size: 11px;
  font-weight: 700;
  padding-left: 29px;
}

.stmto-mini-field input {
  direction: ltr;
  font-size: 13px;
  font-weight: 700;
  padding-left: 62px;
  text-align: left;
}

.stmto-mini-field input:focus,
.stmto-mini-field select:focus {
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(155, 52, 58, 0.09), 0 7px 18px rgba(31, 34, 39, 0.07);
}

.stmto-mini-input { position: relative; }
.stmto-mini-input > span {
  align-items: center;
  bottom: 2px;
  color: #80848c;
  display: flex;
  font-size: 8px;
  justify-content: center;
  left: 8px;
  max-width: 54px;
  pointer-events: none;
  position: absolute;
  top: 0;
}

.stmto-mini-angle-b { display: contents; }
.stmto-mini-angle-b.is-hidden { display: none; }

.stmto-mini-calculate {
  align-items: center;
  background: linear-gradient(135deg, #9b343a, #8c2e34) !important;
  border: 0 !important;
  border-radius: 9px;
  box-shadow: 0 9px 20px rgba(155, 52, 58, 0.25);
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 9px;
  justify-content: center;
  margin-top: 1px;
  min-height: 48px;
  padding: 10px 16px;
  width: 100%;
}

.stmto-mini-calculate:hover {
  background: linear-gradient(135deg, #8f3036, var(--stmto-mini-red-dark)) !important;
  transform: translateY(-1px);
}

.stmto-mini-calculate svg, .stmto-mini-foot svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

.stmto-mini-error {
  background: rgba(255, 242, 243, 0.9);
  border: 1px solid #efc3c7;
  border-radius: 8px;
  color: var(--stmto-mini-red);
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
  padding: 8px 10px;
}

.stmto-mini-result {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 11px;
  position: relative;
  z-index: 1;
}

.stmto-mini-result > div {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--stmto-mini-line);
  border-radius: 9px;
  padding: 9px 12px;
}

.stmto-mini-result > div.is-primary { border-color: rgba(155, 52, 58, 0.24); }
.stmto-mini-result span, .stmto-mini-result strong { display: block; }
.stmto-mini-result span { color: var(--stmto-mini-muted); font-size: 9px; }
.stmto-mini-result strong { color: var(--stmto-mini-ink); font-size: 13px; font-weight: 900; margin-top: 3px; }
.stmto-mini-result .is-primary strong { color: var(--stmto-mini-red); }

.stmto-mini-foot {
  align-items: center;
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  margin-top: 11px;
  position: relative;
  z-index: 1;
}

.stmto-mini-foot > span { color: var(--stmto-mini-muted); }
.stmto-mini-foot b { color: var(--stmto-mini-ink); font-size: 11px; }
.stmto-mini-foot a {
  align-items: center;
  color: var(--stmto-mini-red) !important;
  display: inline-flex;
  font-weight: 900;
  gap: 4px;
  text-decoration: none !important;
}

@media (max-width: 520px) {
  .stmto-mini { border-radius: 14px; padding: 11px 13px 14px; }
  .stmto-mini-tabs button { font-size: 10px; gap: 5px; min-height: 47px; }
  .stmto-mini-tabs svg { height: 19px; width: 19px; }
  .stmto-mini-fields { gap: 9px; }
}

@media (max-width: 380px) {
  .stmto-mini-fields, .stmto-mini-result { grid-template-columns: 1fr; }
  .stmto-mini-foot { align-items: flex-start; flex-direction: column; gap: 6px; }
}
