/* Commerce Quiz widget */
#commerce-quiz-root {
    margin: 24px 0 24px;
	float:left;
	width:100%;
}

#commerce-quiz-root:empty {
    display: none;
}

.cq-widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 24px;
}

.cq-title {
    font-size: 1.25rem;
    margin: 0 0 6px;
}

.cq-subtitle {
    margin: 0 0 14px;
    color: #666;
    font-size: 0.95rem;
}

.cq-progress {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 4px;
}

.cq-progress-bar {
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.cq-progress-bar span {
    display: block;
    height: 100%;
    background: #333;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.cq-question-text {
    font-size: 1.1rem;
    margin: 0 0 16px;
}

.cq-answers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cq-answer-btn {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.15s, background 0.15s;
}

.cq-answer-btn:hover {
    border-color: #333;
    background: #fff;
}

.cq-result-text {
    margin: 0 0 18px;
    font-size: 1rem;
}

.cq-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cq-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.cq-btn-primary {
    background: #212529;
    color: #fff !important;
}

.cq-btn-primary:hover {
    background: #000;
    color: #fff !important;
}

.cq-btn-secondary {
    background: #fff;
    border: 1px solid #ced4da;
    color: #333;
}

.cq-btn-secondary:hover {
    border-color: #333;
}

@media (max-width: 576px) {
    .cq-widget {
        padding: 16px;
    }

    .cq-answers {
        flex-direction: column;
    }

    .cq-answer-btn {
        width: 100%;
        text-align: left;
    }
}
