.single-product .clickable_image{
    position: relative;
}

.single-product .clickable_image svg {
    max-width: 100%;
    height: auto;
}
.single-product .clickable_image .svg-wrapper {
    margin-top: 25%;
    position: relative;
}

.single-product .clickable_image svg rect.active {
    fill: #375AFB40 !important;
    border-radius: 30px;
    rx: 15;
    ry: 15;
}

.single-product .clickable_image svg rect {
    transition: fill 0.3s ease;
    pointer-events: all;
    cursor: pointer;
}

.single-product .wooco_components.wooco-components .wooco_component_product .select2-selection {
    height: auto;
    font-size: inherit;
    padding: unset;
}

.single-product .wooco_components.wooco-components .wooco_component_product span.select2-selection__arrow {
    height: 40px;
    top: 1px;
    right: 1px;
    width: 20px;
}

.single-product .select2-container .select2-dropdown {
    padding: 0;
}

.single-product .select2-container .select2-dropdown .select2-search__field {
    padding: 4px;
    height: auto;
    font-size: inherit;
    margin-bottom: inherit;
}

.single-product .wp-container-core-columns-is-layout-1 {
    background-color: white;
    border-radius: 16px;
    padding: 40px 20px;
}

.single-product .wp-block-column.is-layout-flow.wp-block-column-is-layout-flow:first-child {
    border-right: 1px solid #D4DBE1;
}

.single-product h1.wp-block-post-title {
    font-size: 32px;
}

.single-product span.woocommerce-Price-amount.amount {
    font-size: 32px;
    font-weight: 400;
}

.single-product .wooco_components .wooco_component.wooco_component_required .wooco_component_name:after {
    color: black;
}

.single-product .wooco_component_product {
    margin-top: 0;
}

.single-product .wooco_components .wooco_component {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: 15px 0;
}

.single-product .wooco_component_product_selection .select2 {
    max-width: 280px;
    min-width: 280px;
}

.single-product a.wooco_component_product_link:before {
    content: "Go to product";
    display: block;
    position: relative;
    font-size: 12px;
    line-height: 17px;
}

.single-product .wooco_component_product_link {
    width: 85px;
    background-position: center right;
    padding-right: 15px;
}

.single-product .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 16px;
    line-height: 32px;
}

.single-product .wooco_wrap:before {
    content: "Choose components";
    font-size: 18px;
    font-weight: 700;
    display: block;
    position: relative;
    padding: 10px 0;
}

.single-product a.show-more {
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.single-product .wp-block-post-excerpt__excerpt {
    font-size: 14px;
}


.clickable_image .notice p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.clickable_image .notice {
    width: 90%;
    text-align: center;
    border: 1px solid #D4DBE1;
    border-radius: 8px;
    margin: auto;
    padding: 9px 0px;
    position: relative;
    cursor: pointer;
}

.clickable_image .notice:before, .clickable_image .notice:after {
    content: "";
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    left: 10px;
    background-image: url(/wp-content/themes/twentytwentyfour/assets/images/blue-bulb.svg);
}

.clickable_image .notice:after {
    right: 10px;
    left: auto;
    top: 8px;
    background-image: url(/wp-content/themes/twentytwentyfour/assets/images/close.svg);
}

.single-product .wooco_components .wooco_component.active {
    background-color: #F6F8FF;
    position: relative;
    border-color: #fff;
}

.single-product .wooco_components .wooco_component.active:before {
    content: "";
    height: 100%;
    display: block;
    width: 16px;
    left: -20px;
    position: absolute;
    border-left: 4px solid #375AFB;
    background-color: #F6F8FF;
}

.single-product .select2-container .select2-dropdown {
    border-color: #375AFB;
    padding: 5px;
    border-bottom: 1px solid #375AFB;
    border-radius: 6px;
    border-top: 1px solid #375AFB;
    margin-top: 40px;
}

.single-product .select2-container--default .select2-results__option--selected, .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #F6F8FF;
    color: #111111;
}

.single-product .select2-results__option {
    font-size: 16px;
}

.country-select-dropdown-open {
    pointer-events: initial;
}

.clickable_image .rectBtn{
    position: absolute;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clickable_image .rectBtn .rectBtn-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.clickable_image .rectBtn.assigned .rectBtn-icon {
    width: 100%;
    height: 100%;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

.clickable_image .rectBtn.rectBtn-protocol .rectBtn-icon {
    width: 50px;
    height: 50px;
}

.wooco_component_product_selection {
    flex-direction: row-reverse;
}

.product-type-composite .wp-block-woocommerce-product-price, .product-type-composite .wp-block-post-excerpt {
    display: none;
}

@media(max-width: 1220px){
    .single-product .wooco_components .wooco_component {
        flex-direction: column;
    }

    .wooco_component_product_selection {
        flex-direction: column;
        gap: 10px;
    }
}

@media(max-width: 992px) {
    .wp-block-columns.alignwide.is-layout-flex.wp-container-core-columns-is-layout-1.wp-block-columns-is-layout-flex {
        display: flex;
        flex-direction: column;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--body);
}

span.option-w-img {
    width: 100%;
    display: flex;
    height: auto;
    align-items: center;
    justify-content: space-between;
    align-content: center;
}

span.option-w-img img {
    max-height: 40px;
}

.freeze-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* Configuration Preview */
.config-preview {
    display: none;
    margin-top: 20px;
    padding: 16px;
    background-color: #F6F8FF;
    border-radius: 12px;
    border: 1px solid #D4DBE1;
}

.config-preview.has-items {
    display: block;
}

.config-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.config-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #111111;
}

.config-preview-toggle {
    display: none;
    font-size: 12px;
    color: #375AFB;
    transition: transform 0.3s ease;
}

.config-preview-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.config-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #E8ECF0;
    min-width: 120px;
    max-width: 200px;
    text-align: center;
}

.config-preview-text {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
}

.config-preview-label {
    font-weight: 700;
    color: #375AFB;
}

.config-preview-name {
    color: #333;
}

.config-preview-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

@media(max-width: 600px) {
    .single-product .clickable_image .svg-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .single-product .clickable_image svg {
        width: 300px;
        max-width: 300px;
    }
    
    .clickable_image .rectBtn .rectBtn-icon {
        width: 25px;
        height: 25px;
    }
    
    .clickable_image .rectBtn.rectBtn-protocol .rectBtn-icon {
        width: 30px;
        height: 30px;
    }
    
    .clickable_image .rectBtn.assigned .rectBtn-icon {
        max-width: 90%;
        max-height: 90%;
    }
    
    .config-preview {
        padding: 12px;
        order: 99;
        margin-top: 0;
    }
    
    .config-preview-header {
        cursor: pointer;
        margin-bottom: 0;
    }
    
    .config-preview.has-items .config-preview-header {
        margin-bottom: 12px;
    }
    
    .config-preview-toggle {
        display: block;
    }
    
    .config-preview.collapsed .config-preview-toggle {
        transform: rotate(-90deg);
    }
    
    .config-preview.collapsed .config-preview-items {
        display: none;
    }
    
    .config-preview.collapsed .config-preview-header {
        margin-bottom: 0;
    }
    
    .config-preview-items {
        gap: 8px;
    }
    
    .config-preview-item {
        min-width: 100px;
        max-width: 150px;
        padding: 8px 10px;
    }
    
    .config-preview-text {
        font-size: 11px;
    }
    
    .config-preview-img {
        width: 24px;
        height: 24px;
    }
}

/* Cart - Composite Product Styling */
.woocommerce-cart-form .cart_item dl.variation {
    margin: 10px 0 0 0;
    padding: 10px;
    background-color: #F6F8FF;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
}

.woocommerce-cart-form .cart_item dl.variation dt {
    font-weight: 600;
    color: #375AFB;
    font-size: 13px;
    margin: 0;
    padding: 2px 0;
}

.woocommerce-cart-form .cart_item dl.variation dd {
    font-size: 13px;
    color: #333;
    margin: 0;
    padding: 2px 0;
}

.woocommerce-cart-form .cart_item dl.variation dd p {
    margin: 0;
}

/* Mini cart styling */
.woocommerce-mini-cart-item dl.variation {
    font-size: 11px;
    margin: 5px 0 0 0;
    padding: 8px;
    background-color: #F6F8FF;
    border-radius: 6px;
}

.woocommerce-mini-cart-item dl.variation dt {
    font-weight: 600;
    color: #375AFB;
}

.woocommerce-mini-cart-item dl.variation dd {
    margin: 0 0 4px 0;
}

/* Component quantity styling (no input, just number) */
.woocommerce-cart-form .component-qty {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-weight: 500;
}