/* Full-width toggle button for Entire Replacement */
.replacement-toggle-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: 2px solid #333;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.2s ease;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.replacement-toggle-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
    border-color: #555;
}

.replacement-toggle-btn.checked {
    background-color: rgba(255, 0, 0, 0.8);
    border-color: #cc0000;
    color: white;
}

.replacement-toggle-btn.checked:hover:not(:disabled) {
    background-color: rgba(255, 0, 0, 0.9);
}

.replacement-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Main container for the windshield image */
.windshield-container {
    position: relative;
    aspect-ratio: 835 / 473;
    border: 1px solid #ccc;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ===================================================================
   1. MOBILE-FIRST STYLES (Default)
   ===================================================================
*/
#repair_grid {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);    
    gap: 5px;
}





/* ===================================================================
   3. YOUR CUSTOM BOX STYLES (Fully Integrated)
   ===================================================================
*/

/* Individual selectable box */
.select-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid black;
    box-sizing: border-box;
    color: transparent;
    background-color: transparent;
    cursor: pointer;
    font-size: 1.5vw;
    /* Your custom styles re-added below */
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Your style for checked boxes, re-added */
.select-box.checked {
    border-color: red;
    color: white;
    background-color: rgba(255, 0, 0, 0.6);
    opacity: 50%; /* Your opacity setting */
}

/* Your hover effect, re-added */
.select-box:not(.checked):hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: #555;
}

/* Your h2 styles, re-added */
.select-box h2 {
    margin: 0;
    line-height: 1.15;
    font-weight: bold;
    text-align: center;
    vertical-align: center;
}

/* Media query for font-size */
@media (min-width: 835px) {
    .select-box {
        font-size: 24px;
    }
}