.custom-pagination {
    border-radius: 30px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.05);
    border: solid 1px #ececec;
    background-color: #ffffff;
    padding: 6px 8px;

    li {
        margin-right: 10px;
        border-radius: 50px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background-color: transparent;
            border-radius: 50%;
            font-size: 16px;
            color: #818894;
            transition: all 0.3s ease;

            &:hover {
                background-color: var(--primary);
                color: #ffffff;
                transition: all 0.3s ease;
            }

            &.active {
                border: solid 1px var(--primary);
                background-color: var(--primary);
                color: #ffffff;
            }
        }

        @media (max-width: $screen-xs-max) {
            margin-right: 8px;
            width: 40px;
            height: 40px;

            a {
                font-size: 14px;
            }
        }

        span {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            border-radius: 50%;

            &.active {
                border: solid 1px var(--primary);
                background-color: var(--primary);
                color: #ffffff;
            }
        }

        &:last-child {
            margin-right: 0;
        }

        &.disabled {
            border: solid 1px $gray-300 !important;
            cursor: not-allowed;
            color: $gray-300;
        }
    }

    .previous, .next {
        border: solid 1px var(--primary);

        .rtl & {
            transform: rotate(180deg);
        }
    }
}
