.tag-page-nav {
    margin: 24px 0;
    text-align: center;
}

.tag-page-status {
    margin: 16px 0;
    color: #647181;
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.tag-page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-page-links li {
    margin: 0;
    padding: 0;
}

.tag-page-links a,
.tag-page-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 6px 10px;
    border: 1px solid #dce3eb;
    border-radius: 3px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.tag-page-links a:hover {
    border-color: #0056b3;
    color: #0056b3;
}

.tag-page-links a:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 3px;
}

.tag-page-links .tag-page-current {
    border-color: #0056b3;
    background: #0056b3;
    color: #fff;
    font-weight: 600;
}

.tag-page-links .tag-page-disabled {
    background: #f6f8fa;
    color: #778391;
}

.tag-page-links .tag-page-gap {
    min-width: 18px;
    padding: 0;
    border: 0;
    background: transparent;
}

@media (max-width: 767px) {
    .tag-page-nav {
        margin: 20px 12px;
    }

    .tag-page-links {
        gap: 6px;
    }

    .tag-page-direction {
        display: flex;
        order: 1;
        flex-basis: calc(50% - 3px);
        justify-content: center;
    }

    .tag-page-links .tag-page-direction a,
    .tag-page-links .tag-page-direction span {
        min-width: 100px;
        width: 100%;
        min-height: 44px;
    }

    .tag-page-links a,
    .tag-page-links span {
        min-width: 30px;
        min-height: 40px;
        padding: 6px;
    }
}
