.calc .dropdown-btn:after {
  background-image: url(/assets/images/icons/caret-down.svg);
}

.calc .dropdown-btn:hover:after {
  background-image: url(/assets/images/icons/caret-down-blue.svg);
}

.intro-sect {
  background-color: #f6f2f7;
  padding: 120px 0;
}

.calc-help .list {
  max-width: 530px;
}

.text-sect .text {
  max-width: 920px;
}

.text-sect .news-note .text {
  max-width: 100%;
}

.text-sect .container {
  transition: 0.3s;
}

.link.modal-close {
  display: inline-block;
  position: static;
  font-size: 16px;
  background: none;
  width: auto;
  height: auto;
  margin-top: 20px;
  text-decoration: underline;
}

.list li {
  font-size: 12px;
}

.calc {
  display: flex;
  gap: 12px;
  margin: 70px 0 35px;
}

.calc .h3 {
  font-size: 23px;
  margin-bottom: 15px;
}

.calc h2.h3 {
  font-weight: 700;
}

.calc .ui-button .ui-icon {
  background-image: url(/assets/images/down-arrow.svg);
  background-position: center;
  transition: 0.3s;
  margin-top: 7px;
  margin-right: 7px;
}

.ui-selectmenu-button-open .ui-icon {
  transform: rotate(180deg);
}

.calc-col {
  background: #fdfdfd;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  flex-basis: 50%;
  min-width: calc(50% - 8px);
  padding: 19px;
  display: flex;
  flex-direction: column;
}

.calc-col:last-of-type .h3:first-child {
  margin-bottom: 0;
}

.calc-col:first-of-type {
  user-select: none;
}

.calc-col .small-text {
  font-size: 12px;
  margin-top: 0;
  margin-bottom: 8px;
}

.calc-col .small-heading {
  margin: 0 0 12px;
  color: #212529;
}

.calc-note {
  padding: 0 0 0 14px;
  margin: 0;
}

.calc-note li {
  margin: 0 0 4px;
  font-size: 12px;
}

.calc-details-table {
  margin-top: 10px;
  width: 100%;
}

.calc-details-heading {
  font-weight: 700;
  margin: 0;
  border: 1px solid #212529;
  font-size: 12px;
  padding: 5px 16px;
  min-height: 25px;
}

.calc-details-table-row {
  vertical-align: top;
}

.calc-details-table-row td {
  width: 40%;
  line-height: 1.4;
  padding-bottom: 6px;
}

.calc-details-table-row td:last-of-type {
  width: 60%;
}

.calc-details-table-param {
  font-size: 12px;
}

.calc-details-table-result {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.calc-help {
  display: flex;
  gap: 12px;
}

.calc-help .h3 {
  margin-bottom: 20px;
}

.calc-help-col {
  flex-basis: 50%;
}

.calc-details-delivery-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 400px;
  margin-bottom: 25px;
}

.calc-details-delivery-col div {
  display: flex;
  gap: 15px;
  margin-bottom: 7px;
}

.calc-details-delivery-col b,
.calc-details-delivery-col span {
  font-size: 12px;
}

.calc-details-delivery-heading {
  font-size: 12px;
  color: #212529;
  margin: 0;
  padding: 15px 0 10px;
  border-top: 1px solid #212529;
  margin-top: 10px;
  font-weight: 700;
}

.calc-form-row {
  display: flex;
  gap: 7px;
}

.calc-form-row .calc-form-entry {
  flex-grow: 1;
  margin: 0;
}

.calc-form-entry {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.calc-form-label {
  margin-bottom: 7px;
  display: inline-block;
  font-size: 12px;
}

.calc-form-input {
  border: 1px solid #212529;
  font-size: 12px;
  padding: 5px 16px;
  outline: none;
  min-height: 25px;
  appearance: none;
  border-radius: 0;
  width: 100%;
}

.calc-form-input:focus {
  outline-color: #212529;
}

.calc-form-risk {
  flex-grow: 1;
  max-width: 34%;
}

.calc-form-risk .h4 {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px;
}

.calc-form-risk-row {
  display: flex;
  margin-bottom: 5px;
}

.calc-form-risk-row span:not(:first-of-type) {
  margin-left: auto;
}

.calc-form-risk-row span {
  font-size: 10px;
}

.calc-form-risk-row:last-of-type span {
  font-size: 18px;
}

.calc-form-risk-row-3 {
  visibility: hidden;
}

.calc-form-risk:nth-of-type(2) .calc-form-risk-row:nth-of-type(3) {
  font-weight: 700;
}

.calc-form-result .calc-form-row {
  gap: 70px;
  /* bug fix */
  /* margin-bottom: -25px; */
}

.calc-col:last-of-type .calc-form-entry:first-of-type {
  margin-bottom: -15px;
  z-index: 2;
}

.calc-form-table {
  margin: 35px 1px 0 0;
  width: 100%;
  border-collapse: collapse;
}

.calc-form-table-wrap {
  position: relative;
  margin-bottom: 20px;
}

.calc-form-table-container {
  overflow-x: auto;
  position: relative;
  margin-top: -89px;
}

.calc-form-table-left,
.calc-form-table-right {
  position: absolute;
  top: 80px;
  right: -11px;
  transform: translateY(-50%);
  width: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.calc-form-table-left {
  left: -11px;
  right: unset;
  transform: rotate(180deg) translateY(46%);
}

.calc-form-table-left:hover,
.calc-form-table-right:hover {
  opacity: 0.7;
}

.calc-form-table-container:before {
  content: '';
  display: block;
  position: sticky;
  left: 0;
  top: 125px;
  height: 89px;
  width: 1px;
  z-index: 3;
  border-left: 1px solid #212529;
}

.calc-form-table-heading,
.calc-form-table-item {
  font-size: 12px;
  font-weight: 400;
  padding: 6px;
  text-align: left;
  border: 1px solid #212529;
  color: #212529;
}

.calc-form-table-heading {
  font-weight: 400;
  min-width: 140px;
}

.calc-form-table-item {
  text-align: center;
  min-width: 47.25px;
  border-right: 0;
}

.calc-form-table-item:last-child {
  border-right: 1px solid #212529;
}

.calc-form-table-row:first-of-type .calc-form-table-item {
  font-weight: 500;
}

.calc-form-table-row .calc-form-table-item:nth-child(5) {
  font-weight: 700;
}

.calc-form-table-row .calc-form-table-heading:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  border-left: 0;
  background-color: white;
}

.calc-form-table-row .calc-form-table-heading:first-child:before {
  content: '';
  height: 100%;
  width: 1px;
  display: block;
  position: absolute;
  right: -1px;
  top: 0;
  border-right: 1px solid #212529;
}

/* Tabs */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.calc-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
}

.calc-tabs .tab {
  padding: 3.5px 12px;
  flex-grow: 1;
  flex-basis: 50%;
  text-align: center;
  color: white;
  transition: 0.5s;
  opacity: 1;
  text-decoration: none;
  font-size: 16px;
}

.calc-tabs .tab:active {
  transform: scale(0.96);
}

.calc-tabs .tab-bullish {
  background-color: #008B7D;
}

.calc-tabs .tab-bullish:hover {
  background-color: #004740;
}

.calc-tabs .tab-bullish.active:before, .calc-tabs .tab-bearish.active:before {
  content: "";
  background-image: url(/assets/images/icons/checkmark-white.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 18px;
  height: 10px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
  margin-top: -3px;
}

.calc-tabs .tab-bearish {
  background-color: #C8102E;
}

.calc-tabs .tab-bearish:hover {
  background-color: #660708;
}

.calc-form-action {
  display: flex;
  align-items: center;
  margin: 10px 0 0;
  gap: 8px;
}

.calc-form-action .btn {
  flex-grow: 1;
  flex-basis: 50%;
  font-size: 16px;
  padding: 2.5px 12px;
  color: white;
}

.calc-form-action .btn-fill-green {
  background-color: #008B7D;
  border-color: #008B7D;
}

.calc-form-action .btn-fill-green:hover {
  background-color: #004740;
  border-color: #004740;
}

.calc-form-action .btn-fill-green:disabled,
.tr-calc .calc-form-action .btn-fill-green:not(.is-active) {
  background-color: #828C95;
  border-color: #828C95;
  cursor: not-allowed;
}

.tr-calc .calc-form-entry {
  flex-basis: 50%;
}

.calc-form-clear {
  flex-grow: 1;
  text-align: center;
  flex-basis: 50%;
}

.calc-form-clear .btn-clear {
  background: transparent;
  border: 0;
  color: #212529;
  border: 1px solid #212529;
  width: 100%;
}

.calc-form-clear .btn-clear:hover {
  color: var(--lightblue-2);
  border-color: var(--lightblue-2);
}

.calc-form-result {
  margin-top: 35px;
}

.calc-form-result-row {
  font-size: 12px;
}

.calc-form-result-row span {
  min-width: 36px;
  display: inline-block;
}

.calc-form-result-heading {
  color: #212529;
  font-size: 20px;
  margin: 0 0 10px;
}

.calc-form-result-sum {
  font-weight: 700;
  font-size: 20px;
  color: #212529;
  margin: 10px 0 0;
}

.ui-button {
  border: 1px solid #212529;
}

.calc .ui-selectmenu-button,
.calc .ui-selectmenu-button:active {
  margin-bottom: 25px;
  width: 100%;
  font-size: 12px;
  padding: 0;
  border-radius: 0;
  background-color: white;
  color: #212529;
  border: 1px solid #212529;
}

.calc .ui-selectmenu-text {
  padding: 5px 16px;
}

.ui-selectmenu-menu .ui-menu .ui-selectmenu-optgroup {
  font-size: 12px;
  color: #212529;
}

.ui-menu .ui-menu-item-wrapper {
  padding: 4px 10px;
  border: 0;
  font-size: 12px;
  color: #212529;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
  border: 0;
  background: #f9f9f9;
  padding: 4px 10px;
  font-size: 12px;
  margin: 0;
}

.ui-slider-horizontal {
  margin-top: 15px;
  height: 4px;
}

.ui-slider-horizontal .ui-slider-handle.ui-state-focus,
.ui-slider-horizontal .ui-slider-handle {
  border-radius: 50%;
  width: 8px;
  max-width: 8px;
  height: 8px;
  transform: translateX(-50%);
  top: -3px;
  padding: 0;
  margin: 0;
  background: #ffffff;
  border: 1px solid #008B7D;
  outline: none;
}

.ui-widget.ui-widget-content {
  border: 1px solid #212529;
  border-radius: 0;
}

.ui-slider .ui-slider-range {
  background-color: #008B7D;
  border-radius: 0;
}

.contracts-scale,
.account-scale {
  display: flex;
  justify-content: space-between;
  position: relative;
  font-size: 8px;
  color: #212529;
  margin-top: 10px;
}

.contracts-scale div,
.account-scale div {
  position: relative;
  min-width: 10px;
  text-align: center;
  color: #6c757d;
}

.account-scale div {
  min-width: 20px;
}

.contracts-scale div:after,
.account-scale div:after {
  content: '';
  height: 6px;
  width: 1px;
  background-color: #212529;
  display: inline-block;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.contracts-scale div:first-of-type:after {
  margin-left: -1.5px;
}

.contracts-scale div:last-of-type:after {
  margin-left: 4px;
}

.contracts-scale div:nth-of-type(1),
.contracts-scale div:nth-last-child(-n + 4) {
  min-width: unset;
}

.contracts-scale div:nth-last-child(2) {
  margin-right: -2px;
}

div.contracts-scale-1,
div.contracts-scale-2,
div.contracts-scale-3,
div.contracts-scale-4,
div.contracts-scale-5 {
  position: absolute;
  min-width: unset;
}

.contracts-scale-1 {
  left: 4%;
}

.contracts-scale-2 {
  left: 8%;
}

.contracts-scale-3 {
  left: 12%;
}

.contracts-scale-4 {
  left: 16%;
}

.contracts-scale div:nth-of-type(6) {
  left: 53px;
}

.contracts-scale div:nth-of-type(7) {
  left: 36px;
}

.contracts-scale div:nth-of-type(8) {
  left: 19px;
}

.account-scale div:first-of-type {
  margin-left: -10px;
}

.account-scale div:last-of-type {
  margin-right: -9.5px;
}

.ui-selectmenu-menu {
  max-height: 400px !important;
  overflow: auto;
}

.ss-main .ss-single-selected .ss-arrow {
  margin: 0;
}

.errorInput {
  border: 1px solid #C8102E;
  color: #C8102E;
}

.errorInput::placeholder {
  color: #C8102E;
}

.greenCalc,
.errorValueGreen {
  color: #008B7D;
}

.redCalc,
.errorValueRed {
  color: #C8102E;
}

.errorValueGreen {
  border-color: #008B7D;
}

.errorValueRed {
  border-color: #C8102E;
}

.entrypriceParamDrob,
.entrypriceParamDrob+.ui-selectmenu-button,
.exitpriceParamDrob+.ui-selectmenu-button,
.takeprofitParamDrob+.ui-selectmenu-button,
.stoplossParamDrob+.ui-selectmenu-button {
  display: none;
}

.entrypriceParamDrob.active,
.entrypriceParamDrob.active+.ui-selectmenu-button,
.exitpriceParamDrob.active+.ui-selectmenu-button,
.takeprofitParamDrob.active+.ui-selectmenu-button,
.stoplossParamDrob.active+.ui-selectmenu-button {
  display: block;
  margin: 10px 0 0;
}

.exitpriceParamDrob,
.takeprofitParamDrob,
.stoplossParamDrob {
  display: none;
}

.exitpriceParamDrob.active,
.takeprofitParamDrob.active,
.stoplossParamDrob.active {
  display: block;
}

/* custom datalist */
.markets-select,
.ss-main {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  width: 100%;
  font-size: 12px;
  padding: 0;
  border-radius: 4px;
  position: relative;
}

.ss-main .ss-single-selected {
  border-radius: 0;
  border: 1px solid #212529;
  padding: 5px 16px;
  font-size: 12px;
  height: 28.5px;
}

.ss-main .ss-single-selected .placeholder .ss-disabled {
  color: #6c757d;
}

.ss-main .ss-single-selected .ss-arrow span {
  border: solid #293241;
  border-width: 0 1px 1px 0;
}

.markets-select-open {
  position: absolute;
  top: 11px;
  right: 10px;
  background-color: transparent;
  padding: 0;
  border: 0;
  background-image: url(/assets/images/down-arrow.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: 0.3s;
  display: inline-block;
  width: 12px;
  height: 12px;
  cursor: pointer;
}

.open~.markets-select-open {
  transform: rotate(180deg);
}

.markets-select legend,
.markets-select label {
  font-size: 24px;
}

.markets-select input {
  width: 100%;
  font-size: 12px;
  padding: 5px 16px;
  border-radius: 4px;
  background-color: white;
  color: #212529;
  border: 1px solid #212529;
  outline-color: #212529;
}

.markets-select datalist {
  position: absolute;
  background-color: white;
  border: 1px solid #f1f1f1;
  border-radius: 0 0 4px 4px;
  border-top: none;
  width: 562px;
  padding: 5px;
  height: 400px;
  overflow-y: auto;
  z-index: 1;
}

.markets-select .list-open {
  display: block;
}

.markets-select option {
  background-color: white;
  padding: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #212529;
  margin-bottom: 1px;
  display: block;
}

.markets-select optgroup {
  display: block;
}

.ss-optgroup {
    background-color: #E1E5F2;
}

.ss-content .ss-list {
  max-height: 360px;
}

.ss-content {
  z-index: 1000;
  border-color: #212529;
}

.ss-content .ss-list .ss-option {
  color: #212529;
  transition: 0.3s;
}

.ss-content .ss-search input:focus {
  box-shadow: none;
}

.ss-content .ss-list .ss-optgroup .ss-option {
  padding: 5px 5px 5px 10px;
  position: relative;
}

.ss-optgroup-label,
.ss-content .ss-search input {
  color: #212529;
  border-radius: 0;
  appearance: none;
}

.markets-select option:hover,
.markets-select .active,
.ss-content .ss-list .ss-option.ss-highlighted,
.ss-content .ss-list .ss-option:hover {
  background-color: #f1f1f1;
  color: #212529;
}

.calc-control {
  position: absolute;
  top: 25px;
  right: 10px;
  height: 20px;
}

.calc-control .minus,
.calc-control .plus {
  background: transparent;
  border: 0;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  color: #212529;
  font-size: 20px;
  padding: 0;
  cursor: pointer;
  width: 10px;
  height: 20px;
  line-height: 1;
}

.calc-control .minus {
  margin-top: -2px;
}

.calc-control .minus:hover, .calc-control .plus:hover {
  border-color: var(--blue-3);
  color: var(--blue-3);
}

.tooltip-container {
  display: flex;
  align-items: center;
}

.tooltip {
  position: relative;
  display: flex;
}

.tooltip-open {
  color: white;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 13px;
  text-align: center;
  margin-left: 8px;
  font-size: 0;
  padding: 0;
  background-image: url(/modules/myiw_api/assets/images/question2.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  cursor: pointer;
  outline: none;
  transition: 0.3s;
}

.tooltip-open:hover {
  opacity: 0.9;
}

.tooltip-close {
  width: 5px;
  height: 5px;
  background: none;
  border: 0;
  font-size: 0;
  padding: 0;
  position: absolute;
  right: 3px;
  top: 3px;
  background-image: url(/modules/myiw_api/assets/images/close.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  cursor: pointer;
  transition: 0.3s;
}

.tooltip-close:hover {
  opacity: 0.9;
}

.tooltip-content {
  display: none;
  padding: 5px 16px;
  background-color: #6c757d;
  position: absolute;
  width: 300px;
  bottom: 30px;
  right: -20px;
  z-index: 2;
}

.tooltip-content:before {
  content: '';
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent #6c757d transparent transparent;
  position: absolute;
  right: 22px;
  bottom: -15px;
  transform: rotate(270deg);
}

.tooltip-open.is-active+.tooltip-content {
  display: block;
}

.tooltip-content-text {
  font-size: 10px;
  color: #f9fdff;
  font-weight: 400;
  user-select: none;
}

.tooltip-content-text a {
  color: #f9fdff;
}

.tooltip-content-small {
  width: 220px;
}

.calc-transfer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 70px;
  max-width: 600px;
}

.calc-transfer .tooltip-container {
  margin-left: auto;
  margin-bottom: 12px;
}

.calc-transfer .btn {
  width: 100%;
}

.calc-col:last-of-type .tooltip-content {
  right: unset;
  left: -44px;
}

.calc-col:last-of-type .tooltip-content:before {
  transform: rotate(270deg);
  left: 54px;
  right: unset;
}

.futures-calc-expand .text-sect .container {
  width: 1400px;
}

.futures-calc-expand .calc .h3 {
  font-size: 30px;
}

.futures-calc-expand .calc-col .small-text {
  font-size: 21px;
  margin-top: 0;
  margin-bottom: 4px;
}

.futures-calc-expand .calc-form-label {
  font-size: 16px;
}

.futures-calc-expand .calc-form-input {
  max-width: calc(100% - 89px);
  min-height: 36px;
}

.futures-calc-expand .calc-control .minus,
.futures-calc-expand .calc-control .plus {
  width: 36px;
  height: 36px;
  border: 1px solid var(--blue-2);
  margin-top: 0;
  transition: 0.3s;
  font-size: 0;
  position: relative;
}

.futures-calc-expand .calc-control .minus:before,
.futures-calc-expand .calc-control .plus:before {
  content: '-';
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.futures-calc-expand .calc-control .minus:hover,
.futures-calc-expand .calc-control .plus:hover {
  border-color: var(--blue-3);
  color: var(--blue-3);
}

.futures-calc-expand .calc-control .minus:before {
  top: calc(50% - 1px);
}

.futures-calc-expand .calc-control .plus:before {
  content: "+";
}

.futures-calc-expand .calc-control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  right: 0;
  top: 28.5px;
}

.futures-calc-expand .calc-form-input {
  border: 1px solid #212529;
  font-size: 16px;
}

.futures-calc-expand .calc-form-action .btn,
.futures-calc-expand .calc-tabs .tab {
  font-size: 18px;
  padding: 5px 12px;
}

.futures-calc-expand .ss-main .ss-single-selected {
  font-size: 16px;
  height: 36px;
}

.futures-calc-expand .calc-form-risk {
  max-width: 45%;
}

.futures-calc-expand .calc-form-risk-row span,
.futures-calc-expand .calc-form-risk .h4 {
  font-size: 16px;
}

.futures-calc-expand .calc-form-table-heading,
.futures-calc-expand .calc-form-table-item {
  font-size: 14px;
}

.futures-calc-expand .contracts-scale,
.futures-calc-expand .account-scale {
  font-size: 12px;
}

.futures-calc-expand .account-scale div {
  min-width: 27px;
}

.futures-calc-expand .calc-form-table-container:before {
  top: 154px;
  height: 116px;
}

.futures-calc-expand .calc-form-table-container {
  overflow-x: auto;
  position: relative;
  margin-top: -125px;
}

.futures-calc-expand .calc-form-table-left,
.futures-calc-expand .calc-form-table-right {
  top: 85px;
}

.futures-calc-expand .contracts-scale div:nth-of-type(8) {
  left: 28px;
}

.futures-calc-expand .contracts-scale div:nth-of-type(7) {
  left: 50px;
}

.futures-calc-expand .contracts-scale div:nth-of-type(6) {
  left: 75px;
}

.futures-calc-expand .calc-details-table-param {
  font-size: 16px;
}

.futures-calc-expand .ss-content .ss-search input {
  font-size: 13px;
  height: 35px;
}

.futures-calc-expand .ss-content .ss-list .ss-option {
  font-size: 13px;
}

.futures-calc-expand .ss-content .ss-list .ss-optgroup .ss-optgroup-label {
  font-size: 14px;
  margin-top: 0;
  padding-top: 15px;
}

.futures-calc-expand .calc-details-table-result {
  font-size: 15px;
}

.futures-calc-expand .tooltip-content-text {
  font-size: 11px;
}

.futures-calc-expand .calc-details-heading {
  font-size: 16px;
  padding: 7px 16px;
}

.futures-calc-expand .ui-slider-horizontal {
  height: 8px;
}

.futures-calc-expand .contracts-scale,
.futures-calc-expand .account-scale {
  margin-top: 4px;
  margin-bottom: 10px;
}

.futures-calc-expand .contracts-scale div:after,
.futures-calc-expand .account-scale div:after {
  top: -13px;
  height: 10px;
}

.futures-calc-expand .ui-slider-horizontal .ui-slider-handle.ui-state-focus,
.futures-calc-expand .ui-slider-horizontal .ui-slider-handle {
  width: 12px;
  max-width: 12px;
  height: 12px;
}

.futures-calc-expand .contracts-scale div:last-of-type:after {
  margin-left: 6px;
}

/* .futures-calc-expand .calc-control .minus:hover,
.futures-calc-expand .calc-control .plus:hover {
  background-color: #bfdbf7;
} */

.calc-size {
  display: flex !important;
  gap: 8px;
  align-items: center;
}

.calc-size+.calc {
  margin-top: 20px;
}

.calc-size p {
  font-size: 16px;
  margin: 0 2px 0 0;
}

.calc-size .is-active {
  background-color: var(--blue-2);
  border-color: var(--blue-2);
  color: white;
}

.calc-size .link-save, .calc-size .link-save-error {
  margin-left: auto;
}

.calc-form-table,
.calc-form-table-heading,
.calc-form-table-item {
  border-collapse: collapse;
  border-spacing: 0;
}

.link-profit,
.link-profit-contract,
.link-profit-date,
.link-profit-dates {
  display: inline-block;
  font-size: 14px;
  margin-right: 7px;
  transition: 0.3s;
}

.link-profit-contract,
.link-profit-date,
.link-profit-dates {
  font-size: 10px;
}

.link-profit.is-active,
.link-profit-contract.is-active,
.link-profit-date.is-active,
.link-profit-dates.is-active {
  font-weight: 700;
}

.fc-form-error {
  display: none;
  font-size: 12px;
  color: #d90429;
  background-color: white;
  position: absolute;
  left: 11px;
  top: 9px;
  max-width: 305px;
  text-align: left;
  height: 31px;
}

.fc-form-error.is-active {
  display: inline-block;
}

.fc-form-edit {
  width: 10px;
  height: 10px;
  background-image: url(/assets/images/icons/edit-icon.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  position: absolute;
  top: 20px;
  left: 9px;
  z-index: 1;
  font-size: 0;
  cursor: pointer;
}

.calc-copy-btn {
  width: 12px;
  height: 12px;
  position: absolute;
  background-image: url(/assets/images/icons/copy-btn.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: 0;
  padding: 0;
  top: 32px;
  font-size: 0;
  left: 10px;
  display: inline-block !important;
  cursor: pointer;
  outline: none;
  transition: .3s;
}

.calc-copy-btn:active {
  background-size: 90%;
}

.calc-copy-btn+.calc-form-input {
  padding: 5px 16px 5px 31px;
}

.calc-copy-btn:after {
  content: '';
  font-size: 13px;
  display: inline-block;
  transform: translateX(20px);
  line-height: 1;
  margin-top: -1px;
  background-color: white;
  padding-right: 60px;
  transition: .3s;
  opacity: 0;
  text-align: left;
  visibility: hidden;
}

.calc-copy-btn.copy-success:after {
  content: 'Copied.';
  visibility: visible;
  opacity: 1;
}

.futures-calc-expand .calc-copy-btn {
  width: 14px;
  height: 14px;
  top: 39px;
}

.calc-copy-btn.copy-success+.calc-form-input {
  color: white;
}

.futures-calc-expand .calc-copy-btn.copy-success:after {
  font-size: 14px;
}

.contract-choice-wrap {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.contract-choice-date,
.contract-choice-sep {
  font-size: 12px;
}

.contract-choice-links {
  display: flex;
  align-items: center;
}

.contract-choice-links .link-profit {
  font-size: 12px;
  margin: 0 4px;
}

.limitation .ss-list .ss-optgroup .ss-option.locked:before, .limitation .calc-tabs-content .calc-form-label:before {
  content: "";
  width: 12px;
  height: 12px;
  background-image: url(/assets/images/icons/lock.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 0;
  margin-top: -3px;
  display: inline-block;
  margin-right: 4px;
}

.limitation .ss-list .ss-optgroup .ss-option.locked {
  pointer-events: none;
  color: #999;
  cursor: not-allowed;
}

.limitation .calc-tabs-content .calc-form-label {
  opacity: .7;
  position: relative;
}

.limitation .link-profit-wrap .link-profit, .limitation .ui-slider {
  opacity: .7;
  pointer-events: none;
}

#limit1 .btn-container .link,
#limit2 .btn-container .link {
  margin-top: 10px;
  display: inline-block;
  text-decoration: underline;
}

.limitation .calc-form-input, .limitation .calc-control {
  pointer-events: none;
  cursor: not-allowed;
}

@media (min-width: 1280px) {
  .link-profit:hover {
    color: var(--lightblue-2);
  }
}

@media (max-width: 1439px) {
  .futures-calc-expand .text-sect .container {
    width: calc(100% - 40px);
  }
}

@media (max-width: 992px) {
  .futures-calc-expand .calc-form-risk {
    max-width: 100%;
  }

  .futures-calc-expand .calc-details-table-param {
    font-size: 14px;
  }

  .futures-calc-expand .calc .h3 {
    font-size: 24px;
  }

  .futures-calc-expand .calc-form-input,
  .futures-calc-expand .calc-form-label,
  .futures-calc-expand .calc-details-table-result {
    font-size: 14px;
  }

  .futures-calc-expand .calc-control .minus,
  .futures-calc-expand .calc-control .plus {
    margin-top: 1px;
  }

  .calc-form-1 .calc-form-row .calc-form-entry:first-of-type .calc-control {
    top: 24px;
    bottom: unset;
  }

  .futures-calc-expand .calc-form-1 .calc-form-row .calc-form-entry:first-of-type .calc-control {
    top: 25px;
  }

  .futures-calc-expand .calc-col .small-text {
    font-size: 20px;
  }

  .calc-size p {
    font-size: 13px;
  }

  .calc-size .btn {
    font-size: 14px;
  }

  .fc-form-error {
    color: var(--red-1);
    width: 100%;
    max-width: 100%;
    margin: -5px auto 25px 0;
    background-color: transparent;
    height: unset;
    position: static;
    font-size: 14px;
  }
}

@media (max-width: 1680px) {
  .calc-col:last-of-type .h3 .tooltip-content {
    right: -20px;
    left: unset;
  }

  .calc-col:last-of-type .h3 .tooltip-content:before {
    left: unset;
    right: 22px;
  }
}

@media (max-width: 992px) {
  .intro-sect {
    padding: 90px 0;
  }

  .calc,
  .calc-help {
    flex-direction: column;
  }

  .calc-tabs,
  .calc-form-action {
    flex-direction: column;
    align-items: initial;
  }

  .calc-note {
    padding-right: 0;
  }

  .markets-select datalist {
    width: 100%;
  }

  .calc-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .calc-form-result .calc-form-row {
    gap: 15px;
  }

  .calc-form-risk {
    max-width: 100%;
  }

  .calc-control {
    top: 24px;
    right: 3px;
    bottom: unset;
  }

  .calc-form-label[for='input5']+.calc-control,
  .calc-form-label[for='input6']+.calc-control {
    /* top: 24px;
    bottom: unset; */
  }

  .calc-control .minus,
  .calc-control .plus {
    width: 18px;
    height: 24px;
  }

  .futures-calc-expand .calc-control {
    bottom: unset;
    top: 25.5px;
  }

  .futures-calc-expand .calc-form-label[for='input5']+.calc-control,
  .futures-calc-expand .calc-form-label[for='input6']+.calc-control {
    /* top: 26px;
    bottom: unset; */
  }

  .contracts-scale div:nth-of-type(6) {
    left: 12.6%;
  }

  .contracts-scale div:nth-of-type(7) {
    left: 8.5%;
  }

  .contracts-scale div:nth-of-type(8) {
    left: 4.5%;
  }

  .futures-calc-expand .contracts-scale div:nth-of-type(6) {
    left: 12.7%;
  }

  .futures-calc-expand .contracts-scale div:nth-of-type(7) {
    left: 8.6%;
  }

  .futures-calc-expand .contracts-scale div:nth-of-type(8) {
    left: 4.6%;
  }

  .calc-form-risk-row-3 {
    display: none;
  }

  .calc-form-table-left,
  .calc-form-table-right {
    display: none;
  }

  .calc-form-table-heading {
    width: 140px;
  }

  .calc-size .link-save, .calc-size .link-save-error {
    font-size: 14px;
  }

  /* .calc-form-1 .calc-form-entry:nth-child(1) .calc-control {
    bottom: 24px;
  }

  .futures-calc-expand .calc-form-1 .calc-form-entry:nth-child(1) .calc-control {
    bottom: 17.5px;
  } */
}

@media (max-width: 860px) {

  .calc-form-table-left,
  .calc-form-table-right {
    display: block;
  }
}

@media (max-width: 576px) {
  .calc-details-delivery-row {
    gap: 18px;
  }

  .calc-size {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-size .btn {
    width: 100%;
  }

  .futures-calc-expand .calc-copy-btn {
    top: 38px;
  }

  .contract-choice-date,
  .contract-choice-sep {
    font-size: 9px;
  }

  .contract-choice-links .link-profit {
    font-size: 9px;
    margin: 0 3px;
  }
}

@media (max-width: 390px) {
  .calc-col {
    padding: 15px;
  }

  .calc-details-delivery-row {
    gap: 10px;
  }

  .tooltip-content {
    padding: 5px 7px;
  }

  .calc-details-delivery-col div {
    gap: 5px;
  }
}

@media (max-width: 375px) {
  .contract-choice-links .link-profit {
    font-size: 8px;
    margin: 0 1.5px;
  }

  .contract-choice-date,
  .contract-choice-sep {
    font-size: 8px;
  }
}

@media (max-width: 340px) {
  .tooltip-content {
    width: 220px;
  }

  .calc-details-delivery-col span {
    font-size: 10px;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 992px) {
    .calc-control {
      bottom: 8px;
    }

    .calc-form-table-row:first-child .calc-form-table-heading:first-child {
      border-top-width: 1.5px;
    }
  }
}