.ps-seotags {
    margin: 16px 0 24px;
    padding: 0;
    background: none;
    border: 0;
}

.ps-seotags__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ps-seotags__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    min-height: 30px;
    padding: 4px 12px;
    border: 1px solid #dedee3;
    border-radius: 5px;
    background: #fff;
    color: #777781 !important;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none !important;
    transition: border-color .15s, color .15s, background-color .15s;
}

.ps-seotags__tag:hover {
    border-color: var(--theme-base-color, #0077dd);
    color: var(--theme-base-color, #0077dd) !important;
}

.ps-seotags__tag:focus-visible {
    outline: 2px solid var(--theme-base-color, #0077dd);
    outline-offset: 3px;
}

.ps-seotags__tag.is-active {
    color: #fff !important;
    background: var(--theme-base-color, #0077dd);
    border-color: var(--theme-base-color, #0077dd);
}

.ps-seotags__tag.is-active:hover {
    background: #0068c2;
    border-color: #0068c2;
}

.ps-seotags__tag.is-active span {
    font-size: 18px;
    line-height: 18px;
}

@media (max-width: 600px) {
    .ps-seotags {
        margin: 14px 0 20px;
        min-width: 0;
        max-width: 100%;
    }

    .ps-seotags__items {
        flex-wrap: nowrap;
        gap: 7px;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 5px 0 8px;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: #c4c9d1 transparent;
    }

    .ps-seotags__items::-webkit-scrollbar {
        height: 4px;
    }

    .ps-seotags__items::-webkit-scrollbar-track {
        background: transparent;
    }

    .ps-seotags__items::-webkit-scrollbar-thumb {
        background: #c4c9d1;
        border-radius: 2px;
    }

    .ps-seotags__tag {
        flex: 0 0 auto;
        white-space: nowrap;
        min-height: 34px;
        padding: 6px 12px;
    }

    .ps-seotags__tag:focus-visible {
        outline-offset: -2px;
    }
}
