.home-tool-wrapper {
    overflow: hidden;
}

.home-tool-wrapper .tool-head {
    background: #fff;
}

.home-tool-wrapper .scroll-modes {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-tool-wrapper .scroll-modes::-webkit-scrollbar {
    display: none;
}

.home-tool-wrapper .modes .btn,
.home-tool-wrapper .sum-modes .btn {
    gap: 8px;
    transition: all 0.3s ease;
}

.home-tool-wrapper .modes .btn .mode-lock-icon {
    width: 12px;
    height: 16px;
    flex-shrink: 0;
}

.popover-active .pen,
#customModeBtn:hover .pen {
    filter: brightness(0) saturate(100%) invert(12%) sepia(35%) saturate(4418%) hue-rotate(241deg) brightness(96%) contrast(99%);
}

#customToneInput {
    height: auto;
    min-height: 25px;
}

.custom-tone-popover {
    position: fixed;
    left: auto;
    right: auto;
    width: 374px;
    padding: 16px;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid #eaedf1;
    cursor: default;
}

.custom-tone-popover::before {
    display: none;
}

.custom-tone-head {
    width: 100%;
}

.custom-tone-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--darkblue);
}

.custom-tone-close {
    background: transparent;
    border: 0;
    padding: 4px;
    line-height: 0;
    cursor: pointer;
    color: #757575;
}

.custom-tone-close img {
    width: 14px;
    height: 14px;
    display: block;
}

.custom-tone-input-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--darkblue);
    border-radius: 8px;
    padding: 10px 12px;
}

.custom-tone-input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    font-size: 14px;
    color: var(--darkblue);
    outline: none;
    background: transparent;
}

.custom-tone-input::placeholder {
    color: #a79fc4;
}

.custom-tone-done {
    flex-shrink: 0;
    background: var(--purple);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
    cursor: pointer;
    display: none;
}

.custom-tone-input-wrap.has-value .custom-tone-done {
    display: inline-block;
}

.custom-tone-suggestions-label {
    font-size: 14px;
    color: var(--darkblue);
    margin-bottom: 10px;
}

.custom-tone-chips {
    display: flex;
    gap: 12px;
}

.custom-tone-chip {
    background: #f4f8fe;
    color: #6a6097;
    border: 1.5px solid #e2e0eb;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.custom-tone-chip:hover {
    border-color: #6a6097;
}

.custom-tone-chip.active {
    border: 1px solid #6a6097;
    color: var(--darkblue);
}

.small-popover .popover__inner.custom-tone-popover {
    display: flex !important;
}

@media screen and (max-width: 992px) {
    .custom-tone-chips {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    .custom-tone-popover {
        width: calc(100vw - 40px);
        max-width: 374px;
    }
}
