:root {
  --qxc-calc-accent: #007aff;
  --qxc-calc-accent-hover: #0071e3;
  --qxc-calc-accent-soft: #edf6ff;
  --qxc-calc-blue-soft: #f5f9ff;
  --qxc-calc-border: var(--ozon-line, #e5e5ea);
  --qxc-calc-border-strong: #c7dffc;
  --qxc-calc-bg: var(--ozon-canvas, #f5f5f7);
  --qxc-calc-danger: #dc3f5d;
  --qxc-calc-green: #27a769;
  --qxc-calc-muted: #777e8c;
  --qxc-calc-text: #222632;
}

.qxc-calc-host-surface > :not(#qxc-calc-host-root) {
  display: none !important;
}

.qxc-calc-public-mode body > .el-message {
  display: none !important;
}

#qxc-calc-public-root {
  position: fixed;
  z-index: 2000;
  inset: 0;
  min-height: 100vh;
  overflow: auto;
  background: #ffffff;
}

#qxc-calc-host-root,
#qxc-calc-public-root {
  width: 100%;
  color: var(--qxc-calc-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

#qxc-calc-host-root *,
#qxc-calc-public-root * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.qxc-calc-page {
  width: 100%;
  min-height: calc(100vh - 124px);
  padding: 30px 28px 44px;
  background: var(--qxc-calc-bg);
}

.qxc-calc-page.is-public {
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 32px;
  background: #ffffff;
}

.qxc-calc-global-alert,
.qxc-calc-commission-warning {
  position: relative;
  display: flex;
  min-height: 40px;
  max-width: 1240px;
  margin: 0 auto 16px;
  padding: 9px 44px 9px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6eaff;
  border-radius: 8px;
  background: #edf6ff;
  color: #555b68;
  font-size: 14px;
  line-height: 20px;
}

.qxc-calc-global-alert > span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--qxc-calc-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.qxc-calc-global-alert p,
.qxc-calc-commission-warning {
  margin: 0;
}

.qxc-calc-global-alert button {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #858a96;
  cursor: pointer;
  font-size: 20px;
  line-height: 28px;
}

.qxc-calc-commission-warning {
  border-color: #f1b7c4;
  background: #fff4f6;
  color: #a12742;
}

.qxc-calc-segmented {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 16px auto 28px;
  border: 1px solid var(--qxc-calc-border-strong);
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

.qxc-calc-segmented button {
  min-height: 36px;
  padding: 7px 18px;
  border: 0;
  border-right: 1px solid var(--qxc-calc-border-strong);
  background: #ffffff;
  color: #4f5562;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
}

.qxc-calc-segmented button:last-child {
  border-right: 0;
}

.qxc-calc-segmented button.is-active {
  background: var(--qxc-calc-accent-soft);
  color: var(--qxc-calc-accent);
  box-shadow: inset 0 0 0 1px var(--qxc-calc-accent);
}

.qxc-calc-layout {
  display: grid;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: minmax(520px, 1.32fr) minmax(390px, 1fr);
  align-items: start;
  gap: 22px;
}

.qxc-calc-form-panel,
.qxc-calc-result-card,
.qxc-calc-logistics-panel,
.qxc-calc-detail-panel {
  border: 1px solid #eceef2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 3px 14px rgba(28, 33, 48, 0.045);
}

.qxc-calc-form-panel {
  padding: 25px 24px 26px;
}

.qxc-calc-results {
  display: grid;
  gap: 18px;
}

.qxc-calc-result-card,
.qxc-calc-logistics-panel,
.qxc-calc-detail-panel {
  padding: 22px 20px;
}

.qxc-calc-result-card {
  position: relative;
  overflow: hidden;
  border-color: #dbe5f4;
  background: var(--qxc-calc-blue-soft);
}

.qxc-calc-result-card::after {
  position: absolute;
  right: 12px;
  bottom: -12px;
  width: 126px;
  height: 100px;
  color: rgba(0, 122, 255, 0.08);
  content: "+ × ÷";
  font-size: 52px;
  font-weight: 700;
  line-height: 88px;
  transform: rotate(-8deg);
  pointer-events: none;
}

.qxc-calc-form-title {
  display: flex;
  min-height: 42px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qxc-calc-form-title h2 {
  margin: 0;
  color: var(--qxc-calc-accent);
  font-size: 24px;
  font-weight: 650;
  line-height: 32px;
}

.qxc-calc-icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--qxc-calc-accent);
  cursor: pointer;
  font-size: 27px;
  line-height: 32px;
}

.qxc-calc-search {
  display: grid;
  height: 42px;
  margin-bottom: 27px;
  grid-template-columns: 1fr 44px;
}

.qxc-calc-search input,
.qxc-calc-search button {
  border: 1px solid var(--qxc-calc-border);
  background: #ffffff;
}

.qxc-calc-search input {
  min-width: 0;
  padding: 0 13px;
  border-right: 0;
  border-radius: 7px 0 0 7px;
  color: var(--qxc-calc-text);
  outline: 0;
  font-size: 14px;
}

.qxc-calc-search button {
  border-radius: 0 7px 7px 0;
  color: #69707d;
  cursor: pointer;
  font-size: 22px;
}

.qxc-calc-search input:focus,
.qxc-calc-search:focus-within button {
  border-color: var(--qxc-calc-accent);
}

.qxc-calc-section-title {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
}

.qxc-calc-section-title--other {
  margin-top: 27px;
}

.qxc-calc-section-title i {
  width: 5px;
  height: 17px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--qxc-calc-accent);
}

.qxc-calc-section-title h3 {
  margin: 0;
  color: #303642;
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

.qxc-calc-fields {
  display: grid;
  margin-top: 13px;
  gap: 13px;
}

.qxc-calc-field {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 156px minmax(0, 1fr);
  align-items: start;
}

.qxc-calc-label {
  display: flex;
  min-height: 40px;
  padding-right: 12px;
  align-items: center;
  justify-content: flex-end;
  color: #3e4350;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.qxc-calc-label b {
  margin-right: 4px;
  color: #e94f68;
  font-weight: 500;
}

.qxc-calc-help {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  border: 1px solid #a9aeb9;
  border-radius: 50%;
  color: #747b89;
  cursor: help;
  font-size: 11px;
  line-height: 14px;
}

.qxc-calc-help::after {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 310px;
  padding: 7px 9px;
  border-radius: 5px;
  background: #222632;
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.qxc-calc-help:hover::after,
.qxc-calc-help:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.qxc-calc-input-wrap,
.qxc-calc-native-select,
.qxc-calc-composite {
  display: flex;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--qxc-calc-border);
  border-radius: 7px;
  overflow: hidden;
  background: #ffffff;
}

.qxc-calc-field.has-error .qxc-calc-input-wrap,
.qxc-calc-field.has-error .qxc-calc-native-select,
.qxc-calc-field.has-error .qxc-calc-select-trigger {
  border-color: var(--qxc-calc-danger);
}

.qxc-calc-input-wrap:focus-within,
.qxc-calc-native-select:focus-within,
.qxc-calc-composite:focus-within {
  border-color: var(--qxc-calc-accent);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.16);
}

.qxc-calc-input-wrap input,
.qxc-calc-native-select select,
.qxc-calc-composite input,
.qxc-calc-composite select {
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--qxc-calc-text);
  outline: 0;
  font-size: 14px;
}

.qxc-calc-input-wrap input {
  width: 100%;
  padding: 0 11px;
}

.qxc-calc-unit {
  display: inline-flex;
  min-width: 45px;
  height: 100%;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #eceef2;
  background: #fafafa;
  color: #555c69;
  font-size: 13px;
  white-space: nowrap;
}

.qxc-calc-native-select select {
  width: 100%;
  padding: 0 36px 0 11px;
}

.qxc-calc-composite select {
  width: 102px;
  padding: 0 28px 0 11px;
  border-right: 1px solid #eceef2;
}

.qxc-calc-composite input {
  width: 100%;
  padding: 0 10px;
}

.qxc-calc-select-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--qxc-calc-border);
  border-radius: 7px;
  background: #ffffff;
  color: #4a505d;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}

.qxc-calc-select-trigger span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qxc-calc-select-trigger span:last-child {
  color: #9da2ad;
  font-size: 18px;
}

.qxc-calc-error {
  grid-column: 2;
  padding: 4px 2px 0;
  color: var(--qxc-calc-danger);
  font-size: 12px;
  line-height: 17px;
}

.qxc-calc-dimensions {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}

.qxc-calc-dimensions > span:not(.qxc-calc-input-wrap) {
  color: #8b919d;
  text-align: center;
}

.qxc-calc-dimensions .qxc-calc-unit {
  min-width: 47px;
  padding: 0 7px;
}

.qxc-calc-primary {
  width: 100%;
  min-height: 44px;
  margin-top: 26px;
  padding: 9px 16px;
  border: 1px solid var(--qxc-calc-accent);
  border-radius: 7px;
  background: var(--qxc-calc-accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 650;
  line-height: 24px;
}

.qxc-calc-primary:hover {
  border-color: var(--qxc-calc-accent-hover);
  background: var(--qxc-calc-accent-hover);
}

.qxc-calc-primary:disabled,
.qxc-calc-search button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.qxc-calc-cascader {
  position: absolute;
  z-index: 50;
  top: 43px;
  left: 156px;
  width: min(730px, calc(100vw - 370px));
  border: 1px solid var(--qxc-calc-border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(28, 33, 48, 0.16);
}

.qxc-calc-cascader-search {
  padding: 10px;
  border-bottom: 1px solid var(--qxc-calc-border);
}

.qxc-calc-cascader-search input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--qxc-calc-border);
  border-radius: 6px;
  outline: 0;
}

.qxc-calc-cascader-search input:focus {
  border-color: var(--qxc-calc-accent);
}

.qxc-calc-cascader-columns {
  display: grid;
  grid-template-columns: 170px minmax(230px, 1fr) 225px;
}

.qxc-calc-cascader-column {
  min-height: 260px;
  max-height: 340px;
  padding: 5px;
  border-right: 1px solid var(--qxc-calc-border);
  overflow-y: auto;
}

.qxc-calc-cascader-column:last-child {
  border-right: 0;
}

.qxc-calc-cascader-column button {
  display: flex;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
  color: #3f4551;
  cursor: pointer;
  font-size: 13px;
  line-height: 19px;
  text-align: left;
}

.qxc-calc-cascader-column button:hover,
.qxc-calc-cascader-column button.is-active {
  background: var(--qxc-calc-accent-soft);
  color: var(--qxc-calc-accent);
}

.qxc-calc-cascader-column--rate button {
  min-height: 40px;
}

.qxc-calc-empty {
  padding: 22px 12px;
  color: var(--qxc-calc-muted);
  font-size: 13px;
  text-align: center;
}

.qxc-calc-price-grid {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.qxc-calc-price-grid > div {
  display: grid;
  gap: 5px;
}

.qxc-calc-price-grid span,
.qxc-calc-profit-empty > span,
.qxc-calc-profit-result > span {
  color: #555c69;
  font-size: 14px;
}

.qxc-calc-price-grid strong,
.qxc-calc-profit-empty strong,
.qxc-calc-profit-result strong {
  color: var(--qxc-calc-accent);
  font-size: 29px;
  font-weight: 700;
  line-height: 36px;
}

.qxc-calc-price-grid strong.is-strike,
.qxc-calc-price-grid > div:last-child small {
  color: #59606c;
  text-decoration: line-through;
}

.qxc-calc-price-grid small,
.qxc-calc-profit-empty small,
.qxc-calc-profit-result small {
  color: #8c929d;
  font-size: 12px;
  line-height: 18px;
}

.qxc-calc-exchange {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  color: #8c929e;
  font-size: 12px;
  text-align: center;
}

.qxc-calc-profit-empty,
.qxc-calc-profit-result {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100px;
  margin-top: 14px;
  align-content: center;
  justify-items: center;
  gap: 3px;
}

.qxc-calc-profit-result em {
  color: var(--qxc-calc-green);
  font-size: 13px;
  font-style: normal;
}

.qxc-calc-profit-result.is-loss strong,
.qxc-calc-profit-result.is-loss em {
  color: var(--qxc-calc-danger);
}

.qxc-calc-info {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid #dbe5f4;
  border-radius: 6px;
  background: var(--qxc-calc-blue-soft);
  color: #526078;
  font-size: 13px;
  line-height: 19px;
}

.qxc-calc-logistics-cards {
  display: grid;
  margin-top: 13px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.qxc-calc-logistics-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 136px;
  padding: 15px 10px 10px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--qxc-calc-border);
  border-radius: 7px;
  background: #ffffff;
  color: #4b5260;
  cursor: pointer;
  gap: 2px;
}

.qxc-calc-logistics-card:hover,
.qxc-calc-logistics-card.is-active {
  border-color: var(--qxc-calc-accent);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.12);
}

.qxc-calc-logistics-card strong {
  color: #333945;
  font-size: 14px;
}

.qxc-calc-logistics-card small,
.qxc-calc-logistics-card span,
.qxc-calc-logistics-card em {
  color: #858b96;
  font-size: 11px;
  font-style: normal;
  line-height: 16px;
}

.qxc-calc-logistics-card b {
  margin: 4px 0 1px;
  color: var(--qxc-calc-accent);
  font-size: 16px;
}

.qxc-calc-selected-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 7px;
  border-radius: 6px 0 5px 0;
  background: var(--qxc-calc-accent);
  color: #ffffff !important;
}

.qxc-calc-more {
  display: block;
  margin: 14px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--qxc-calc-accent);
  cursor: pointer;
  font-size: 13px;
}

.qxc-calc-detail-list {
  display: grid;
  margin-top: 14px;
}

.qxc-calc-detail-list > div {
  display: flex;
  min-height: 45px;
  padding: 10px 1px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef0f3;
}

.qxc-calc-detail-list > div:last-child {
  border-bottom: 0;
}

.qxc-calc-detail-list span {
  color: #545b68;
  font-size: 13px;
}

.qxc-calc-detail-list strong {
  color: #363c48;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.qxc-calc-detail-list strong.is-profit {
  color: var(--qxc-calc-green);
}

.qxc-calc-detail-list strong.is-cost {
  color: var(--qxc-calc-danger);
}

.qxc-calc-detail-list strong.is-weight {
  max-width: 62%;
  color: #4d5562;
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
  text-align: right;
}

.qxc-calc-drawer-mask {
  position: fixed;
  z-index: 20000;
  inset: 0;
  background: rgba(22, 25, 32, 0.46);
}

.qxc-calc-drawer {
  position: fixed;
  z-index: 20001;
  top: 0;
  right: 0;
  width: min(980px, 66vw);
  height: 100vh;
  border-left: 1px solid var(--qxc-calc-border);
  background: #ffffff;
  box-shadow: -12px 0 30px rgba(20, 24, 34, 0.12);
}

.qxc-calc-drawer > header {
  display: flex;
  height: 58px;
  padding: 0 20px;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--qxc-calc-border);
}

.qxc-calc-drawer > header h2 {
  margin: 0;
  color: #272c36;
  font-size: 16px;
  font-weight: 650;
}

.qxc-calc-drawer > header button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #747b87;
  cursor: pointer;
  font-size: 25px;
}

.qxc-calc-drawer-body {
  height: calc(100vh - 58px);
  padding: 22px;
  overflow: auto;
}

.qxc-calc-group-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.qxc-calc-group-list > div {
  display: grid;
  min-height: 80px;
  padding: 10px 7px;
  align-content: center;
  justify-items: center;
  border: 1px solid #eceef2;
  border-radius: 7px;
  background: #f7f7f9;
  color: #555c68;
  text-align: center;
}

.qxc-calc-group-list > div.is-active {
  border-color: var(--qxc-calc-accent);
  background: var(--qxc-calc-accent);
  color: #ffffff;
}

.qxc-calc-group-list span,
.qxc-calc-group-list strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
}

.qxc-calc-table-wrap {
  margin-top: 20px;
  border: 1px solid var(--qxc-calc-border);
  overflow-x: auto;
}

.qxc-calc-table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.qxc-calc-table-wrap th,
.qxc-calc-table-wrap td {
  padding: 14px 10px;
  border-right: 1px solid var(--qxc-calc-border);
  border-bottom: 1px solid var(--qxc-calc-border);
  color: #565d69;
  font-size: 12px;
  text-align: center;
  vertical-align: middle;
}

.qxc-calc-table-wrap thead th {
  background: #fafafa;
  color: #303641;
  font-size: 13px;
}

.qxc-calc-table-wrap tbody th {
  color: #343a45;
  font-size: 13px;
  font-weight: 500;
}

.qxc-calc-table-wrap td span {
  display: block;
  padding: 2px 0;
}

.qxc-calc-table-wrap td em {
  color: #8b919b;
  font-style: normal;
}

.qxc-calc-provider-mark {
  display: flex !important;
  width: 31px;
  height: 31px;
  margin: 0 auto 5px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--qxc-calc-accent-soft);
  color: var(--qxc-calc-accent);
  font-size: 10px;
  font-weight: 700;
}

.qxc-calc-toast {
  position: fixed;
  z-index: 30000;
  top: 22px;
  left: 50%;
  max-width: min(430px, calc(100vw - 32px));
  padding: 10px 15px;
  border: 1px solid var(--qxc-calc-border);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(20, 24, 34, 0.16);
  color: #343a46;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.qxc-calc-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.qxc-calc-toast--success {
  border-color: #a9dfc5;
  color: #157a4b;
}

.qxc-calc-toast--error {
  border-color: #efb1bf;
  color: #ac2846;
}

.qxc-calc-loading,
.qxc-calc-load-error {
  display: grid;
  min-height: 420px;
  padding: 36px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--qxc-calc-bg);
  color: var(--qxc-calc-muted);
  text-align: center;
}

.qxc-calc-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #ded9ff;
  border-top-color: var(--qxc-calc-accent);
  border-radius: 50%;
  animation: qxc-calc-spin 700ms linear infinite;
}

.qxc-calc-loading p,
.qxc-calc-load-error p {
  margin: 0;
  font-size: 14px;
}

.qxc-calc-load-error strong {
  color: #343a46;
  font-size: 17px;
}

.qxc-calc-load-error button {
  padding: 7px 14px;
  border: 1px solid var(--qxc-calc-accent);
  border-radius: 6px;
  background: #ffffff;
  color: var(--qxc-calc-accent);
  cursor: pointer;
}

@keyframes qxc-calc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  .qxc-calc-page {
    padding-right: 18px;
    padding-left: 18px;
  }

  .qxc-calc-layout {
    grid-template-columns: minmax(470px, 1.18fr) minmax(345px, 1fr);
    gap: 16px;
  }

  .qxc-calc-field {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .qxc-calc-cascader {
    left: 136px;
  }

  .qxc-calc-drawer {
    width: min(880px, 76vw);
  }
}

@media (max-width: 920px) {
  .qxc-calc-layout {
    grid-template-columns: 1fr;
  }

  .qxc-calc-results {
    grid-template-columns: 1fr;
  }

  .qxc-calc-drawer {
    width: 92vw;
  }

  .qxc-calc-cascader {
    width: calc(100vw - 90px);
  }
}

@media (max-width: 640px) {
  .qxc-calc-page,
  .qxc-calc-page.is-public {
    min-height: 100vh;
    padding: 12px 10px 28px;
  }

  .qxc-calc-global-alert,
  .qxc-calc-commission-warning {
    margin-bottom: 12px;
    padding-left: 10px;
    font-size: 12px;
  }

  .qxc-calc-segmented {
    width: 100%;
    margin: 12px auto 16px;
  }

  .qxc-calc-segmented button {
    min-width: 0;
    padding: 7px 8px;
    flex: 1 1 50%;
    font-size: 12px;
    white-space: normal;
  }

  .qxc-calc-form-panel,
  .qxc-calc-result-card,
  .qxc-calc-logistics-panel,
  .qxc-calc-detail-panel {
    padding: 17px 14px;
  }

  .qxc-calc-form-title h2 {
    font-size: 20px;
    line-height: 28px;
  }

  .qxc-calc-field {
    display: block;
  }

  .qxc-calc-label {
    min-height: 30px;
    padding: 0 0 5px;
    justify-content: flex-start;
  }

  .qxc-calc-error {
    padding-left: 2px;
  }

  .qxc-calc-dimensions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .qxc-calc-dimensions > span:not(.qxc-calc-input-wrap) {
    display: none;
  }

  .qxc-calc-cascader {
    position: fixed;
    z-index: 20002;
    top: 8vh;
    right: 10px;
    bottom: 8vh;
    left: 10px;
    width: auto;
  }

  .qxc-calc-cascader-columns {
    height: calc(84vh - 58px);
    grid-template-columns: 34% 66%;
    grid-template-rows: 58% 42%;
  }

  .qxc-calc-cascader-column {
    min-height: 0;
    max-height: none;
  }

  .qxc-calc-cascader-column--wide {
    border-right: 0;
  }

  .qxc-calc-cascader-column--rate {
    grid-column: 1 / 3;
    border-top: 1px solid var(--qxc-calc-border);
  }

  .qxc-calc-logistics-cards {
    grid-template-columns: 1fr;
  }

  .qxc-calc-logistics-card {
    min-height: 94px;
    grid-template-columns: auto auto 1fr auto;
    justify-items: start;
    align-items: center;
    column-gap: 6px;
  }

  .qxc-calc-logistics-card b,
  .qxc-calc-logistics-card span,
  .qxc-calc-logistics-card em {
    grid-column: auto;
  }

  .qxc-calc-selected-tag {
    display: none;
  }

  .qxc-calc-price-grid {
    gap: 12px;
  }

  .qxc-calc-price-grid strong,
  .qxc-calc-profit-empty strong,
  .qxc-calc-profit-result strong {
    font-size: 24px;
    line-height: 31px;
  }

  .qxc-calc-drawer {
    width: 100vw;
  }

  .qxc-calc-drawer-body {
    padding: 15px 10px;
  }

  .qxc-calc-group-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .qxc-calc-table-wrap table {
    min-width: 680px;
  }
}
