@font-face {
    font-family: Urbanist;
    src: url('../../fonts/Urbanist-Medium.ttf');
    font-weight: 500;
}
@font-face {
    font-family: Urbanist;
    src: url('../../fonts/Urbanist-Regular.ttf');
    font-weight: 400;
}
@font-face {
    font-family: Urbanist;
    src: url('../../fonts/Urbanist-Light.ttf');
    font-weight: 300;
}

#affwp-affiliate-dashboard-order-details 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-order-details table thead tr {
    border-bottom: 2px solid #0000001F;
}
#affwp-affiliate-dashboard-order-details table tbody td {
    border: unset;
    color: #000000DE;
    font-family: Gravity, serif;
    font-size: 16px;
    font-weight: 350;
    padding: 18px 1em;
}
#affwp-affiliate-dashboard-order-details table tbody tr {
    border-bottom: 1px solid #0000001F;
}
#affwp-affiliate-dashboard-order-details table tbody td {
    font-family: Gravity, serif;
    vertical-align: middle;
}
#affwp-affiliate-dashboard-order-details table tbody td.order-number {
    font-size: 14px;
}
#affwp-affiliate-dashboard-order-details table tbody td.order-date {
    font-family: Montserrat, serif;
    font-size: 14px;
    font-weight: 400;
}
#affwp-affiliate-dashboard-order-details table tbody td.order-date .order-time,
#affwp-affiliate-dashboard-order-details table tbody td.order-total .count-items {
    color: #00000099;
    font-size: 11px;
    font-weight: 350;
    font-family: Gravity, serif;
}
#affwp-affiliate-dashboard-order-details table tbody td.order-date,
#affwp-affiliate-dashboard-order-details table tbody td.order-total {
    display: flex;
    flex-direction: column;
}
#affwp-affiliate-dashboard-order-details table tbody td .order-number-link {
    text-decoration: underline;
}
.order-status div {
    color: #000;
    font-weight: 500;
    font-size: 16px;
    font-family: Montserrat, serif;
    border: 1px solid black;
    border-radius: 100px;
    text-align: center;
    padding: 4px 12px;
    width: fit-content;
}
.order-status div.completed {
    color: white;
    background: #BFA671;
    border: unset;
}
.order-status div.processing {
    color: white;
    background: black;
    border: unset;
}

/* 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;
    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 {
    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 {
   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;
}

.wc-product-table-select-filters .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 33px !important;
}

.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);
}

table.affwp-table {
    width: 100%;
}
table.affwp-table th {
    padding: 18px 16px;
}

.mobile-year-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-year-filter label {
    font-weight: 500;
    color: #333;
}

#mobile_year_filter {
    padding: 8px 12px;
    border: 1px solid #0000001F;
    border-radius: 4px;
    background: white;
    min-width: 100px;
}
.mobile-year-filter-wrap {
    display: none;
}

.mobile-year-filter-wrap .select2-container .select2-selection--single .select2-selection__rendered {
    font-size: 16px !important;
    font-weight: 350 !important;
    color: #000000DE !important;
}
.mobile-year-filter-wrap .select2-container,
.mobile-year-filter-wrap .select2-container .select2-selection--single {
    width: 86px !important;
    height: 32px !important;
}
.mobile-year-filter-wrap .select2-container {
    border: 1px solid #0000001F;
}
.mobile-year-filter-wrap .select2-container:has(.select2-dropdown) {
    border: unset;
}

.mobile-year-filter-wrap .select2-container--default .select2-selection--single {
    background-color: transparent !important;
}
.mobile-year-filter {
    position: relative;
}
.month-title {
    color: #000;
    font-family: Urbanist;
    font-weight: 500;
    font-size: 24px;
}
.order-table-mobile__head .time {
    color: #808080 !important;
}
.order-table-mobile__link {
    font-family: Urbanist;
    color: #000000DE;
    font-weight: 400;
    font-size: 20px;
}
.order-table-mobile__price_referral .price-foot,
.order-table-mobile__price .price-foot {
    font-weight: 500;
    font-size: 10px !important;
    color: #00000099;
    font-family: Urbanist;
    line-height: 16px;
}
.order-table-mobile__price_referral .price-head,
.order-table-mobile__price .price-head {
    font-family: Gravity;
    font-size: 14px !important;
    font-weight: 350;
    color: #000000DE;
    line-height: 24px;
}
.order-table-mobile-footer {
    margin-top: 10px;
}
.month-group:not(:first-child) {
    position: relative;
    top: 45px;
}
.order-table-mobile-footer span:nth-child(1) {
    color: #000000DE;
    font-family: Gravity;
    font-weight: 350;
    font-size: 14px;
}
.order-table-mobile-footer span:nth-child(2),
.order-table-mobile-footer span:nth-child(3) {
    color: #808080;
    font-family: Urbanist;
    font-weight: 300;
    font-size: 11px;
}
.order-table-mobile-footer span:not(:last-child) {
    margin-bottom: 5px;
}
#orders-load-more {
    margin-top: 80px;
}
#orders-load-more .ds-pagination__page {
    text-align: center;
    font-family: Urbanist;
    font-size: 11px;
    color: #292929;
    font-weight: 300;
    margin-bottom: 8px;
}
#orders-load-more .ds-pagination__page .total {
    color: #808080;
}
#orders-load-more .ds-load-more__btn {
    width: 207px;
    margin-left: auto;
    margin-right: auto;
    font-family: Urbanist !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}
.order-table-mobile:not(:first-child) {
    margin-top: 70px;
}
@media (max-width: 850px) {
    .page main {
        padding-bottom: 0 !important;
    }
    #orders-load-more {
        display: block !important;
    }
    .order-table-mobile__head span:first-child {
        color: #000000DE;
        font-family: Gravity;
        font-size: 12px;
    }
    .order-table-mobile__head .ds-status {
        font-family: Urbanist;
        font-weight: 500;
        font-size: 10px;
    }
    .mobile-year-filter .select2-dropdown {
        top: -8px;
        position: absolute;
        width: 88px !important;
    }
    .wc-product-table-select-filters .select2-container--default .select2-selection--single .select2-selection__arrow b {
        top: 35% !important;
    }
    .mobile-year-filter .select2-container .select2-selection--single .select2-selection__arrow {
        margin-right: 10px;
    }
    .mobile-year-filter-wrap .select2-container--default .select2-selection--single {
        padding-left: 8px;
    }
    .wc-product-table-controls .select2-container .select2-selection--single .select2-selection__arrow b {
        display: block !important;
    }
    .wc-product-table-select-filters {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-year-filter-wrap {
        display: block;
    }
    .ds-pagination {
        display: flex !important;
        margin-top: 80px;
    }
    .ds-pagination {
        display: none !important;
    }
    .ds-pagination .orders-per-page,
    .ds-pagination [for="orders_per_page"] {
        display: none;
    }
    .ds-pagination .ds-pagination__nav {
        flex-direction: column;
    }
    .affwp-table thead {
        display: none;
    }
    #aff-orders-data {
        display: none;
    }
    .order-table-mobile-footer {
        display: flex;
        flex-direction: column;
    }

    /* Show month filter only on mobile */
    .mobile-month-filter-wrap {
        display: block !important;
    }

    .mobile-month-filter-wrap .mobile-month-filter {
        position: relative;
    }

    .mobile-month-filter-wrap select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #BFA671;
        background: white;
        font-family: inherit;
        font-size: 14px;
        border-radius: 4px;
    }
}
