/* Gömma original variation labels och select */
.custom-variation-wrapper .variations th {
    display: none !important;
}

.custom-variation-wrapper .variations td {
    padding: 0 !important;
}

.custom-variation-wrapper .variations select {
    display: none !important; /* GÃ¶m original select */
}

/* Gömma variations-tabellen i original form men behålla add to cart */
.original-variation-form .variations {
    display: none !important;
}

/* Tilläggsanalys titel */
.addon-analysis-title {
    font-size: 17px !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    color: #333 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Custom Dropdown Container */
.custom-dropdown-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

/* Custom Dropdown Button */
.custom-dropdown-btn {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #0073aa;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-dropdown-btn:hover {
    border-color: #005a87;
    box-shadow: 0 2px 4px rgba(0,115,170,0.1);
}

.custom-dropdown-btn.open {
    border-radius: 8px 8px 0 0;
    border-color: #005a87;
}

/* Dropdown Arrow */
.dropdown-arrow {
    transition: transform 0.3s ease;
    color: #0073aa;
    font-weight: bold;
}

.custom-dropdown-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Options */
.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #0073aa;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom-dropdown-options.show {
    display: block;
}

/* Dropdown Option Items */
.dropdown-option {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #f8f9fa;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option.selected {
    background-color: #e7f3ff;
    color: #0073aa;
}

/* Option Text and Price */
.option-text {
    flex: 1;
    font-size: 14px;
}

.option-price {
    font-weight: bold;
    font-size: 13px;
    color: #666;
    margin-left: 10px;
}

.option-price.base-price {
    color: #0073aa;
}

.option-price.increase {
    color: #00a32a;
}

.option-price.decrease {
    color: #00a32a;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .custom-dropdown-btn {
        padding: 15px;
        font-size: 16px; /* FÃ¶rhindra zoom pÃ¥ iOS */
    }
    
    .dropdown-option {
        padding: 15px;
        font-size: 16px;
    }
    
    .custom-dropdown-options {
        max-height: 300px;
    }
    
    .option-text {
        font-size: 15px;
    }
    
    .option-price {
        font-size: 14px;
    }
}

/* Touch-friendly för smartphones */
@media (max-width: 480px) {
    .custom-dropdown-btn {
        padding: 18px 15px;
        min-height: 50px;
    }
    
    .dropdown-option {
        padding: 18px 15px;
        min-height: 50px;
    }
}

/* Beskrivningsbox med ram och ikon (grå) */
.product-description-box {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.description-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.info-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

/* GÃ¶mma rensa-knapp */
.reset_variations {
    display: none !important;
}

/* Se till att priset uppdateras korrekt */
.summary .price {
    transition: all 0.3s ease;
}

/* Gömma priset som visas ovanför antal */
.single_variation_wrap .single_variation .woocommerce-variation-price {
    display: none !important;
}

.variations_form .single_variation .price {
    display: none !important;
}

/* Styling för variationsbeskrivning (blå nyans) */
.woocommerce-variation-description {
    background: #f0f8ff !important;
    border: 1px solid #b3d9ff !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 5px !important;
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.5 !important;
    margin-bottom: 30px;
}

.single_variation .woocommerce-variation-description {
    display: block !important;
    background: #f0f8ff !important;
    border: 1px solid #b3d9ff !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-top: 5px !important;
    margin-bottom: 45px !important;
}

.woocommerce-variation-description p {
    margin: 0 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.single_variation_wrap .woocommerce-variation-description p {
    margin: 0 !important;
    color: #333 !important;
}

/* Extra säkerhet för att gömma variationspris */
.single_variation .woocommerce-variation-price,
.single_variation .price,
.single_variation_wrap .price {
    display: none !important;
}

/* Loading state för dropdown */
.custom-dropdown-container.loading .custom-dropdown-btn {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Overlay för att stänga dropdown vid klick utanför */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}