#bdcfc-results {
    flex: 1 1 65%; /* Assign width to the right column */
    min-height: 100px; /* Ensure it's visible even when empty */
}

.bdcfc-result-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.bdcfc-total-summary-card {
    background-color: #eef7ff;
    border: 1px solid #b3d7f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#bdcfc-results-container {
    margin-top: 20px;
    display: none; /* Initially hidden */
    gap: 20px; /* Space between columns */
    align-items: flex-start; /* Align items to the top */
}

#bdcfc-progress-container {
    flex: 1 1 35%; /* Assign width to the left column */
    text-align: center;
    background-color: #f7f9fc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#bdcfc-progress-container h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

#bdcfc-progress-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    position: relative; /* Needed for text positioning */
}

#bdcfc-progress-circle .progressbar-text {
    color: #333 !important; /* Make text visible */
    font-size: 2em;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bdcfc-result-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.bdcfc-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 5px;
}

.bdcfc-result-item {
    background-color: #fff;
    padding: 8px;
    border-radius: 3px;
    text-align: center;
}

.bdcfc-result-item .label {
    font-size: 14px;
    color: #666;
}

.bdcfc-result-item .value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.bdcfc-result-item .percentage {
    font-size: 12px;
    color: #999;
}

#bdcfc-fraud-check-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#bdcfc_phone {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    flex-grow: 1;
}

.bdcfc-result-item .label .fas {
    font-size: 1.5em;
    margin-right: 10px;
    vertical-align: middle;
}

.bdcfc-result-item .label .fa-shopping-cart {
    color: #0073aa;
}

.bdcfc-result-item .label .fa-check-circle {
    color: #4CAF50;
}

.bdcfc-result-item .label .fa-times-circle {
    color: #f44336;
}

#bdcfc-fraud-check-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#bdcfc_phone {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    flex-grow: 1;
    transition: border-color 0.3s ease;
}

#bdcfc_phone:focus {
    border-color: #0073aa;
    outline: none;
}

#bdcfc-fraud-check-form button[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#bdcfc-fraud-check-form button[type="submit"]:hover {
    background-color: #005a87;
}

#bdcfc-fraud-check-form button[type="submit"] .fas {
    font-size: 1.1em;
}

.bdcfc-form-error {
    color: #f44336; /* Red */
    margin-top: 10px;
    text-align: center;
    display: none; /* Hidden by default */
}

#bdcfc-loading-container {
    display: none; /* Hide by default */
    text-align: center;
    margin-top: 20px;
}

.bdcfc-loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.css-progress-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(#4CAF50 calc(var(--p, 0) * 1%), #f44336 0);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.css-progress-circle::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
}

.css-progress-circle-text {
    z-index: 1;
    font-size: 2em;
    font-weight: bold;
}

.bdcfc-error-card .error-message {
    text-align: center;
    font-weight: bold;
    color: #f44336;
}

@media (max-width: 768px) {
    #bdcfc-results-container {
        flex-direction: column;
    }
	#bdcfc-results,
	#bdcfc-progress-container {
    	width: 100%;
	}
	.bdcfc-result-grid {
		grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	}
    .css-progress-circle-text {
        font-size: 1.5em;
    }
}