:root {
    --bg: white;
    --gray1: #444651;
    --gray2: #828689;
    --border: #EDF0F2;
    --borderh: #828689;
    --btnbg: #EF7403;
    --btnbgh: #1976D2;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Inter Tight", serif;
    box-sizing: border-box;
}

body {
    background-color: white;
}

a {
    text-decoration: rgb(255, 239, 239);
}

.calculate {
    margin-top: 3.6875vw;
    padding: 1vw 5vw 0vw 5vw;
}

.tab-wrapper {
    display: flex;
    align-items: center;
    padding: 0.312vw;
    background-color: #F9F9F9;
    border-radius: 5px;
    width: fit-content;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.tab-wrapper .active-bg {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    background-color: #42A5F5;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 0;
    width: auto;
}

.tab-wrapper .item {
    padding: 0.93vw 0.625vw;
    color: #444651;
    font-size: 0.833vw;
    font-weight: 600;
    border-radius: 5px;
    z-index: 1;
    transition: background-color 300ms ease;
}

.tab-wrapper .item.active {
    color: #FFFFFF;
}

.tab-wrapper .item:not(.active):hover {
    cursor: pointer;
    background-color: #C7D0DA;
}

.calc-cost, .calc-wholesale, .calc-america, .calc-address-delivery-manager, .calc-address-delivery-logist, .calc-address-delivery-director, .calc-OPEN-LANE, .calc-USA-OPT, .calc-america-electro {
    margin-top: 1vw;
    width: 100%;
    display: none;
    align-items: start;
    justify-content: space-between;
    gap: 2.15vw;
}

.calc-cost {
    display: flex;
}


.inputs, .outputs {
    padding: 0.93vw 0.625vw;
    border: 1px solid #EDF0F2;
    border-radius: 5px;
    width: calc(50% - 2.15vw);
    gap: 1vw 2vw;
    backdrop-filter: blur(10px);
    background-color: #F9F9F9;
}

.inputs {
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.item-gs {
    display: flex;
    gap: 4.65vw 2.79vw;
}

.item-gs .item {
    width: 50%;
}

.fd-rev {
    flex-direction: row;
}

.fd-rev .item {
    width: calc(50% - 0.895vw);
}

.btn-calc-wrapper {
    display: flex;
    gap: 4.65vw 2.79vw;
}

.btn-calc-wrapper .item {
    width: 50%;
}

.gs-2 {
    grid-column: span 2;
}

.inputs .title-inputs {
    color: #444651;
    font-size: 0.83vw;
    font-weight: 400;
}

.inputs .title-inputs:has(+ .switch-address-delivery) {
    opacity: 0.8;
    font-size: 0.76vw;
}

.inputs .item {
    display: flex;
    flex-direction: column;
    gap: 0.625vw;
}

.selects {
    position: relative;
}

.select-header {
    border: 1px solid #EDF0F2;
    background-color: var(--bg);
    font-size: 0.72vw;
    padding: 0.615vw;
    border-radius: 5px;
    cursor: pointer;
    transition: border-radius 300ms ease;
    position: relative;
}

.select-body {
    position: absolute;
    background-color: var(--bg);
    width: 100%;
    max-height: 0%;
    font-size: 0.72vw;
    font-weight: 400;
    overflow-y: auto;
    border: 0px solid #EDF0F2;
    border-top: none;
    z-index: 999;
    transition: max-height 300ms ease, border 300ms ease;
}

.select-body.active {
    max-height: 500px;
    border: 1px solid #EDF0F2;
    border-top: none;
}

.select-body .select-item {
    padding: 0.615vw;
    cursor: pointer;
    background-color: var(--bg);
    transition: background-color 300ms ease, color 300ms ease;
}

.select-body .select-item:hover {
    background-color: #42A5F5;
    color: #FFFFFF;
}

input[type="number"],
input[type="text"] {
    padding: 0.615vw;
    border-radius: 5px;
    font-size: 0.72vw;
    outline: none;
    border: 1px solid #EDF0F2;
    background-color: var(--bg);
    width: 100%;
    transition: border 300ms ease;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


input[type="number"]:not(:disabled):hover,
input[type="text"]:not(:disabled):hover {
    border: 1px solid #828689;
}

.switch {
    font-size: 0.88vw;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch.switch-address-delivery {
    margin: auto 0;
    opacity: 0.8;
    font-size: 0.66vw;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}


.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    border: 1px solid #EDF0F2;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    left: 0.2em;
    bottom: 0.2em;
    background-color: #42A5F5;
    border-radius: inherit;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.switch input:checked + .slider {
    box-shadow: 0 0 1px #42A5F5;
    border: 1px solid #42A5F5;
}

.switch input:checked + .slider:before {
    transform: translateX(1.5em);
}

.button {
    border-radius: 5px;
    background-color: #42A5F5;
    color: #FFFFFF;
    padding: 1.041vw 1.25vw;
    text-align: center;
    font-weight: 400;
    font-size: 0.833vw;
    transition: background-color 300ms ease;
}

.button:hover {
    cursor: pointer;
    background-color: #1976D2;
}

.button.btn-open-credit-modal {
    background-color: #52ae30;
}

.button.btn-open-credit-modal:hover {
    background-color: #EF7403;
}

.outputs {
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 0.83vw;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.2));
}

.outputs .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.833vw;
    color: #444651;
    padding: 0.625vw;
    padding-bottom: 5px;
    border-bottom: 2px solid #42A5F5;
}

.outputs .item.all-price {
    font-size: 0.93vw;
}

.outputs .item.payment {
    font-style: italic;
    border-bottom: none;
    font-weight: 400;
    font-size: 0.72vw;
    margin-top: -0.625vw;
}

.outputs .bottom-section {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.currencyExchange-wrapper {
    background-color: #C7D0DA;
    color: #444651;
    padding: 0.625vw;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 0.625vw;
    width: 40%;
}

.currencyExchange-wrapper .currency-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625vw;
}

.currencyExchange-wrapper .info-btn-wrapper {
    text-align: center;
    padding: 0.625vw;
}











.settings-svg {
    width: 1.56vw;
    display: flex;
    position: fixed;
    right: 2.08vw;
    bottom: 1.04vw;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

.settings-svg path {
    fill: #42A5F5;
    transition: fill 300ms ease;
}

.settings-svg:hover {
    transform: rotate(180deg);
}

.settings-svg:hover path {
    fill: #1976D2;
}











.text-field__icon-2 {
    position: relative;
}

.text-field__icon-2::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    background-color: var(--bg);
    color: #444651;
    border: 1px solid #bdbdbd;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.text-field__icon-2::after {
    content: '';
    color: #444651;
    position: absolute;
    display: flex;
    align-items: center;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
}

.text-field__icon-2 input {
    padding-left: 3rem;
}

.text-field__icon-2_search::after {
    width: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='444651' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}



.text-field__input_state {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 8.5vw;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #444651;
    background-color: var(--bg);
    background-clip: padding-box;
    border: 1px solid #bdbdbd;
    transition: border-color 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.text-field__input_state::placeholder {
    color: #444651;
    opacity: 0.4;
}

.text-field__input_state:focus {
    color: #444651;
    background-color: var(--bg);
    border-color: #bdbdbd;
    outline: 0;
}

.text-field__input_state:disabled,
.text-field__input_state[readonly] {
    background-color: #444651;
    opacity: 1;
}









.currency-cross-wrapper {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 9;
}

.currency-cross-wrapper .fon {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 11;
    background-color: rgba(0, 0, 0, 0.5)
}

.currency-cross-wrapper .currency-cross-main {
    z-index: 12;
    border-radius: 5px;
    padding: 1.041vw;
    position: absolute;
    width: 20%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #F9F9F9;
    color: #444651;
}

.currency-cross-wrapper .title-cross {
    text-align: center;
    font-size: 1.25vw;
}

.currency-cross-wrapper .item-s {
    margin-top: 1.25vw;
    display: flex;
    flex-direction: column;
    gap: 0.126vw;
}

.currency-cross-wrapper .btn-save-cross {
    margin-top: 1.25vw;
    border-radius: 5px;
    background-color: #42A5F5;
    color: #FFFFFF;
    padding: 1.041vw 1.25vw;
    text-align: center;
    font-weight: 400;
    font-size: 0.833vw;
    transition: background-color 300ms ease;
}

.currency-cross-wrapper .btn-save-cross:hover {
    cursor: pointer;
    background-color: #1976D2;
}







.calc-credit-wrapper {
    display: none;
}
.calc-credit-wrapper .fon {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 12;
  backdrop-filter: blur(2vw);
  -webkit-backdrop-filter: blur(2vw);
}
.calc-credit-wrapper .main {
  max-width: 20vw;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 1.875vw;
  border-radius: 0.625vw;
  z-index: 13;
}
.calc-credit-wrapper .main .top-elements {
  display: flex;
  align-items: center;
  gap: 0.625vw;
}
.calc-credit-wrapper .main .top-elements .title {
  text-align: left;
  font-family: "Wix Madefor Display", serif;
  font-size: 1.25vw;
  font-weight: 600;
  color: var(--gray1);
}
.calc-credit-wrapper .main .top-elements .exit {
  width: 3.125vw;
  height: 3.125vw;
  border: 1px solid var(--border);
  border-radius: 0.2604166667vw;
  transition: border 300ms ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
.calc-credit-wrapper .main .top-elements .exit:hover {
  border: 1px solid var(--borderh);
}
.calc-credit-wrapper .main .top-elements .exit:hover svg {
  fill: var(--borderh);
}
.calc-credit-wrapper .main .top-elements .exit svg {
  width: 1.1458333333vw;
  height: 1.1458333333vw;
}
.calc-credit-wrapper .main .inputs-container {
  margin-top: 1.25vw;
  display: flex;
  flex-direction: column;
  gap: 0.625vw;
}
.calc-credit-wrapper .main .inputs-container input {
  padding: 0.8333333333vw 1.25vw;
  border-radius: 0.2604166667vw;
  outline: none;
  border: 1px solid var(--border);
  transition: border 300ms ease;
}
.calc-credit-wrapper .main .inputs-container input:hover, .calc-credit-wrapper .main .inputs-container input:focus {
  border: 1px solid var(--borderh);
}
.calc-credit-wrapper .main .selects-el {
  position: relative;
}
.calc-credit-wrapper .main .selects-el .select-header {
  padding: 0.8333333333vw 1.25vw;
  border-radius: 0.2604166667vw;
  outline: none;
  border: 1px solid var(--border);
  position: relative;
  transition: border 300ms ease;
}
.calc-credit-wrapper .main .selects-el .select-header span {
  color: var(--gray1);
  font-family: "Inter Tight", serif;
  font-size: 0.7291666667vw;
  font-weight: 400;
}
.calc-credit-wrapper .main .selects-el .select-header:hover, .calc-credit-wrapper .main .selects-el .select-header:focus {
  border: 1px solid var(--borderh);
  cursor: pointer;
}
.calc-credit-wrapper .main .selects-el .select-body {
  position: absolute;
  background-color: white;
  width: 100%;
  max-height: 0%;
  font-size: 0.8333333333vw;
  font-weight: 400;
  overflow-y: auto;
  border: 0px solid #EDF0F2;
  border-top: none;
  z-index: 999;
  box-shadow: none;
  overflow-y: hidden;
  transition: max-height 300ms ease, border 300ms ease, box-shadow 300ms ease;
}
.calc-credit-wrapper .main .selects-el .select-body.active {
  max-height: 500px;
  border: 1px solid #EDF0F2;
  border-top: none;
  -webkit-box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.1);
}
.calc-credit-wrapper .main .selects-el .select-body .item {
  padding: 0.625vw;
  cursor: pointer;
  color: var(--gray1);
  font-family: "Inter Tight", serif;
  font-size: 0.7291666667vw;
  font-weight: 400;
  background-color: white;
  transition: background-color 300ms ease, color 300ms ease;
}
.calc-credit-wrapper .main .selects-el .select-body .item:hover {
  background-color: var(--btnbgh);
  color: #FFFFFF;
}
.calc-credit-wrapper .main .errors {
  margin-top: 0.625vw;
  color: red;
  font-family: "Inter Tight", serif;
  font-size: 0.7291666667vw;
  font-weight: 400;
}
.calc-credit-wrapper .main .btn-calc {
  margin-top: 0.625vw;
  background-color: var(--btnbg);
  border-radius: 0.2604166667vw;
  padding: 1.0416666667vw 1.25vw;
  text-align: center;
  color: white;
  font-family: "Inter Tight", serif;
  font-weight: 400;
  font-size: 0.8333333333vw;
  transition: background-color 300ms ease;
  border: none;
  width: 100%;
}
.calc-credit-wrapper .main .btn-calc:hover {
  background-color: var(--btnbgh);
  cursor: pointer;
}
.calc-credit-wrapper .main .money-result {
  margin-top: 0.625vw;
  background-color: rgba(25, 118, 210, 0.1);
  border-radius: 0.2604166667vw;
  padding: 1.0416666667vw 1.25vw;
  text-align: center;
  color: var(--gray1);
  font-family: "Inter Tight", serif;
  font-weight: 400;
  font-size: 0.9375vw;
  width: 100%;
}
.calc-credit-wrapper .main .money-result span {
  font-weight: 600;
}
.calc-credit-wrapper .main .note {
  margin-top: 0.625vw;
  color: var(--gray2);
  font-family: "Inter Tight", serif;
  font-size: 0.7291666667vw;
  font-weight: 400;
}

.calc-credit-wrapper .main .note span {
    font-size: 0.625vw;
}













@media only screen and (max-width: 900px) {
    /* 430px = 100vw */

    .calculate {
        margin-top: 18.6vw;
    }

    *::-webkit-scrollbar {
        display: none;
    }

    .tab-wrapper {
        width: auto;
        overflow: scroll;
    }

    .tab-wrapper .item {
        padding: 4.18vw 2.79vw;
        font-size: 3.25vw;
        white-space: nowrap;
    }

    .calc-cost,
    .calc-wholesale,
    .calc-america,
    .calc-address-delivery-manager,
    .calc-address-delivery-logist,
    .calc-address-delivery-director,
    .calc-OPEN-LANE,
    .calc-USA-OPT,
    .calc-america-electro {
        flex-direction: column;
    }

    .inputs, .outputs {
        width: 100%;
        padding: 4.18vw 2.79vw;
        gap: 4.65vw 2.79vw;
    }

    .inputs .title-inputs {
        font-size: 3.5vw;
    }

    .select-header, .select-body {
        font-size: 3.5vw;
    }

    .select-header {
        padding: 3.26vw;
    }

    .select-body .select-item {
        padding: 3.26vw;
    }

    input[type="number"],
    input[type="text"] {
        padding: 3.26vw;
        font-size: 3.5vw;
    }

    .text-field__input_state {
        padding-left: 3rem !important;
    }

    .switch {
        font-size: 3.5vw;
    }

    .inputs .title-inputs:has(+ .switch-address-delivery) {
        font-size: 3vw;
    }


    .switch.switch-address-delivery {
        font-size: 3vw;
    }

    .button {
        padding: 5.12vw 1vw;
        font-size: 3.07vw;
        white-space: nowrap;
    }

    .btn-open-credit-modal {
        width: 100%;
        font-size: 4.65vw;
    }

    .outputs .item {
        font-size: 3.5vw;
        padding: 2.79vw;
    }

    .outputs .item.all-price {
        font-size: 4.1vw;
    }

    .outputs .item.payment {
        font-size: 3.5vw;
    }

    .outputs .bottom-section {
        flex-direction: column;
        gap: 4.65vw;
    }

    .currencyExchange-wrapper {
        padding: 3.07vw;
        gap: 3.07vw;
        width: 100%;
    }

    .currencyExchange-wrapper .currency-item {
        gap: 3.07vw;
    }

    .currency-cross-wrapper {
        position: fixed;
    }

    .currency-cross-wrapper .fon {
        position: fixed;
    }

    .currency-cross-wrapper .currency-cross-main {
        padding: 5.12vw;
        width: 90%;
    }

    .currency-cross-wrapper .title-cross {
        font-size: 6.15vw;
    }

    .currency-cross-wrapper .item-s {
        margin-top: 3.07vw;
        gap: 1.53vw;
    }

    .currency-cross-wrapper .btn-save-cross {
        margin-top: 3.07vw;
        padding: 5.12vw;
        font-size: 3.5vw;
    }

    .settings-svg {
        width: 6.97vw;
        right: 3.26vw;
        bottom: 3.26vw;
    }

    .calc-credit-wrapper .main {
        padding: 5.12vw;
        max-width: 90%;
        width: 90%;
    }

    .calc-credit-wrapper .main .top-elements {
        gap: 2.79vw;
    }

    .calc-credit-wrapper .main .top-elements .title {
        font-size: 5.58vw;
    }

    .calc-credit-wrapper .main .top-elements .exit {
        width: 13.95vw;
        height: 13.95vw;
        border-radius: 1.16vw;
    }

    .calc-credit-wrapper .main .top-elements .exit svg {
        width: 4.65vw;
        height: 4.65vw;
    }

    .calc-credit-wrapper .main .inputs-container {
        margin-top: 5.58vw;
        gap: 3.72vw;
    }

    .calc-credit-wrapper .main .inputs-container input,
    .calc-credit-wrapper .main .inputs-container .selects-el .select-header,
    .calc-credit-wrapper .main .inputs-container .selects-el .select-body .item {
        padding: 3.26vw;
        font-size: 3.5vw;
    }

    .calc-credit-wrapper .main .inputs-container .selects-el .select-header span {
        font-size: 3.5vw;
    }

    .calc-credit-wrapper .main .btn-calc {
        margin-top: 3.72vw;
        border-radius: 1.16vw;
        padding: 4.65vw 5.58vw;
        font-size: 4.18vw;
    }

    .calc-credit-wrapper .main .errors {
        margin-top: 2.79vw;
        font-size: 3.25vw;
    }

    .calc-credit-wrapper .main .money-result {
        margin-top: 2.79vw;
        border-radius: 1.16vw;
        padding: 4.65vw 5.58vw;
        font-size: 4.18vw;
    }

    .calc-credit-wrapper .main .note {
        margin-top: 2.79vw;
        font-size: 3.25vw;
    }

    .calc-credit-wrapper .main .note span {
        font-size: 2.79vw;
    }
}