.ccpl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.ccpl-overlay.ccpl-visible {
    opacity: 1;
    pointer-events: auto;
}

.ccpl-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 400ms ease, opacity 400ms ease;
    font-family: inherit;
}

.ccpl-popup.ccpl-visible {
    transform: translateY(0);
    opacity: 1;
}

.ccpl-hidden {
    display: none;
}

.ccpl-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 25% vertical height on larger screens */
@media (min-width: 768px) {
    .ccpl-popup {
        height: 25vh;
        display: flex;
        align-items: center;
    }
}

.ccpl-message {
    font-size: 0.95rem;
    line-height: 1.5;
}

.ccpl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ccpl-btn {
    border: none;
    cursor: pointer;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

/* Theme classes */
.ccpl-theme-dark {
    color: #ffffff;
}

.ccpl-theme-dark .ccpl-btn-primary {
    background: #ffffff;
    color: #111111;
}

.ccpl-theme-dark .ccpl-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.ccpl-theme-light {
    color: #111111;
}

.ccpl-theme-light .ccpl-btn-primary {
    background: #111111;
    color: #ffffff;
}

.ccpl-theme-light .ccpl-btn-secondary {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.4);
    color: #111111;
}

@media (max-width: 767px) {
    .ccpl-inner {
        padding: 1rem;
    }
}
