#ccp-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ccp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.ccp-modal {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: var(--ccp-modal-width, 950px);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: ccp-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.ccp-modal * {
    box-sizing: border-box;
}

@keyframes ccp-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

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

body.ccp-modal-open {
    overflow: hidden;
}

.ccp-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent !important;
    border: none;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.ccp-close-btn:hover {
    color: #999;
}

/* Header */
.ccp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-start;
}

.ccp-header .cpp-title {
    margin-bottom: 0 !important;
    font-weight: 600;
}

.ccp-icon-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--ccp-icon-bg, #000);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.ccp-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: 0;
    line-height: 1.2;
}

/* Product Wrapper */
.ccp-product-wrapper {
    display: grid;
    grid-template-columns: 140px 1fr 200px;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

.ccp-product-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.ccp-product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ccp-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ccp-product-variations {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.ccp-meta-row {
    font-size: 13px;
    line-height: 1.4;
}

.ccp-meta-label {
    color: #666;
}

.ccp-meta-value {
    color: #000;
    font-weight: 500;
}

.ccp-product-price {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    margin: 0;
}

.ccp-product-price del {
    color: #999;
    font-weight: normal;
    margin-right: 6px;
    font-size: 14px;
}

.ccp-product-price ins {
    text-decoration: none;
}

/* Actions */
.ccp-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccp-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.ccp-btn-checkout {
    background: var(--ccp-primary, #000);
    color: #fff !important;
    border: 1px solid var(--ccp-primary, #000);
}

.ccp-btn-checkout:hover {
    opacity: 0.85;
    color: #fff !important;
}

.ccp-btn-continue {
    background: #fff;
    color: #000 !important;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.ccp-btn-continue:hover {
    background: #fdfdfd;
    border-color: #d5d5d5;
}

.ccp-btn-view-cart-link {
    display: block;
    text-align: center;
    color: var(--ccp-primary, #000);
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.ccp-btn-view-cart-link:hover {
    opacity: 0.8;
}

/* Cross-sells */
.ccp-cross-sells {
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.ccp-cross-sells .ccp-cross-sells-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px;
    text-align: left;
}

.ccp-cross-sells-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

@media (max-width: 991px) {
    .ccp-cross-sells-list {
        grid-auto-columns: calc((100% - 32px) / 3);
    }
}

.ccp-cs-item {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ccp-cs-link {
    text-decoration: none;
    display: block;
    color: inherit;
    transition: transform 0.2s ease;
}

.ccp-cs-link:hover {
    opacity: 0.8;
}

.ccp-cs-image {
    margin-bottom: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

.ccp-cs-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.ccp-cs-name {
    font-size: 13px;
    color: #000;
    margin: 0 0 4px;
    font-weight: 600;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.ccp-cs-price {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    font-weight: 500;
}

.ccp-cs-price del {
    color: #aaa;
    font-weight: normal;
    font-size: 12px;
    margin-right: 4px;
}

.ccp-cs-price ins {
    text-decoration: none;
    color: #000;
}

.ccp-cs-add-to-cart {
    display: block;
    text-align: center;
    background: #f4f4f4;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: auto;
}

.ccp-cs-add-to-cart:hover {
    background: #e4e4e4;
}

.ccp-cs-add-to-cart.loading {
    opacity: 0.6;
    cursor: wait;
}

/* Progress Bar */
.ccp-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--ccp-primary, #000);
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
}

.ccp-progress-bar.active {
    animation: ccp-progress 7s linear forwards;
}

@keyframes ccp-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 650px) {
    .ccp-modal {
        padding: 24px;
        width: 95%;
    }

    .ccp-close-btn {
        top: 16px;
        right: 16px;
    }

    .ccp-header h2 {
        font-size: 18px;
    }

    .ccp-product-wrapper {
        grid-template-columns: 90px 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }

    .ccp-product-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .ccp-meta-row {
        font-size: 12px;
    }

    .ccp-product-price {
        font-size: 15px;
        margin-top: 4px;
    }

    .ccp-actions {
        grid-column: 1 / -1;
        gap: 12px;
        margin-top: 4px;
    }

    /* .ccp-btn-continue {
        display: none !important;
    } */

    .ccp-btn-checkout {
        padding: 12px 20px;
        font-size: 14px;
    }

    .ccp-btn-view-cart-link {
        font-size: 13px;
    }

    .ccp-cross-sells {
        padding-top: 12px;
    }

    .ccp-cross-sells h4,
    .ccp-cross-sells .ccp-cross-sells-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .ccp-cross-sells-list {
        grid-auto-columns: calc((100% - 20px) / 3);
        gap: 10px;
        padding-bottom: 4px;
    }

    .ccp-cs-image {
        margin-bottom: 6px;
    }

    .ccp-cs-name {
        font-size: 10px;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .ccp-cs-price {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .ccp-cs-add-to-cart {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* 
    .ccp-cs-price,
    .ccp-cs-add-to-cart {
        display: none !important;
    } */


}