@font-face {
    font-family: Urbanist;
    src: url('../../fonts/Urbanist-Bold.ttf');
    font-weight: 700;
}

#affwp-affiliate-dashboard-referrals table thead th {
    background: unset;
    border: unset;
    background: unset;
    border: unset;
    color: #000000DE;
    font-size: 14px;
    font-weight: 600;
    font-family: Montserrat, serif;
}
#affwp-affiliate-dashboard-referrals table thead tr {
    border-bottom: 2px solid #0000001F;
}
#affwp-affiliate-dashboard-referrals table tbody td {
    border: unset;
    color: #000000DE;
    font-family: Gravity, serif;
    font-size: 16px;
    font-weight: 350;
    padding: 18px 1em;
}
#affwp-affiliate-dashboard-referrals table tbody tr {
    border-bottom: 1px solid #0000001F;
}
#affwp-affiliate-dashboard-referrals table tbody td {
    font-family: Gravity, serif;
    vertical-align: middle;
}

/* Search and Pagination Styles */
.wc-product-table-select-filters input[type=search] {
    box-sizing: border-box;
    display: inline-block;
    float: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: normal;
    min-height: 0;
    vertical-align: baseline;
    width: auto;
    -webkit-appearance: none;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .125);
    color: #43454b;
    height: 32px;
    min-width: auto;
    padding: 0 .5em;
    border: 1px solid #BFA671 !important;
    background: white !important;
    margin: 0;
}

.ds-pagination form {
    display: flex;
    align-items: center;
}

.ds-pagination {
    gap: 20px 5px;
    color: #000;
    font-family: Gravity, serif;
}

.orders-per-page,
.referrals-per-page {
    position: relative;
    right: 10px;
}

.ds-pagination__mobile .ds-button {
    padding: 0 51px;
    margin-bottom: 0 !important;
    cursor: pointer;
}

#affwp-affiliate-dashboard-order-details .wc-product-table-controls.wc-product-table-above,
#affwp-affiliate-dashboard-referrals .wc-product-table-controls.wc-product-table-above {
   margin-bottom: 30px;
}

/* Overlay Block Styles */
.overlay-block {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    opacity: 0.6;
    cursor: wait;
    z-index: 9999;
}

/* Select2 Styles for Pagination */
.select2-container .select2-selection--single .select2-selection__rendered {
    color: #000000DE;
    font-weight: 400;
    font-size: 14px;
}

.select2-container .select2-selection--single {
    border: 1px solid #0000001F;
    width: 70px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-right: 0 !important;
    padding-left: 19px;
    line-height: 40px !important;
}

.select2-container,
.select2-container .select2-selection--single {
    height: 40px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    border: none;
    height: 30px;
    top: 6px !important;
    transform: none;
    right: -15px !important;
}

.select2-dropdown .select2-results__option {
    font-weight: 600 !important;
    font-size: 16px !important;
}

.select2-dropdown {
    width: 70px !important
}

.select2-container:has(.select2-dropdown) {
    top: 39px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(0deg);
}

#affwp-affiliate-dashboard-referrals table {
    width: 100%;
}

#affwp-affiliate-dashboard-referrals th {
    padding: 18px 16px;
}

@media (max-width: 850px) {
    #affwp-affiliate-dashboard-referrals table thead th {
        display: none;
    }
    #affwp-affiliate-dashboard-referrals table tbody tr {
        display: flex;
        flex-direction: column;
    }
    #affwp-affiliate-dashboard-referrals td::before {
        content: attr(data-th) ":\00a0";
        font-weight: 700;
        display: inline-block;
    }
    #affwp-affiliate-dashboard-referrals td {
        font-size: 12px;
        font-weight: 350;
        color: #000000DE;
        display: flex;
        justify-content: space-between;
        text-align: right;
        padding: 18px 0 !important;
    }
    #affwp-affiliate-dashboard-referrals table thead tr {
        border: unset;
    }
    .ds-pagination {
        display: flex !important;
        margin-top: 30px;
    }
    .ds-pagination .referrals-per-page,
    .ds-pagination [for="referrals_per_page"] {
        display: none;
    }
    .ds-pagination .ds-pagination__nav {
        flex-direction: column;
    }
    .ds-table-5 .product-table__cell--col--5:first-child {
        padding-left: 20px !important;
    }
    .ds-table-5 .product-table__cell--col--5 {
        padding: 10px !important;
    }
    .ds-table-5 .product-table__row:not(.product-table__row--header) .product-table__cell--col--5 {
        color: #000000DE !important;
        font-family: Gravity !important;
        font-size: 12px !important;
    }
    .ds-table-5 .product-table__cell--col--5:last-child {
        max-width: 50%;
        min-width: 40%;
        width: fit-content!important;
    }
    .ds-table-5 .product-table__row.product-table__row--header .product-table__cell {
        font-weight: 700;
        font-family: Urbanist;
        font-size: 12px;
    }
    #affwp-affiliate-dashboard-referrals th {
        padding: 5px 12px !important;
        font-family: Urbanist !important;
        font-weight: 700 !important;
        font-size: 12px !important;
    }
    #affwp-affiliate-dashboard-referrals table tbody td {
        font-size: 12px;
        font-weight: 350;
        color: #000000DE;
    }
    #affwp-affiliate-dashboard-referrals table td:last-child,
    #affwp-affiliate-dashboard-referrals table th:last-child {
        text-align: right;
    }
}
