@use '../../common/color.module.scss';

@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins/breakpoints';

.topButtons {
  margin-right: 30px;
  display: flex;
  justify-content: flex-end;
}

.counter {
  position: absolute;
  text-align: center;
  font-weight: bold;
  margin-top: -42px;
  margin-left: -16px;
}

.balance {
  font-weight: bold;
}

.paymentSelection {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.paymentSelectionSelect {
  width: 100%;
}

.paymentSelectionSelect select {
  height: 50px;
}

.bottomButtons {
  margin-top: 10px;
  margin-right: 30px;
  display: flex;
  justify-content: space-between;

  .primaryButtons {
    display: flex;
    // width: 260px;
    justify-content: space-between;
  }
}

.payWithTronlink {
  display: none;
  text-align: center;
  margin-top: 50px;
}

.pleaseDontLeavePageWilePaying {
  color: color.$color-red;
  display: inline-block;
  margin-right: 7px;
  line-height: 33px;
  font-weight: bold;
  font-size: 17px;

  &.showOnMobile {
    text-align: right;
    display: none;
    padding-right: 28px;
  }
}

/*   cart   */

.couponuseForm {
  width: 100%;
}

.formRow {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.formRowItem {
  flex: 1;
  min-width: 0;
}

.formRowItem .bottomButtons {
  display: flex;
  justify-content: flex-end;
  margin-right: 0;
}

.formRowItem .primaryButtons {
  width: 100%;
}

.formRowItem input {
  height: 40px;
}

.formRowItem .btnPrimary {
  width: 100%;
  height: 40px;
  white-space: nowrap;
}

/* paments mods infobox */
.paymentInfoContainer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #fe9134;
  border-radius: 8px;
  padding: 20px 25px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Заголовок контейнера */
.paymentInfoContainer h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Иконка перед заголовком */
.paymentInfoContainer h4::before {
  content: "ℹ️";
  font-size: 20px;
}

/* Текст описания */
.paymentInfoContainer div {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 8px 0;
}

@include media-breakpoint-down(sm) {
  .bottomButtons {
    button {
      margin: 0 1px;
      white-space: nowrap;
      font-size: 14px;
    }
  }

  .payWithTronlink {
    display: block;
  }

  .formRow {
    flex-direction: column;
    gap: 15px;
  }

  .formRowItem {
    width: 100%;
    flex: auto;
  }

  /*
  .formRowItem .bottomButtons {

  }
  */

  .formRowItem .btnPrimary {
    width: 100%;
  }
}

@include media-breakpoint-down(md) {
  .pleaseDontLeavePageWilePaying {
    &.showOnDesktop {
      display: none;
    }

    &.showOnMobile {
      display: block;
    }
  }
}
