/* Saved-search Rename and Edit filters (HAGZI_SAVED_SEARCH_EDIT). */

[data-hzss-edit-row] .hzac-row__actions {
    flex-wrap: wrap;
}

.hzss-rename[hidden] {
    display: none !important;
}

.hzss-rename {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    flex: 1 1 100%;
    padding: 4px 10px 10px 54px;
}

[dir="rtl"] .hzss-rename {
    padding: 4px 54px 10px 10px;
}

.hzss-rename__label {
    font-size: 13px;
    font-weight: 600;
}

.hzss-rename__input {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d6dae1;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
}

.hzss-rename__hint {
    font-size: 12px;
    color: #6b7280;
}

.hzss-rename__buttons {
    display: flex;
    gap: 8px;
}

.hzss-editbar {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    max-width: 880px;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 12px;
    background: #12141a;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hzss-editbar__text {
    flex: 1 1 260px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.hzss-editbar__update,
.hzss-editbar__stop {
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hzss-editbar__update {
    border: 0;
    background: var(--hzp-accent, var(--hagzi-primary, #0745D9));
    color: #fff;
}

.hzss-editbar__update:disabled {
    opacity: 0.7;
    cursor: progress;
}

.hzss-editbar__stop {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
}

html.hzss-editing body {
    padding-bottom: 96px;
}

@media (max-width: 640px) {
    .hzss-rename,
    [dir="rtl"] .hzss-rename {
        padding: 4px 10px 10px;
    }

    [data-hzss-edit-row] .hzac-row__actions {
        flex: 1 1 100%;
        padding-inline: 10px;
    }

    .hzss-editbar__update,
    .hzss-editbar__stop {
        flex: 1 1 auto;
    }
}
