/* Modern template styles */
.cookie-bar.cookie-bar-modern {
    background-color: #ffffff;
    color: #333333;
    width: 400px;
    max-width: 90%;
    left: auto;
    right: 3rem;
    bottom: 3rem;
    transform: none;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    70% {
        opacity: 0.9;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-bar-modern .cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.cookie-bar-modern .cookie-icon {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.cookie-bar-modern .cookie-icon svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
}

.cookie-bar-modern .cookie-icon .site-logo {
    max-width: 120px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cookie-bar-modern .cookie-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1.5rem;
    width: 100%;
}

.cookie-bar-modern .cookie-buttons {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-bar-modern .reject-btn,
.cookie-bar-modern .accept-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    text-align: center;
}

.cookie-bar-modern .accept-btn {
    /* Try to inherit from theme primary color */
    background-color: var(--wp--preset--color--primary, var(--primary-color, var(--theme-primary, var(--color-primary, var(--primary, #4CAF50)))));
    color: #ffffff;
    border: none;
}

.cookie-bar-modern .accept-btn:hover {
    /* Darken the inherited color on hover */
    filter: brightness(0.9);
}

.cookie-bar-modern .reject-btn {
    background-color: transparent;
    border: 1px solid #333333;
    color: #333333;
}

.cookie-bar-modern .reject-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Tablet responsive styles */
@media (max-width: 1024px) {
    .cookie-bar.cookie-bar-modern {
        width: 360px;
        right: 2rem;
        bottom: 2rem;
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .cookie-bar-modern .cookie-icon svg {
        width: 40px;
        height: 40px;
    }

    .cookie-bar-modern .cookie-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .cookie-bar-modern .reject-btn,
    .cookie-bar-modern .accept-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .cookie-bar.cookie-bar-modern {
        width: calc(100% - 2rem);
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        padding: 1.25rem;
        gap: 1rem;
    }

    .cookie-bar-modern .cookie-icon {
        margin-bottom: 0.75rem;
    }

    .cookie-bar-modern .cookie-icon svg {
        width: 36px;
        height: 36px;
    }

    .cookie-bar-modern .cookie-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .cookie-bar-modern .cookie-buttons {
        gap: 0.5rem;
    }

    .cookie-bar-modern .reject-btn,
    .cookie-bar-modern .accept-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading spinner for modern template */
.cookie-bar-modern .cookie-btn-loading {
    position: relative;
    color: transparent !important;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-bar-modern .cookie-btn-loading .cookie-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 24px;
    height: 24px;
    border-width: 3px;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
} 