#cpc-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 2px solid #bca660;
    box-shadow: 0 -2px 8px rgba(26, 26, 26, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

#cpc-sticky-bar.active {
    box-shadow: 0 -4px 15px rgba(188, 166, 96, 0.3);
    transition: box-shadow 0.3s ease;
}

#cpc-selected-list {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex: 1;
    overflow: auto;
    padding-right: 10px;
}

#cpc-actions {
    display: flex;
    margin-top: 20px;
    justify-content: flex-end;
    width: 100%;
    gap: 8px;
}

.cpc-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cpc-product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    width: 240px;
    text-align: center;
    /* background: #ffffff; */
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
}

.cpc-product-card:hover {
    box-shadow: 0 2px 6px rgba(26, 26, 26, 0.15);
}

.cpc-product-image img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

.cpc-selected-item-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpc-selected-item-mini img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.cpc-empty {
    color: #777;
}

.cpc-done-msg {
    margin-top: 15px;
    padding: 10px;
    background: #f8f6f0;
    border: 1px solid #bca660;
    color: #1a1a1a;
    border-radius: 6px;
    font-weight: 500;
}

/* Composite Products Order Display - Order Received Page */
.cpc-order-components {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #bca660;
    border-radius: 8px;
}

.cpc-order-components h4 {
    margin: 0px !important;
    margin-bottom: 15px !important;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 600;

}

.cpc-order-component-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #bca660;
}

.cpc-order-component-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cpc-order-component-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #bca660;
}

.cpc-order-component-content {
    flex: 1;
}

.cpc-order-component-name {
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 14px;
}

.cpc-order-component-title {
    font-weight: 600;
    color: #bca660;
    margin-bottom: 4px;
    font-size: 13px;
}

.cpc-order-component-attributes {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* For cart display */
.cpc-cart-components {
    margin-top: 10px;
}

.cpc-cart-component {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e8e6df;
    padding: 8px 0;
}

.cpc-cart-component:last-child {
    border-bottom: none;
}

.cpc-cart-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #bca660;
}

.cpc-cart-meta {
    flex: 1;
}

.cpc-cart-meta strong {
    color: #bca660;
}

.cpc-cart-meta span {
    color: #bca660;
    font-weight: 500;
}

/* Selected item styles for the builder */
.cpc-selected-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #1a1a1a;
    border-radius: 6px;
    border: 1px solid #bca660;
}

.cpc-selected-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 0px !important;
}

.cpc-selected-item div {
    flex: 1;
}

.cpc-selected-item strong {
    color: #bba55c;
    font-size: 14px;
}

.cpc-selected-item span {
    color: #bca660;
    font-size: 13px;
    font-weight: 500;
}

.cpc-selected-item small {
    color: #666;
    font-size: 12px;
}

/* Button styles with the new color scheme */
.button.cpc-add-selection {
    background: #bca660;
    color: #ffffff;
    border: 1px solid #bca660;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.button.cpc-add-selection:hover {
    background: #a8944f;
    border-color: #a8944f;
    color: #ffffff;
}

#cpc-add-all-to-cart.button-primary {
    background: #a8944f;
    color: #ffffff;
    border: 1px solid #a8944f;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cpc-add-all-to-cart.button-primary:hover {
    background: #8e7b40;
    border-color: #8e7b40;
    color: #ffffff;
}

#cpc-clear-selection.button {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#cpc-clear-selection.button:hover {
    /* background: #1a1a1a; */
    color: #8e7b40;
}

/* Attribute select styles */
.cpc-attr-group label {
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.cpc-attr-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    color: #1a1a1a;
    width: 100%;
}

.cpc-attr-select:focus {
    border-color: #bca660;
    outline: none;
}

.cpc-attr-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.cpc-attr-tab {
    background: #1a1a1a;
    color: #bca660;
    border: 1px solid #bca660;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cpc-attr-tab.active,
.cpc-attr-tab:hover {
    background: #bca660;
    color: #fff;
}


.cpc-selected-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cpc-selected-item {
    position: relative;
}

.cpc-remove-selection {
    position: absolute;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    top: 0px;
    right: 0px;
    padding: 0px;
}

.cpc-remove-selection:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.cpc-remove-selection svg {
    width: 12px;
    height: 12px;
}

.cpc-attr-tabs button {
    background: transparent;
    border: 1px solid #bca660;
    color: #bca660;
    font-size: 12px;
    padding: 4px 15px;
}

.cpc-attr-tabs button:focus,
.cpc-attr-tabs button:hover {
    background: #bca660;
    color: #ffffff;
}

#cpc-composite-header {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}

#cpc-composite-header .cpc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

#cpc-composite-header .cpc-header-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

#cpc-composite-header h2 {
    margin: 0;
    font-size: 50px;
    line-height: 1.1;
}

#cpc-composite-header p {
    font-size: 18px;
    margin-top: 10px;
    color: #eee;
}

/* ===== LOADER OVERLAY ===== */
#cpc-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cpc-loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #bca660;
    border-radius: 50%;
    animation: cpc-spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes cpc-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== POPUP OVERLAY ===== */
#cpc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Popup Box */
.cpc-popup {
    background: #ffffff;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

/* Icon */
.cpc-popup-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #bca660;
}

/* Message */
.cpc-popup-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.5;
}

/* Close Button */
.cpc-popup-close {
    background: #bca660;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cpc-popup-close:hover {
    background: #a48f4d;
}

/* Animation for popup fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-child-theme-3wickets-child.woocommerce-cart th.product-remove .screen-reader-text,
.wp-child-theme-3wickets-child.woocommerce-cart th.product-thumbnail .screen-reader-text {
    position: static !important;
    height: auto !important;
    width: 100px !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    display: inline-block !important;
    font-weight: 600;
    color: #BDA461;
}


/* Responsive styles for order components */
@media (max-width: 768px) {
    .cpc-order-components {
        padding: 12px;
        margin-top: 12px;
    }

    .cpc-order-component-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }

    .cpc-order-component-image img {
        width: 50px;
        height: 50px;
    }

    .cpc-order-components h4 {
        font-size: 15px;
        margin-bottom: 12px;
        color: #1a1a1a;
    }

    .cpc-selected-item {
        padding: 6px;
    }

    .cpc-remove-selection {
        width: 20px;
        height: 20px;
    }

    .cpc-remove-selection svg {
        width: 10px;
        height: 10px;
    }
}