.glasses-selection-form {
    max-width: 800px;
    margin: 0 auto;
}

.glass-item {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 3px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

        
.glass-item.selected {
            /*background-color: rgba(255, 255, 255, 0.8);*/
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            /*border: 1px solid #e0e0e0;*/
}

/* New styles for included items */
.glass-item.included-item {
    border: 2px solid #151b29;
    background-color: rgba(21, 27, 41, 0.05);
}

/* Styling for the notice on items that are mentioned as included */
.glass-item.included-item-notice {
    /*border: 1px solid #cfe2f3; /* Light blue border to subtly indicate it */
    background-color: rgba(240, 248, 255, 0.5); /* Very light aliceblue background */
}

.dook-inclusive-info {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow it to take available space */
}

.dook-inclusive-info svg {
    min-width: 16px; /* Ensure icon doesn't shrink too much */
}

.inclusive-badge {
    background-color: #151b29;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.included-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #151b29;
    font-weight: bold;
}
        
/*
.glass-item:hover {
    background-color: rgba(240, 240, 240, 0.5);
}*/

.glass-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    align-items: center;
}

.glass-image {
    flex: 0 0 220px;
    width: 220px;
    position: relative;
    overflow: hidden;
}



.glass-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.glass-details {
    flex: 1;
    min-width: 0;
    padding: 10px 10px 10px 0px;
}

.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.glass-header h4 {
        margin: 0;
        font-size: 14px !important;
        font-weight: 500;
        max-width: 210px;
}

.glass-details .glass-header .dook-price {
    font-weight: bold;
    white-space: nowrap;
    color: #333;
        text-align: right;
}

.breakdance-woocommerce .product .glass-details .woocommerce-Price-amount bdi{
        font-size: 16px;
}

.description {
    margin: 0;
    font-size: 0.8em;
    color: #666;
    line-height: 1.4;
}

.add-dook-label {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 12px!important;
    font-weight: normal;
    text-transform: uppercase;
}

.glass-checkbox {
    display: inline-block;
    margin: 0;
}

.glass-item .glass-content {
    transition: all 0.2s ease;
}

.glass-checkbox:checked ~ .glass-content {
    background: #f8f8f8;
}

.selected-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-image: url('https://dook.dk/wp-content/uploads/2024/12/add_shopping_cart_24dp_151B29_FILL0_wght400_GRAD0_opsz24.svg');
    background-size: 16px; /* Etwas kleiner für den Kreis */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
    transform: scale(0.8);
    background-color: white; /* Weißer Hintergrund */
    border-radius: 50%; /* Macht es kreisförmig */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtiler Schatten */
    cursor: help; /* Zeigt an, dass es einen Tooltip gibt */
}

.selected-icon::after {
    content: "Selected Dooks will be added to cart automatically";
    position: absolute;
    top: -35px;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.selected-icon:hover::after {
    visibility: visible;
    opacity: 1;
}

.glass-item.selected .selected-icon {
    opacity: 1;
    transform: scale(1);
}


.try-dook-text{
    font-weight: bold;
    color: #151b29;
}

.preview-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-image: url('https://dook.dk/wp-content/uploads/2024/12/visibility_24dp_151B29_FILL0_wght400_GRAD0_opsz24.svg');
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease, background-image 0.3s ease;
    z-index: 2;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-icon.preview-active {
    background-image: url('https://dook.dk/wp-content/uploads/2024/12/visibility_off_24dp_151B29_FILL0_wght400_GRAD0_opsz24.svg');
    opacity: 1; /* Immer sichtbar wenn aktiv */
}

.glass-item:hover .preview-icon:not(.preview-active) {
    opacity: 1;
}
/*
.glass-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.02);
    opacity: 0;
    transition: opacity 0.3s ease;
}*/

.glass-item:hover .glass-image::after {
    opacity: 1;
}




    /* Styling für den Add-Button und die Erfolgsmeldung */
    .add-to-cart-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
    
    .add-success-message {
        color: #151b29;
        font-weight: bold;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .add-success-message.visible {
        opacity: 1;
    }
    
    .add-to-cart-btn {
        background-color: #151b29;
        color: white;
        border: none;
        padding: 5px 15px;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .add-to-cart-btn:hover {
        background-color: #000;
    }
    
    .add-to-cart-btn:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

/* Add styling for the struck-through original price */
.original-price del {
    color: #999;
}

/* Styling for included info-only items */
.glass-item.included-info-only {
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    opacity: 0.8;
    position: relative;
    cursor: default;
    margin-bottom: 20px; /* Extra space below info version */
}

/* Diagonal stripes background for included-info-only */
.glass-item.included-info-only::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(0,0,0,0.015) 8px,
        rgba(0,0,0,0.015) 16px
    );
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above the diagonal stripes */
.glass-item.included-info-only .glass-content {
    position: relative;
    z-index: 2;
}

/* Disabled button styling for included items */
.glass-item.included-info-only .add-to-cart-btn.disabled {
    background-color: #ccc !important;
    color: #888 !important;
    cursor: not-allowed;
    border: 1px solid #bbb;
}

.glass-item.included-info-only .add-to-cart-btn.disabled:hover {
    background-color: #ccc !important;
    color: #888 !important;
}

/* Price styling for included items */
.glass-item.included-info-only .dook-price del {
    color: #999;
    text-decoration: line-through;
}

.glass-item.included-info-only .dook-price strong {
    color: #151b29;
    font-weight: bold;
}

/* Gray out the image slightly for included-info-only */
.glass-item.included-info-only .glass-image {
    opacity: 0.7;
}

/* Ensure included info styling is preserved */
.glass-item.included-info-only .dook-inclusive-info {
    color: #666;
    font-weight: bold;
}