.basko-pagination {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    color: #6a5646;
    font-family: "DM Sans", "Cairo", system-ui, sans-serif;
}

.basko-pagination-summary {
    flex: none;
    margin: 0;
    color: #7d6b5a;
    font-size: .78rem;
}

.basko-pagination-summary b {
    color: #3a2416;
    font-weight: 700;
}

.basko-pagination-controls,
.basko-page-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.basko-pagination-controls { justify-content: flex-end; }

.basko-page-numbers-scroll { display: none; }

.basko-page {
    width: 40px;
    height: 40px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2d4c0;
    border-radius: 11px;
    background: #fbf6ee;
    color: #3a2416;
    font-size: .78rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

a.basko-page:hover {
    border-color: #6f7f57;
    background: #e5e9db;
    color: #3a2416;
    transform: translateY(-1px);
}

.basko-page.active {
    border-color: #55633f;
    background: #55633f;
    color: #fbf6ee;
    box-shadow: 0 8px 20px -12px rgba(34, 21, 16, .65);
}

.basko-page.disabled {
    cursor: not-allowed;
    opacity: .42;
}

.basko-page.ellipsis {
    border-color: transparent;
    background: transparent;
}

.basko-page-nav {
    width: auto;
    min-width: 92px;
    gap: 8px;
    padding-inline: 13px;
}

.basko-pagination.simple .basko-pagination-controls { width: 100%; justify-content: space-between; }

.admin .basko-pagination {
    margin-top: 20px;
}

.admin .basko-page {
    background: #fffdfa;
    border-color: #e2d4c0;
}

.admin .basko-page.active {
    border-color: #55633f;
    background: #55633f;
    color: #fbf6ee;
}

@media (max-width: 767.98px) {
    .basko-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .basko-pagination-summary {
        text-align: center;
    }

    .basko-pagination-controls {
        width: 100%;
        justify-content: center;
    }

    .basko-page-numbers-desktop,
    .basko-page-numbers:not(.basko-page-numbers-scroll) .basko-page:nth-child(n+6):not(:last-child) {
        display: none;
    }

    .basko-page-numbers-scroll {
        display: flex;
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        padding: 2px 2px 5px;
        scrollbar-width: thin;
    }

    .basko-page {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .basko-page-nav {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    .basko-page-nav span:not([aria-hidden="true"]) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (max-width: 430px) {
    .basko-pagination-controls { gap: 4px; }
    .basko-page-numbers { gap: 4px; }
    .basko-page { width: 33px; height: 33px; font-size: .72rem; }
    .basko-page-nav { width: 33px; min-width: 33px; }
}
