/* combistyle.css */

.cs-combinations-wrapper {
    margin: 12px 0 16px;
    border: 1px solid #dce0e4;
    border-radius: 4px;
    padding: 12px 12px 8px;
    background: #fff;
}

.cs-group-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.cs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* ===== КНОПКА — базовий стан (з фото) ===== */
.cs-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 80px;
    padding: 6px 6px 7px;
    border: 2px solid #dce0e4;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.cs-btn__img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 2px;
}

.cs-btn__label {
    margin-top: auto;
    display: block;
    font-size: 11px;
    line-height: 1.25;
    color: #333;
    word-break: break-word;
    white-space: normal;
    width: 100%;
}

/* ===== Текстовий режим (JS додає клас cs-btn--text-only) ===== */
.cs-btn--text-only {
    width: auto;
    flex-direction: row;
    justify-content: center;
    padding: 7px 12px;
    gap: 0;
}

.cs-btn--text-only .cs-btn__label {
    margin-top: auto;
    font-size: 12px;
    white-space: nowrap;
    width: auto;
}

/* ===== Active / hover ===== */
.cs-btn--active {
    border-color: #3498db;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px #3498db;
}
.cs-btn--active .cs-btn__label {
    margin-top: auto;
    color: #1a6fa8;
    font-weight: 600;
}
.cs-btn:hover {
    border-color: #aab0b8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.cs-btn--active:hover {
    border-color: #2980b9;
}
