/* LaunchPress Cookie Consent Banner */
.lpcc-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.lpcc-banner *,
.lpcc-banner *::before,
.lpcc-banner *::after {
    box-sizing: border-box;
}

/* Positions */
.lpcc-banner-position-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.lpcc-banner-position-top {
    top: 0;
    left: 0;
    right: 0;
}

.lpcc-banner-position-bottom-left {
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lpcc-banner-position-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lpcc-banner-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Banner Content */
.lpcc-banner-content {
    padding: 20px;
}

.lpcc-banner-image {
    text-align: center;
    margin-bottom: 10px;
}

.lpcc-banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.lpcc-banner-header {
    margin-bottom: 15px;
}

.lpcc-banner-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.lpcc-banner-message {
    margin: 0;
    line-height: 1.6;
}

.lpcc-banner-message a {
    text-decoration: underline;
}

/* Buttons */
.lpcc-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.lpcc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.lpcc-btn:hover {
    opacity: 0.9;
}

.lpcc-btn-primary {
    background: var(--lpcc-primary-color, #2271b1);
    color: #fff;
}

.lpcc-btn-secondary {
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.lpcc-btn-tertiary {
    background: transparent;
    color: inherit;
    text-decoration: underline;
    padding: 10px;
}

/* Modal */
.lpcc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lpcc-modal {
    background: var(--lpcc-background-color, #fff);
    color: var(--lpcc-text-color, #333);
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lpcc-modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lpcc-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.lpcc-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
}

.lpcc-modal-close:hover {
    opacity: 1;
}

.lpcc-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.lpcc-modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Cookie Categories */
.lpcc-category {
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.lpcc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.lpcc-category-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpcc-category-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lpcc-category-always {
    font-size: 12px;
    font-weight: 500;
    color: var(--lpcc-primary-color, #2271b1);
}

/* Toggle Switch */
.lpcc-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.lpcc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lpcc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.lpcc-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.lpcc-toggle input:checked + .lpcc-toggle-slider {
    background-color: var(--lpcc-primary-color, #2271b1);
}

.lpcc-toggle input:checked + .lpcc-toggle-slider::before {
    transform: translateX(24px);
}

.lpcc-toggle input:disabled + .lpcc-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Cookie List */
.lpcc-cookie-list {
    padding: 15px;
    background: rgba(0, 0, 0, 0.01);
}

.lpcc-cookie-item {
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lpcc-cookie-item:last-child {
    margin-bottom: 0;
}

.lpcc-cookie-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.lpcc-cookie-meta {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.lpcc-cookie-description {
    font-size: 12px;
    line-height: 1.5;
}

/* Animations */
@keyframes lpcc-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes lpcc-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lpcc-banner {
    animation: lpcc-slide-up 0.3s ease;
}

.lpcc-modal-overlay {
    animation: lpcc-fade-in 0.2s ease;
}

/* Responsive */
@media (max-width: 600px) {
    .lpcc-banner-position-bottom-left,
    .lpcc-banner-position-bottom-right {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .lpcc-banner-position-center {
        left: 10px;
        right: 10px;
        transform: none;
        top: auto;
        bottom: 10px;
    }

    .lpcc-banner-buttons {
        flex-direction: column;
    }

    .lpcc-btn {
        width: 100%;
    }

    .lpcc-modal {
        max-height: 95vh;
    }
}

/* Hidden state */
.lpcc-banner-hidden {
    display: none !important;
}
