.wallet-section {
    top: 120px;
    position: absolute;
    inset-inline-start: 20%;
    width: 80%;
}
.wallet-section .container{
    background-color: var(--colorBackgroundMyAccountSection);
    border-radius: 16px;
    margin-bottom: 40px;
}
.wallet-section h3{
    font-weight: var(--fontWeight600);
}
/********************************/
.wallet-section .topup-btn{
  color: var(--colorBackgroundScroll);
  background-color: var(--colorBackgroundChangePass);
  border-radius: 100px;
  font-weight: var(--fontWeight500);
  padding: 12px 24px;
  height: 50px;
}
.wallet-section .topup-Wallet{
    width: fit-content !important;
}
/*cards on financial section*/
.wallet-cards {
  top: 100px;
}
.warning-card {
  background-color: var(--backgroundCardsDashboard);
  padding: 16px;
  border-radius: 16px;
  margin: 0;
}
.wallet-cards .warning-card h4{
  color: var( --colorNumberCardDashboard);
  font-weight: var(--fontWeight600);
}

.wallet-cards .warning-card p{
    color: var( --colorNumberParaghraphDashboard);
}
.warning-card {
  transition: all 0.3s ease;
  border: 1px solid transparent; 
}

.warning-card:hover {
  border: 1px solid var(--colorBackgroundScroll);   
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2); 
  transform: translateY(-3px);
}
/*********************************/
/*button*/
html[dir="rtl"] .modal-header .btn-close {
    margin-right: auto !important;
    margin-left: 0 !important;
}
.switch-btn{
    border: 1px solid var(--colorShowAllLink);
    color: var(--colorShowAllLink);
    border-radius: 100px;
    background: none;
}
.active-btn{
    background-color: var(--colorShowAllLink) !important;
    color: var(--colorBackgroundRowOdd) !important;
    border-radius: 100px !important;
}
.wallet-transactions-section .submittopup-btn{
    background: var(--colorButtonSave);;
    color: var(--whiteColor);
    width: 20%;
    border-radius: 100px;
}
/*********************************/
/*waring message*/
.wallet-section .warning-message{
    background-color: var(--colorBackgroundRowOdd);
    border-radius: 16px;
}
/*pagination style*/
.page{
  margin: 16px;
   
}
.page .pagination .page-link {
  border-radius: 500px;
  width: 40px;
  height: 40px;
  color: var(--colorHeadTableNewOrder);
  border: none;
}
.page .pagination .link{
  background: none;
}
.page .pagination .page-link:hover,
.page .pagination .link:focus{
    border: 1px solid var(--colorShowAllLink);
    background-color: rgba(233, 225, 255, 1);
    color: var(--colorShowAllLink);
    outline: none !important;
    box-shadow: none !important;
}
.active-page{
    border: 1px solid var(--colorShowAllLink) !important;
    background-color: rgba(233, 225, 255, 1) !important;
}

/***********************************/
/*table*/
.wallet-table .tableParent th,
.wallet-table .tableParent td {
  min-width: 80px;
  width: 140px;
  max-width: 140px !important;
}
.wallet-table .tableParent th:last-child,
.wallet-table .tableParent td:last-child {
  width: 140px;
  max-width: 140px;
  overflow: visible;
}
/**********************************/
.wallet-section .form-select,
.wallet-section input{
    background-color: rgb(237, 236, 236);/*var(--colorBackgroundFilterTable)*/
    border: none;
    border-radius: 500px;
    
}
.wallet-section .searchlarge input{
     background-color: var(--colorBackgroundFilterTable) !important;
}
.wallet-section .payment-select{
  padding-inline-end: 2rem;
  width: 280px;
}
.wallet-section .search img{
    width: clamp(14px, 1vw, 20px);
}

/****************************************/
/*modal details bank style*/
.wallet-section .modal-content{
    border-radius: 16px;
}
.wallet-section .modal .modal-header{
    border: none;
}

.wallet-section .modal-title{
    font-weight: var(--fontWeight700);
    text-transform: uppercase;
} 
.wallet-section .iteam{
  color: var(--colorlable) !important; /* placeholder color */
  padding-left: 24px;
  background-color: var(--colorBackgroundFilterTable);
}

/****************************************/
.d-custom-none {
    display: block !important;
}
.points-transactions-section li{
  list-style-type: inherit;
}
@media screen and (min-width: 991px) and (max-width: 1097px){
    .wallet-table .filterSearch{
        display: flex;
        gap: 16px;
    }

}
@media screen and (min-width: 1097px) {
    .d-custom-none {
        display: none !important;
    }
}
@media screen and (min-width:991px){
    .wallet-section .filterSearch {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .small{
        display: none !important;
    }
}

@media screen and (max-width:990px){
    .wallet-section {
        inset-inline-start: 0;
        width: 100%;
        top: 195px;
    }
    .wallet-section .searchsmall{
        display: block !important;
    }
    .wallet-section .searchlarge{
        display: none;
    }
    .wallet-section .filterSearch {
        padding-bottom: 8px !important;
        padding-top: 8px !important;
    }
    /*This is to open and close the menu that contains the filter fields so that they are not open by default.*/
    /*collaps menu*/
    .wallet-section #filterCollapse {
        display: flex;         
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 24px;
        overflow: hidden;      
        height: 0;             
        transition: height 0.3s ease; 
    }
    .wallet-section #filterCollapse.show {
        height: auto;         
    }

    .wallet-section #filterCollapse .iteam {
        width: calc((100% - 8px) / 2);
    }
    /*end collaps menu*/
    .wallet-section .container-modal{
        width: 100%  !important;
        height: 100%;
    }
    .wallet-section .modal-dialog{
       padding: 0 !important;
       border-radius: 0 !important;
    }
    .wallet-section .modal-content{
        border-radius: 0;
    }
    .wallet-transactions-section .submittopup-btn{
        width: 100% !important;
    }
    .wallet-section .Wallet-points-btns{
       padding-top: 12px !important;
       padding-bottom: 6px !important;
    }

}

@media screen and (max-width:770px){
    .wallet-section .search{
        width: 100%;
    }
    .wallet-section .heading{
        flex-direction: column;
        gap: 0 !important;
        padding-left: 8px;
    }
    .wallet-section .button-add{
        width: fit-content !important;
        padding-bottom: 8px;
    }
}
@media screen and (max-width:500px){
    .wallet-section .switch-btn{
        font-size: 12px;
    }
}

@media screen and (max-width:1900px) {
    .wallet-section table span{
        font-size: var(--fontSizeNewOrder);
    }
    
}
/* Redeem button — match your portal purple (same as active tabs) */
.wallet-section .redeem-btn,
.wallet-section .redeem-btn.btn {
    height: 50px;
    border-radius: 100px !important;
    border: 0 !important;
    background-color: var(--colorShowAllLink) !important; 
    color: var(--colorBackgroundRowOdd) !important; 

    font-weight: var(--fontWeight600);
    font-size: 16px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 32px !important;
    line-height: 1;
    box-shadow: none !important;
}

/* keep same look on hover/focus/active (avoid bootstrap effects) */
.wallet-section .redeem-btn:hover,
.wallet-section .redeem-btn:focus,
.wallet-section .redeem-btn:active,
.wallet-section .redeem-btn:focus-visible {
    background-color: var(--colorShowAllLink) !important;
    color: var(--colorBackgroundRowOdd) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Align redeem button with input (same baseline) */
.redeem-container .row.align-items-center {
    align-items: flex-end !important; /* align columns to bottom */
}

.redeem-container .redeem-btn {
    height: 50px;
    margin-bottom: 2px; /* tiny tweak to match input rounding */
}

/* Make redeem input same height as redeem button */
.redeem-container .redeem-input {
    height: 50px;
    border-radius: 100px; 
    padding-left: 20px;
}

/* Instructions box like design */
.wallet-section .warning-message {
    background-color: var(--colorBackgroundRowOdd);
    border-radius: 16px;
    padding: 16px 20px;
}

/* dashed separator like ---- */
.wallet-section .dash-separator {
    width: 100%;
    border-bottom: 2px dashed rgba(0,0,0,0.1);
}

/* Notes truncate with ellipsis */
.wallet-table .notes-ellipsis {
    display: -webkit-box;
    max-width: 350px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
    vertical-align: middle;
    cursor: default;
    word-break: break-word;
}
/* When using flex, disable Bootstrap v4 float/negative-margins behavior */
.form-check.d-flex {
    padding-left: 0 !important;
    padding-inline-end: 0 !important;
}

.form-check.d-flex .form-check-input {
    float: none !important;
    margin: 0 !important;
    position: static !important;
}
.wallet-section .referral-code-description {
    color: var(--colorlable);
    line-height: 1.8;
}

.wallet-section .referral-code-value {
    text-align: center;
    letter-spacing: 2px;
    font-weight: var(--fontWeight600);
}
/* give consistent spacing between checkbox and label */
html[dir="ltr"] .form-check.d-flex .form-check-input {
    margin-right: .5rem !important;
}

html[dir="rtl"] .form-check.d-flex .form-check-input {
    margin-left: .5rem !important;
}
