.cgc-6954-container {
    /* Background color can now be overridden by Elementor controls */
    background-color: #111; 
    padding: 30px 20px;
    border-radius: 12px;
    font-family: sans-serif;
    max-width: 450px;
    margin: 0 auto;
    color: #fff;
    /* Ensure background image settings apply correctly if set */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cgc-6954-title {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 22px;
    text-transform: uppercase;
    font-weight: 800;
}

.cgc-6954-top-display {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.cgc-6954-grade-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid #66bb6a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
}

.cgc-6954-grade-value {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
}

.cgc-6954-slider-group {
    margin-bottom: 25px;
}

.cgc-6954-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
}

.cgc-6954-val-display {
    color: #66bb6a;
}

.cgc-6954-slider-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cgc-6954-btn-minus, .cgc-6954-btn-plus {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cgc-6954-btn-minus:hover, .cgc-6954-btn-plus:hover {
    background: #444;
}

.cgc-6954-slider {
    -webkit-appearance: none;
    flex-grow: 1;
    height: 12px;
    background: #333;
    border-radius: 6px;
    outline: none;
}

.cgc-6954-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
    border: 4px solid #66bb6a;
    cursor: pointer;
}

.cgc-6954-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
    border: 4px solid #66bb6a;
    cursor: pointer;
}

.cgc-6954-slider-orange::-webkit-slider-thumb { border-color: #ff9800; }
.cgc-6954-slider-orange::-moz-range-thumb { border-color: #ff9800; }
.cgc-6954-val-corners { color: #ff9800; }

.cgc-6954-slider-yellow::-webkit-slider-thumb { border-color: #fdd835; }
.cgc-6954-slider-yellow::-moz-range-thumb { border-color: #fdd835; }
.cgc-6954-val-edges { color: #fdd835; }

.cgc-6954-slider-green::-webkit-slider-thumb { border-color: #66bb6a; }
.cgc-6954-slider-green::-moz-range-thumb { border-color: #66bb6a; }
.cgc-6954-val-surface { color: #66bb6a; }

/* Alert state */
.cgc-6954-slider.cgc-6954-alert-active::-webkit-slider-thumb { border-color: #ff5252 !important; }
.cgc-6954-slider.cgc-6954-alert-active::-moz-range-thumb { border-color: #ff5252 !important; }


.cgc-6954-calculate-btn {
    width: 100%;
    padding: 12px;
    background: #66bb6a;
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
}

.cgc-6954-calculate-btn:hover {
    background: #55a859;
}

.cgc-6954-deductions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

.cgc-6954-deduction-box {
    background: rgba(34, 34, 34, 0.8);
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 calc(33% - 10px);
    min-width: 120px;
    box-sizing: border-box;
    border: 1px solid #333;
    cursor: pointer;
}

.cgc-6954-deduction-box:hover {
    background: rgba(42, 42, 42, 0.9);
    border-color: #444;
}

.cgc-6954-deduction-box label {
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    user-select: none;
    color: #fff;
    flex-grow: 1;
    text-align: center;
}

.cgc-6954-deduction-cb {
    cursor: pointer;
    accent-color: #66bb6a;
}

.cgc-6954-result {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    background: rgba(34, 34, 34, 0.8);
    border-radius: 8px;
    margin-top: 20px;
    color: #fff;
}
