#ccp-popup-overlay {
    position: fixed; z-index: 999999; left:0; top:0; width:100vw; height:100vh;
    background: rgba(0,0,0,0.38);
    display: flex; align-items: center; justify-content: center;
}

#ccp-popup {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    max-width: 520px;
    width: 96vw;
    box-shadow: 0 10px 40px rgba(0,0,0,0.20);
    max-height: 96vh;
    overflow: hidden;
    transform: scale(0.98);
    transition: transform 0.22s cubic-bezier(.22,1,.36,1);
}

#ccp-popup.active { transform: scale(1); }
.ccp-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
     padding: 0 0 10px 0; 
}

.ccp-cart-items {
    max-height: 320px;
    overflow-y: auto;
    border-bottom: 1px solid #f1f1f1;
    background: #fafbfc;
    padding-top: 8px;
    margin-bottom: 6px;
}
.ccp-cart-items ul { margin: 0; padding: 0; list-style: none; }
.ccp-cart-items li {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 26px;
    border-bottom: 1px solid #f3f3f3;
}
.ccp-cart-items img {
    width: 64px; height: 64px;
    border-radius: 10px; object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    background: #f3f3f3;
}
.ccp-prod-title {
    font-weight: 600; display: block; font-size: 16px; margin-bottom: 2px;
    color: #222;
}
.ccp-prod-qty {
    font-size: 15px; color: #656565;
}
.ccp-empty {
    text-align: center; padding: 28px 0; font-size: 16px; color: #555;
}

.ccp-actions {
    padding: 14px 28px 10px 28px;
    display: flex; gap: 18px;
    margin-bottom: 8px;
}
.ccp-actions button, .ccp-actions a {
    flex: 1 1 0;
    padding: 13px 0;
    border-radius: 11px;
    border: none; text-align: center;
    font-size: 16px; font-weight: 700;
    cursor: pointer; text-decoration: none;
    box-shadow: 0 1px 8px rgba(0,128,255,0.06);
    transition: background 0.16s, color 0.16s;
    outline: none;
}
#ccp-popup .ccp-continue.button {
    background: #f5f5f5 !important;
    color: #444 !important;
    border: 1px solid #e0e0e0 !important;
}

#ccp-popup .ccp-continue.button:hover {
    background: #e0e0e0 !important;
}


.ccp-cross-sells {
    margin: 18px 8px 0 8px;
}
.ccp-cross-sells h4 {
    margin: 0 0 10px 14px;
    font-size: 17px; font-weight: 700;
}
.ccp-cross-slider {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 8px 14px 12px;
    scrollbar-width: thin;
    scrollbar-color: #aac9e6 #eaeaea;
    scroll-snap-type: x mandatory;
}

.ccp-cross-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 145px;
    width: 145px;
    height: 260px;
    background: #f8fafb;
    border-radius: 13px;
    padding: 14px 8px 12px 8px;
    box-shadow: 0 1px 8px rgba(0,128,255,0.03);
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.ccp-cross-item img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 8px;
    margin-bottom: 6px;
    background: #f1f1f1;
}


.ccp-cross-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 7px;
    flex: 0 0 auto;
}
.ccp-cross-add {
    height: 30px;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 0px 0;
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    transition: background .14s;
    margin-top: 6px;
    margin-bottom: 0;
    box-shadow: 0 1px 5px rgba(0,128,255,0.09);
    text-align: center;
}
.ccp-cross-add:disabled { opacity: 0.6; }

.ccp-cross-variation {
    font-size: 0.92em;
    color: #888;
    margin-top: 2px;
    text-align: center;
}
@media (max-width: 650px) {
    #ccp-popup { width: 99vw; min-width: 0; max-width: 99vw; }
    .ccp-cart-items { max-height: 44vw; }
    .ccp-cross-item {
        flex: 0 0 92vw !important;
        min-width: 92vw !important;
        max-width: 92vw !important;
        box-sizing: border-box !important;
    }
    .ccp-actions { padding: 13px 8px 10px 8px; }
}

@media (max-width: 480px) {
    #ccp-popup { max-width: 100vw; border-radius: 0; }
    .ccp-cart-items { max-height: 40vw; }
    .ccp-cross-slider { gap: 10px; }
    .ccp-cross-item {
        flex: 0 0 92vw !important;
        min-width: 92vw !important;
        max-width: 92vw !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 900px) {
    #ccp-popup { max-width: 640px; }
}
@media (min-width: 1200px) {
    #ccp-popup { max-width: 760px; }
}
@media (min-width: 1440px) {
    #ccp-popup { max-width: 880px; }
}
.ccp-loader { display: block; width: 28px; height: 28px; margin: 40px auto 50px auto; border: 4px solid #eee; border-top: 4px solid #0080ff; border-radius: 50%; animation: spin 0.8s linear infinite;}
@keyframes spin { 100% { transform: rotate(360deg); } }

.ccp-cross-item img {
    display: block;
    margin: 0 auto 6px auto;
}

.ccp-cross-item {
    display: flex;
    flex: 0 0 32%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 145px;
    width: 145px;
    height: 260px;
    background: #f8fafb;
    border-radius: 13px;
    padding: 14px 8px 12px 8px;
    box-shadow: 0 1px 8px rgba(0,128,255,0.03);
    border: 1px solid #e8e8e8;
    box-sizing: border-box;
    text-align: center;
}

.ccp-cross-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.ccp-cross-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.ccp-cross-title {
    font-size: 15px;
    font-weight: 600;
    margin: 7px 0 4px 0;
    color: #283042;
    min-height: 34px;
    text-align: center;
    flex: 0 0 auto;
}

.ccp-cross-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 7px;
}


