/*---------------------------------------------------------------------------------DEFAULT-----------------------------------------------------------------------------*/
* {
    padding: 0px;
    margin: 0px;
    border: 0px;
}
:root{
    --radius: 10px;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100% !important;
    height: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* scrollbar-gutter: stable; */
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 0; 
    
}

body {
    font-family: 'Inter', sans-serif;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    background: #fff;
    color: #000;
    line-height: 1.2;
    overflow-x: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
}

input::placeholder {
    color: inherit;
}

input,
select,
button {
    font-family: inherit;
    font-weight: inherit;
}

dl,
ol,
ul {
    margin: unset;
}

button:focus {
    outline: none;
}


/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/

/*-------------------------------------------------------------------------COMMON---------------------------------------------------------------------------------*/
:root {
    --main-color: #FC9AFF;
}

[class*="__container"] {
    padding: 20px 26px;
}

body {
    background: linear-gradient(to bottom, #000 0%, #000 25%, #000 50%, #000 30%, #120a2c 100%);
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------------*/

.exchange {
    margin: 0px 0 0px;
    background: linear-gradient(to bottom, #000 0%, #000 25%, #000 50%, #000 30%, #120a2c 100%);
    flex: 1;
}

.exchange__frame {
    max-width: 408px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    height: auto;
}

#frame-main.exchange__frame {
    background: none;
}

.exchange__logo {
    margin: 7px 0 38px;
}

.exchange__logo img {
    vertical-align: middle;
    width: 240px;
}

.exchange__buttons {
    display: grid;
    gap: 13px;
}
.exchange__buttons p{
       font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 17px;
    /*background: #2a2a2a;*/
    padding: 10px 0px 5px;
    border-radius: var(--radius);
    position: relative;
}
.exchange__buttons .pLine{
    line-height: 17px;
  /*  background: #2a2a2a;
    padding: 15px 15px 10px;*/
    border-radius: var(--radius);
    margin-bottom: 10px;
}
.pLine .exchange__button{
    /*border-color: #fff;*/
}
.exchange__buttons .line{
    margin-top: 50px;
    position: relative;
}
.exchange__buttons .line:before{
    content:"";
    display: block;
    position: absolute;
    top: -30px;
/*    background: #025783;*/
    background: #3a3737;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    height: 1px;;;;;;
    left: 0;
    z-index: 0;
}
.exchange__button {
    display: block;
    outline: none;
    appearance: none;
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    color: #fff;
    border: 1px solid #575757;
    border-radius: var(--radius);
    padding: 18px 10px;
    width: 100%;
    background-color: transparent;
    cursor: pointer;
    transition: all .3s ease;
}

.exchange__button:hover {
    background-color: var(--main-color);
    border-color: transparent;
    color: #000;
}

.exchange__button.exchange__button_filled {
    font-weight: 600;
    background-color: var(--main-color);
    border-color: transparent;
    transition: all .2s ease;
    color: #000;
}

.exchange__button.exchange__button_filled:hover {
    opacity: 0.9;
}

/*#frame-main .exchange__button_filled {
    margin-bottom: 20px;
}*/

.exchange__title {
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
    margin-bottom: 27px;
}

.exchange__rates {
    display: grid;
    gap: 13px;
    margin-bottom: 25px;
}

.exchange__rate {
    border-radius: var(--radius);
    background-color: #17161a;
    padding: 12px 10px;
}

.exchange__rate-title {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #707882;
    opacity: 0.7;
}

.exchange__rate-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
    line-height: 1.5;
}

.exchange__note {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #575757;
    border-radius: var(--radius);
    padding: 16px 13px;
}

.exchange__note svg {
    vertical-align: middle;
}

.exchange__note-text {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
    color: #fff;
    opacity: 0.8;
    text-align: start;
}

.exchange__highlight {
    font-weight: 500;
    text-wrap: balance;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    color: var(--main-color);
    margin: 33px 0 36px;
}

.exchange__about {
    border-radius: var(--radius);
    background-color: #17161a;
    padding: 21px 15px;
    text-align: start;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 30px;
}

.exchange__about p:not(:last-child) {
    margin-bottom: 15px;
}

.exchange__about span {
    font-weight: 600;
    display: block;
    padding-bottom: 3px;
}

.highlight {
    color: var(--main-color);
}

.tabs__header {
    position: relative;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    margin-bottom: 34px;
}

.header-tabs__item {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #707882;
    z-index: 1;
    cursor: pointer;
    width: 100%;
    padding: 13px 0;
}

.header-tabs__item.active {
    color: #000;
}

.header-tabs__glider {
    position: absolute;
    display: flex;
    height: 2px;
    top: 4px;
    height: 35px;
    width: 50%;
    background-color: var(--main-color);
    z-index: 0;
    border-radius: 5px;
    transition: 0.4s ease-out;
}

.header-tabs__item[data-tab="1"].active~.header-tabs__glider {
    transform: translateX(0);
}

.header-tabs__item[data-tab="2"].active~.header-tabs__glider {
    transform: translateX(100%);
}

.tabs__block.tab {
    display: block;
    margin-bottom: 33px;
}

.tabs__block.tab.active {
    display: block;
}

.tab__amount {
    border-radius: var(--radius);
    background-color: #17161a;
    padding: 17px 10px;
    margin-bottom: 34px;
    position: relative;
}
.tab__amount .currency-error{
    position: absolute;
    color: red;
    left: 0;
    text-align: center;
    width: 100%;
    bottom: -21px;
    font-size: 10px;
}

.tab__amount input {
    background-color: transparent;
    outline: none;
    appearance: none;
    border: none;
    width: 100%;
    color: #fff;
}

.tab__amount input::placeholder {
    color: #363a40;
}

.tab__amount label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #898989;
    margin-bottom: 6px;
}

.tab__amount .currency,
.tab__amount input {
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1;
}

.tab__amount .currency {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #363a40;
    /* Цвет для текста "RUB" */
    pointer-events: none;
    /* Чтобы нельзя было выделять */
}

.tab-amount__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.tab__input{
     transition: all .3s ease;
}
.tab__input.highlight{
    padding-right: 15%;
   
}
.tab__input-lines {
    display: grid;
    gap: 14px;
}

.tab__input-line {
    position: relative;
}

.tab__input-line input {
    background-color: #17161a;
    border: 1px solid #30353b;
    border-radius: 8px;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #fff;
    padding: 18px 15px;
    width: 100%;
    outline: none;
    transition: all .3s ease;
}

.tab__input-line input:hover,
.tab__input-line input:focus .tab__input-line input:focus-visible {
    border-color: #66707a;
}

.tab__input-line label {
    position: absolute;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #707882;
    left: 15px;
    top: 50%;
    margin: -8px 0 0;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    pointer-events: none;
}

.tab__note {
    font-weight: 300;
    font-size: 12px;
    line-height: 1.4;
    color: #898989;
    display: block;
    text-align: start;
    margin-top: -10px;
}

.tab__agreement {
    margin-bottom: 35px;
}

.tab__agreement-label {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

#agreeCheckbox {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.tab__agreement-icon {
    height: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #30353b;
    border-radius: 5px;
    transition: all .3s ease;
}

.tab__agreement-icon:hover {
    border-color: #66707a;
}

.tab__agreement-icon svg {
    transform: scale(0);
    transition: transform 0.3s;
    width: 100%;
}

#agreeCheckbox:checked+.tab__agreement-icon svg {
    transform: unset;
}

#agreeCheckbox:checked+.tab__agreement-icon {
    background-color: #246bfd;
    border-color: transparent;
}

.tab__agreement span {
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: #707882;
    line-height: 1;
}

.tab__input-line input.has-text~label,
.tab__input-line input:focus~label {
    font-size: 12px;
    transform: translateY(-17px);
}

.exchange__requests {
    margin-bottom: 37px;
}

.requests__group {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 27px;
}

.requests__date {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    text-align: left;
}

.request {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    background: #17161a;
    border-radius: var(--radius);
}

.request__status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.request__status-icon svg {
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.request__status {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
}

.request__number {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    color: #707882;
    text-align: left;
}
.obmenExchange{ 
    height: 100vh; /* или другое фиксированное значение */
    overflow: auto ; /* Включить скролл */

}
.tab__input-line input.has-text~label,
.tab__input-line input:optional~label {
    font-size: 12px;
    transform: translateY(-17px);
}
.exchange__tabs .tabs__inner{
    z-index: 999;
    margin-bottom: 35vh;
}

.t-form-success-popup__window {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: none;
}

.t-form-success-popup__window.show {
    display: flex;
}
/* Карточка попапа */
.t-form-success-popup__wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  max-width: 360px;
  width: 95%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

/* Кнопка закрытия */
.t-form-success-popup__close-icon {
 position: absolute;
    top: 20px;
    right: 20px;
    width: 14px;
    height: 14px;
    cursor: pointer;
  fill: #999;
  transition: fill .2s ease;
}
.t-form-success-popup__close-icon:hover {
  fill: #333;
}

/* Иконка успешной отправки */
.t-form-success-popup__wrapper > svg:nth-of-type(2) {
  display: block;
  margin: 0 auto 20px;
}

/* Текст попапа */
.t-form-success-popup__text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* Мелкие тонкие детали */
.t-descr_sm {
  padding: 0;
  margin: 0;
}
.topTtitle{
    position: relative;
}
.topTtitleLeft{
    position: absolute;
    left: 0;
    top: 0px;
    background: #17161a;
    border-radius: var(--radius);
    width: 35px;
    height: 30px;
    line-height: 27px;
}
.topTtitleLeft svg{
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: 0;
    top: 5px;
}
.exchange__note-dateTime{
        font-weight: 500;
    font-size: 10px;
    line-height: 1.4;
    color: #fff;
    opacity: 0.8;
    text-align: center;
    position: relative;
    top: -18px;
}
.tabs__inner .exchange__rates .exchange__rate{
    display: none;
}
.tabs__inner.buy .exchange__rates .exchange__rate_type-buy{
    display: block;
}
.tabs__inner.sell .exchange__rates .exchange__rate_type-sell{
    display: block;
}
.tabs__inner .exchange__rates .exchange__rate-title{
    display: block;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: -0.02em;
    text-align: center;
    color: #898989;
}

body .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default, 
body .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current, 
body .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current{
    background: #fc9aff;
    box-shadow: #db83dd 0 1px 3px 0 inset;
    color: #000;
}
body .xdsoft_datetimepicker .xdsoft_calendar td:hover, 
body .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div:hover{
    color: #000 !important;
    background: #fc9aff !important;
}