/* Canele Taste Selector Styles */

/* Reduce gaps between taste options and make them wider */
#taste-selector-options .col-5 {
    flex: 0 0 48% !important; /* Make wider - 48% instead of ~41.67% */
    max-width: 48% !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
    margin-bottom: 8px;
}

#taste-selector-options .row {
    margin-left: -3px !important;
    margin-right: -3px !important;
    gap: 4px; /* Small gap between columns */
    justify-content: space-between;
}

.cfvsw-swatches-option {
    height: 60px;
    width: 60px;
}

@media (hover: hover) {
    .canele-inactive:hover {
        transform: scale(1.05);
    }
}

#canele-selector-wrapper {
    margin-top: 15px;
    line-height: 18px;
    background-color: rgba(193, 133, 62, 0.08); /* Tinted background */
    padding: 20px;
    border-radius: 8px;
}

.canele-active {
    border-color: #C1853E !important;
    border-width: 3px;
    transform: scale(1.02);
}

.canele-disabled {
    cursor: not-allowed !important;
    opacity: 0.2;
}

.canele-subtext {
    font-size: 10px;
    color: gray;
}

.single_add_to_cart_button:disabled {
    background-color: #A45E20 !important;
    opacity: 0.5;
}

.filling-selection-box {
    position: relative;
    height: 120px; /* Make twice as tall */
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid #fff;
    border-radius: 8px; /* More rounded corners */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.filling-selection-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%; /* Bottom half */
    background: rgba(0, 0, 0, 0.4); /* Dimmed overlay */
    pointer-events: none;
}

.filling-selection-box span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    width: 100%;
    text-align: center;
}

.filling-selection-box:hover {
    transform: scale(1.05);
}

/* Checkmark for selected items */
.filling-selection-box.canele-active::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    color: #fff;
    background: #C1853E;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.canele-taste-selector-show {
    display: block;
    transition: all 0.3s ease;
}

.canele-taste-selector-hide {
    display: none !important;
    height: 0;
    transition: all 0.3s ease;
}

button:disabled {
    background-color: #F6F5F8;
    color: darkgray;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: #F6F5F8;
    color: darkgray;
    cursor: not-allowed;
}