@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: "Manrope", sans-serif;
}

body{
        background-color: rgb(255, 255, 255);

}


/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  --_m: 
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}


body {
    font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    overscroll-behavior-y: contain;
}


/* Основные стили для модального окна */
.modal-dialog {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    margin: 30px auto;
}

.modal-content {
    max-height: 80vh;
    overflow: hidden;
}

.modal-body {
    overflow-y: auto;
    max-height: calc(80vh - 100px);
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Стили для контейнера кнопок */
.badge-container {
    display: flex;        /* Все элементы в одну строку */
    justify-content: center; /* Выравнивание по центру */
    flex-wrap: nowrap;    /* Запрет на перенос элементов */
    gap: 10px;            /* Расстояние между кнопками */
    margin-bottom: 20px;  /* Отступ от кнопок до видео */
}

/* Стили для видео */
video {
    max-height: 55vh;
    max-width: 90vw;
    height: auto;
    width: auto;
     object-fit: cover;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .modal-dialog {
        margin: 20px;
        max-height: 90vh;
    }

    .modal-body {
        max-height: calc(90vh - 70px);
    }

    video {
        max-height: 60vh;
    }

    .badge-container {
        align-items: center;
    }
}

.badge-container span{
    cursor: pointer;
}


.h_t{
    margin-top: -30px;
    margin-bottom: -30px;
}

.back_url{
    margin-top: 2rem;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    color: rgb(89, 126, 247);
    font-size: 14px;
    text-decoration: none;
    border: 0px;
    padding: 0px;
    background: none;
    cursor: pointer;
}



.pay_container{
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    background-color: rgb(245, 245, 245);

    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: center;
}

.pay_container_am{
    width: 100%;
    text-align: center;
    color: rgb(18, 18, 18);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.alerts { 
    margin-top: -1.3rem;
    margin-left: 10px;
    margin-bottom: -2rem;
}

.alerts p{
        font-size: 12px;
    line-height: 1.5;
    color: rgb(245, 34, 45);
}

.btn_pay{
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    padding: 12px 0px;
    width: 100%;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    background-color: rgb(232, 232, 232);
    border: none;
    user-select: none;
    cursor: default;
    text-decoration: none;
}

.btn_pay.good{
    background-color: rgb(89, 126, 247);
    cursor: pointer;
}

.btn_pay.good:hover, .btn_pay.good:focus {
    background-color: rgb(133, 165, 255);
}

.btn_pay span{
    color: rgb(191, 191, 191);
}

.btn_pay.good span{
   color: rgb(255, 255, 255);
}


.security{
    margin-top: 1rem;
 align-items: flex-start;
     display: flex;
    flex-direction: row;
    -webkit-box-align: center;
    align-items: center;

}

.security svg {
    flex: 0 0 24px;
    margin-top: -16px;
    margin-left: 5px;
}

.security p {
    margin-left: 8px;
    color: rgb(140, 140, 140);
    font-size: 12px;
    line-height: 1.5;
}

.container {
    margin: 20px auto;
    width: 640px;
    padding: 30px;
}

.head_method {
    position: relative;
    width: 100%;
    padding: 7px 26px 0px 0px;
    -webkit-box-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid rgb(232, 232, 232);
}

.head_method > svg {
    flex: 0 0 32px;
}

.method_p {
    align-items: flex-start;
    /* margin-left: -140px; */
    margin-left: 50px;
    margin-top: -36px;
    display: flex;
    flex-direction: column;
    -webkit-box-align: center;
    align-items: left;
}

.method_p span {
    font-size: 12px;
    color: rgb(140, 140, 140);
    line-height: 1.5;
}

.method_p p {
    font-size: 14px;
    color: rgb(18, 18, 18);
    line-height: 1.3;
    padding: 4px 0px 2px;
}

.card.box1 {
    width: 350px;
    height: 500px;
    background-color: #3ecc6d;
    color: #baf0c3;
    border-radius: 8px 0 0 8px; 
}

.card.box2 {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
}

.text {
    font-size: 13px
}

.box2 .btn.btn-primary.bar {
    width: 20px;
    background-color: transparent;
    border: none;
    color: #3ecc6d
}

.box2 .btn.btn-primary.bar:hover {
    color: #baf0c3
}

.box1 .btn.btn-primary {
    background-color: #57c97d;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd
}

.box1 .btn.btn-primary:hover {
    background-color: #f6f8f7;
    color: #57c97d
}

.btn.btn-success {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none
}

.nav.nav-tabs {
    border: none;
    border-bottom: 2px solid #ddd
}

.nav.nav-tabs .nav-item .nav-link {
    border: none;
    color: black;
    border-bottom: 2px solid transparent;
    font-size: 14px
}

.nav.nav-tabs .nav-item .nav-link:hover {
    border-bottom: 2px solid #3ecc6d;
    color: #05cf48
}

.nav.nav-tabs .nav-item .nav-link.active {
    border: none;
    border-bottom: 2px solid #3ecc6d
}

.form-control {
    border: none;
    border-bottom: 1px solid #ddd;
    box-shadow: none;
    height: 20px;
    font-weight: 400;
    font-size: 14px;
    padding: 15px 0px;
    letter-spacing: 1.5px;
    border-radius: 0
}

.inputWithIcon {
    position: relative
}

img {
    width: 50px;
    height: 20px;
    object-fit: cover
}

.inputWithIcon span {
    position: absolute;
    right: 0px;
    bottom: 9px;
    color: #57c97d;
    transition: 0.3s;
    font-size: 14px
}

.form-control:focus {
    box-shadow: none;
    border-bottom: 1px solid #ddd
}

.btn-outline-primary {
    color: black;
    background-color: #ddd;
    border: 1px solid #ddd
}

.btn-outline-primary:hover {
    background-color: #05cf48;
    border: 1px solid #ddd
}

.btn-check:active+.btn-outline-primary,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show,
.btn-outline-primary:active {
    color: #baf0c3;
    background-color: #3ecc6d;
    box-shadow: none;
    border: 1px solid #ddd
}

.btn-group>.btn-group:not(:last-child)>.btn,
.btn-group>.btn:not(:last-child):not(.dropdown-toggle),
.btn-group>.btn-group:not(:first-child)>.btn,
.btn-group>.btn:nth-child(n+3),
.btn-group>:not(.btn-check)+.btn {
    border-radius: 50px;
    margin-right: 20px
}

form {
    font-size: 14px
}

form .btn.btn-primary {
    width: 100%;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #3ecc6d;
    border: 1px solid #ddd
}

form .btn.btn-primary:hover {
    background-color: #05cf48
}

@media (max-width:750px) {
    .container {
        padding: 10px;
        width: 100%
    }

    .text-green {
        font-size: 14px
    }

    .nav.nav-tabs .nav-item .nav-link {
        font-size: 12px
    }
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .box1 {
        padding: 20px; /* Меньше отступов внутри карточки */
        margin-bottom: 20px; /* Отступ между карточками */
        order: 1; /* Убедимся, что box1 всегда сверху */
    }

        .card.box1,
    .card.box2 {
        width: 100%;
            height: 105%;
        padding: 5px;
    }


    .h_t{
        margin-top: 0;
        margin-bottom: 0;
    }

    .card.box1{
        height: 120px;
        border-radius: 8px;
    }

    .box2 {
        padding: 20px;
        height: calc(100vh - 200px); /* Высота box2 будет рассчитываться исходя из высоты экрана и высоты box1 */
        overflow-y: auto; /* Позволяет прокрутку внутри box2, если контент больше высоты блока */
        order: 2; /* Убедимся, что box2 ниже box1 */
    }

    .container {
        display: flex;
        flex-direction: column; /* Столбцы выстраиваются вертикально на маленьких экранах */
    }
}