.cq-btnset { margin: 20px 0; }

.cq-btnset--row { display: flex; flex-wrap: wrap; gap: 8px; }
.cq-btnset--nav { display: flex; gap: 8px; }

.cq-btnset__btn {
    display: block;
    box-sizing: border-box;
    padding: 11px 16px;
    border: 1px solid var(--cq-green, #12836a);
    border-radius: 8px;
    background: #fff;
    color: var(--cq-green, #12836a);
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.cq-btnset__btn:hover { background: var(--cq-green, #12836a); color: #fff; }
.cq-btnset__btn--active {
    background: var(--cq-green, #12836a);
    color: #fff;
    font-weight: 700;
    pointer-events: none;
}

.cq-btnset--row .cq-btnset__btn { flex: 1 1 150px; }
.cq-btnset--nav .cq-btnset__btn { flex: 1; }
.cq-btnset__prev { text-align: left; }
.cq-btnset__next { text-align: right; }

@media (max-width: 640px) {
    .cq-btnset--nav { flex-direction: column; }
    .cq-btnset--nav .cq-btnset__next { text-align: left; }
}

.cq-btnset-trigger {
    height: 35px;
    min-width: 36px;
    padding: 0 9px;
    border: 0;
    background: transparent;
    color: #2b2b2b;
    font-size: 13px;
    line-height: 35px;
    cursor: pointer;
    white-space: nowrap;
}
.cq-btnset-trigger:hover { background: #ecf0f1; }
.cq-btnset-trigger svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }

.cq-btnset-mask {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0, 0, 0, .45);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.cq-btnset-modal {
    width: 560px; max-width: 100%; max-height: 90vh; overflow: auto;
    background: #fff; border-radius: 12px; padding: 20px;
    font-family: inherit; color: #222;
}
.cq-btnset-modal h3 { margin: 0 0 4px; font-size: 17px; }
.cq-btnset-modal p.cq-btnset-hint { margin: 0 0 16px; font-size: 13px; color: #777; }

.cq-btnset-tpls { display: flex; gap: 10px; margin-bottom: 18px; }
.cq-btnset-tpl {
    flex: 1; padding: 14px; border: 2px solid #e2e2e2; border-radius: 10px;
    cursor: pointer; text-align: center; background: #fafafa;
}
.cq-btnset-tpl:hover { border-color: var(--cq-green, #12836a); }
.cq-btnset-tpl--on { border-color: var(--cq-green, #12836a); background: #eef6f3; }
.cq-btnset-tpl b { display: block; font-size: 14px; margin-bottom: 8px; }
.cq-btnset-tpl .cq-btnset-mini { display: flex; gap: 5px; }
.cq-btnset-tpl .cq-btnset-mini i {
    flex: 1; height: 22px; border: 1px solid var(--cq-green, #12836a); border-radius: 5px;
}
.cq-btnset-tpl .cq-btnset-mini i.on { background: var(--cq-green, #12836a); }

.cq-btnset-rows { margin-bottom: 12px; }
.cq-btnset-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.cq-btnset-row input {
    flex: 1; height: 38px; padding: 0 10px; box-sizing: border-box;
    border: 1px solid #ccc; border-radius: 7px; font-size: 14px;
}
.cq-btnset-row .cq-btnset-name { flex: 0 0 34%; }
.cq-btnset-row .cq-btnset-del {
    flex: 0 0 32px; height: 32px; border: 0; border-radius: 6px;
    background: #f2f2f2; color: #c0392b; font-size: 18px; cursor: pointer;
}
.cq-btnset-row .cq-btnset-tag { flex: 0 0 34%; font-size: 13px; color: #888; }

.cq-btnset-add {
    border: 1px dashed var(--cq-green, #12836a); background: #fff; color: var(--cq-green, #12836a);
    border-radius: 7px; padding: 8px 12px; font-size: 13px; cursor: pointer; margin-bottom: 16px;
}
.cq-btnset-err { color: #c0392b; font-size: 13px; margin: 0 0 12px; min-height: 16px; }
.cq-btnset-foot { display: flex; justify-content: flex-end; gap: 10px; }
.cq-btnset-foot button {
    height: 40px; padding: 0 20px; border-radius: 8px; font-size: 14px; cursor: pointer;
}
.cq-btnset-cancel { border: 1px solid #ccc; background: #fff; color: #444; }
.cq-btnset-ok { border: 0; background: var(--cq-green, #12836a); color: #fff; }
