/* ============================================
   BUILDER WRAPPER & LAYOUT
   ============================================ */
.custom_basket_hamper div#content{
	max-width:100%;
	margin-left:24px !important;
	margin-right:24px !important;
}
.cbb-builder-wrapper {
    display: flex;
    gap: 20px;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
button.cbb-add-btn{
width:100%
}

/* ============================================
   ANIMATED SIDEBAR
   ============================================ */
.cbb-sidebar {
    position: sticky;
    top: 20px;
    width: 350px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    background: #fff;
    border: 2px solid #0071a1;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 113, 161, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 100;
}


.cbb-sidebar.collapsed {
    width: 60px;
}

.cbb-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0071a1 0%, #005580 100%);
    color: white;
    border-bottom: 2px solid #004d6e;
}

.cbb-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.3s ease;
}

.cbb-sidebar.collapsed .cbb-sidebar-header h3 {
    opacity: 0;
}

.cbb-sidebar-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cbb-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cbb-toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.cbb-sidebar.collapsed .cbb-toggle-icon {
    transform: rotate(180deg);
}

.cbb-sidebar-content {
    padding: 20px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    transition: opacity 0.3s ease;
}

.cbb-sidebar.collapsed .cbb-sidebar-content {
    opacity: 0;
    pointer-events: none;
}

/* Empty State */
.cbb-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cbb-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.cbb-sidebar-empty p {
    margin: 0;
    font-size: 14px;
}

/* Sidebar Items Container */
.cbb-sidebar-items {
    display: none;
}

.cbb-sidebar-items.has-items {
    display: block;
}

.cbb-sidebar-items.has-items ~ .cbb-sidebar-empty {
    display: none;
}

/* Sidebar Sections */
.cbb-sidebar-section {
    margin-bottom: 25px;
    display: none;
}

.cbb-sidebar-section.has-items {
    display: block;
}

.cbb-sidebar-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0071a1;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.cbb-sidebar-section-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Sidebar Item */
.cbb-sidebar-item {
    display: flex;		
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    animation: slideInRight 0.3s ease;
    transition: all 0.2s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cbb-sidebar-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cbb-sidebar-item-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.cbb-sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.cbb-sidebar-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbb-sidebar-item-price {
    font-size: 12px;
    color: #0071a1;
    font-weight: 700;
}

.cbb-sidebar-item-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbb-sidebar-item-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Sidebar Footer */
.cbb-sidebar-footer {
    padding: 20px;
    background: #f5f5f5;
    border-top: 2px solid #e0e0e0;
    margin: 0 -20px -20px -20px;
}

.cbb-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.cbb-sidebar-total-amount {
    color: #0071a1;
    font-size: 24px;
    font-weight: 800;
}

/* ============================================
   MAIN BUILDER AREA
   ============================================ */
.cbb-builder {
    flex: 1;
    min-width: 0;
}

/* Hide radio and checkbox inputs */
.cbb-hidden-radio,
.cbb-hidden-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Product card styling */
.cbb-product-card {
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cbb-product-card:hover {
    border-color: #0071a1;
    box-shadow: 0 4px 12px rgba(0,113,161,0.1);
}

/* Active state for selected products */
.cbb-add-btn {
    padding: 8px 16px;
    border: 2px solid #0071a1;
    background: white;
    color: #0071a1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    width: 100%;
}

.cbb-add-btn:hover {
    background: #0071a1;
    color: white;
}

.cbb-add-btn.active {
    background: #0071a1;
    color: white;
}

/* Selected card highlight */
.cbb-product-card:has(input:checked) {
    border-color: #0071a1;
    background: #f0f8ff;
}

/* Products grid */
.cbb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Total bar styling */
.cbb-total-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 15px 20px;
    border-top: 2px solid #0071a1;
    margin-top: 20px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cbb-total-amount {
    color: #0071a1;
    font-size: 24px;
    font-weight: bold;
}

/* Navigation buttons */
.cbb-nav {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cbb-btn {
    padding: 12px 30px;
    border: none;
    background: #0071a1;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cbb-btn:hover {
    background: #005580;
}

.cbb-btn.cbb-prev {
    background: #666;
}

.cbb-btn.cbb-prev:hover {
    background: #444;
}

/* Progress bar */
.cbb-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    padding: 0 20px;
}

.cbb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.cbb-progress-step.active,
.cbb-progress-step.completed {
    opacity: 1;
}

.cbb-progress-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.cbb-progress-step.active .cbb-progress-icon {
    background: #0071a1;
    color: white;
}

.cbb-progress-step.completed .cbb-progress-icon {
    background: #4caf50;
    color: white;
}

.cbb-progress-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    transition: background 0.3s ease;
}

.cbb-progress-line.completed {
    background: #4caf50;
}




/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .cbb-builder-wrapper {
        flex-direction: column;
    }
    
    .cbb-sidebar {
        position: relative;
        width: 100%;
        max-height: none;
        margin-bottom: 20px;
    }
    
    .cbb-sidebar.collapsed {
        width: 100%;
    }

    
    .cbb-sidebar-content {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
.woocommerce-cart div#content {
    padding-left: 24px !important;
    padding-right: 24px !important;
}
.custom_basket_hamper div#content {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
}
.cbb-progress-step span {
    display: none;
}
.custom_basket_hamper div#content{
     margin-left: 0px !important; 
     margin-right: 0px !important;
}
.cbb-progress {
    flex-wrap: nowrap !important;
    gap: 20px;
}
.cbb-progress-icon {
    width: 34px;
    height: 34px;
    border-radius: 49%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
    .cbb-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .cbb-progress {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cbb-progress-step {
        flex: 1 1 40%;
    }
    
    .cbb-progress-line {
        display: none;
    }

/* Changes 17-12-2025 */

.cbb-product-thumb img {
    width: 100%;
}

}
span.cbb-toggle-icon{
color: #fff;
}

/* Scrollbar styling for sidebar */
.cbb-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.cbb-sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cbb-sidebar-content::-webkit-scrollbar-thumb {
    background: #0071a1;
    border-radius: 3px;
}

.cbb-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #005580;
}


/* ============================================
   SIDEBAR ITEM WITH QUANTITY CONTROLS
   ============================================ */

.cbb-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    animation: slideInRight 0.3s ease;
    transition: all 0.2s ease;
    position: relative;
}

.cbb-sidebar-item:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cbb-sidebar-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.cbb-sidebar-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cbb-sidebar-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Simple price for basket items (no quantity) */
.cbb-sidebar-item-price {
    font-size: 12px;
    color: #0071a1;
    font-weight: 700;
    margin: 4px 0 0 0;
}

/* Price row for items with quantity */
.cbb-sidebar-item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 2px 0;
}

.cbb-sidebar-item-unit-price {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.cbb-sidebar-item-total-price {
    font-size: 13px;
    color: #0071a1;
    font-weight: 700;
    white-space: nowrap;
}

/* Quantity Controls */
.cbb-qty-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.cbb-qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #0071a1;
    background: white;
    color: #0071a1;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.cbb-qty-btn:hover {
    background: #0071a1;
    color: white;
    transform: scale(1.05);
}

.cbb-qty-btn:active {
    transform: scale(0.95);
}

.cbb-qty-input {
    width: 45px;
    height: 28px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: white;
    padding: 0 4px;
}

.cbb-qty-input:focus {
    outline: none;
    border-color: #0071a1;
}

/* Remove number input spinners */
.cbb-qty-input::-webkit-inner-spin-button,
.cbb-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cbb-qty-input[type=number] {
    -moz-appearance: textfield;
}

.cbb-sidebar-item-remove {
    background: #ff4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: 8px;
    right: 8px;
}

.cbb-sidebar-item-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

/* Adjust padding for items with remove button */
.cbb-sidebar-item {
    padding-right: 40px;
}




.cbb-mobile-cart {
    position: fixed;
    bottom: 49%;
    right: -20px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #0071a1;
    color: #fff;
    font-size: 26px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Mobile only */
@media (max-width: 768px) {
    .cbb-mobile-cart {
        display: flex;
    }


.cbb-total-bar {
    position: fixed;
    bottom: 9%;
   
    width: 100%;
    left: 0;
}
footer#colophon {
    margin-bottom: 110px;
    /* padding-bottom: 85px; */
}
}
.ph-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
}

.ph-info-icon {
    font-size: 14px;
}

.ph-tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 8px;
    border-radius: 4px;

    position: absolute;
    z-index: 999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);

    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    line-height: 1.4;
}

.ph-tooltip:hover .ph-tooltip-text {
    visibility: visible;
    opacity: 1;
}

