/* Table Booking — стили только для блока Демо (остальное в international-qr-menu) */

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-controls {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.demo-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.section-demo .control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-demo .control-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.section-demo .button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.section-demo .control-btn {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.section-demo .control-btn:hover {
    border-color: rgba(255, 199, 9, 0.6);
    color: #000;
}

.section-demo .control-btn.active {
    background: #000;
    border-color: #000;
    color: #FFC709;
}

.section-demo .button-group:has([data-target="demo-button-color"]) .control-btn {
    min-width: 40px;
    padding: 8px;
    font-size: 1.2rem;
}

.section-demo .position-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-demo .position-row {
    display: flex;
    gap: 8px;
}

.section-demo .position-group .control-btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 10px 8px;
}

.section-demo .demo-messengers {
    margin-bottom: 30px;
}

.section-demo .demo-messengers h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1rem;
}

.section-demo .messenger-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.section-demo .messenger-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.section-demo .messenger-item input[type="checkbox"] {
    margin: 0;
}

.section-demo .messenger-item label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    min-width: 80px;
}

.section-demo .messenger-item input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
}

.section-demo .demo-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.section-demo .demo-btn {
    padding: 12px 20px;
    background: #000;
    color: #FFC709;
    border: 2px solid #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.section-demo .demo-btn i {
    margin-right: 8px;
    font-size: 1rem;
}

.section-demo .demo-btn:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-2px);
}

.section-demo .section-demo-footer {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* Цвета иконок для кнопок «Цвет кнопки» */
.section-demo .text-primary { color: #0d6efd !important; }
.section-demo .text-success { color: #198754 !important; }
.section-demo .text-danger { color: #dc3545 !important; }
.section-demo .text-purple { color: #6f42c1 !important; }

@media (max-width: 768px) {
    .section-demo .demo-controls-grid {
        grid-template-columns: 1fr;
    }

    .section-demo .messenger-list {
        grid-template-columns: 1fr;
    }

    .section-demo .demo-actions {
        flex-direction: column;
    }

    .section-demo .demo-btn {
        width: 100%;
    }
}
