/* Base Styles */
:root {
    --ango-font: inherit;
    --ango-primary: var(--wp-admin-theme-color, #000000);
    --ango-secondary: #666666;
    --ango-border: #e0e0e0;
    --ango-success: var(--wp-admin-theme-color, #2d9d78);
    --ango-danger: #e53935;
    --ango-toggle-active: var(--wp-admin-theme-color, #2196F3);
    --ango-toggle-inactive: #ccc;
    --ango-radius: 8px;
    --ango-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ango-transition: all 0.3s ease;
    --ango-banner-bg: #ffffff;
}

.ango-consent-banner {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: var(--ango-font);
    transform: translateY(100%);
    opacity: 0;
    padding: 0 16px;
}

.ango-consent-banner.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.ango-consent-banner.ango-consent-center {
    bottom: 50%;
    transform: translateY(50%);
}

.ango-consent-content {
    max-width: 800px;
    margin: 0 auto 16px;
    padding: 32px;
    background: var(--ango-banner-bg);
    border-radius: var(--ango-radius);
    box-shadow: var(--ango-shadow);
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    align-items: start;
}

/* Cookie Icon */
.ango-cookie-icon {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--ango-radius);
    /* padding: 24px; */
    align-self: center;
}

.ango-cookie-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Typography */
.ango-consent-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ango-primary);
    font-family: inherit;
    line-height: 1.2;
}

.ango-consent-message {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ango-secondary);
}

/* Toggle Switches */
.ango-consent-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--ango-radius);
}

.ango-consent-option {
    display: flex;
    align-items: center;
}

.ango-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    padding: 4px 0;
}

.ango-toggle:hover .ango-toggle-slider {
    background-color: var(--ango-toggle-inactive);
    filter: brightness(0.95);
}

.ango-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ango-toggle-label {
    font-size: 15px;
    color: var(--ango-primary);
    font-weight: 500;
    flex: 1;
}

.ango-toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: var(--ango-toggle-inactive);
    border-radius: 34px;
    transition: var(--ango-transition);
    margin-left: 16px;
}

.ango-toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--ango-transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ango-toggle input:checked + .ango-toggle-slider {
    background-color: var(--ango-toggle-active);
}

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

.ango-toggle input:disabled + .ango-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Save Button */
.ango-btn-save {
    width: 100%;
    padding: 14px 24px;
    background: var(--ango-success);
    color: white;
    border: none;
    border-radius: var(--ango-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ango-transition);
}

.ango-btn-save:hover {
    filter: brightness(1.1);
}

.ango-btn-save:active {
    transform: translateY(1px);
}

/* Dark Theme */
.ango-consent-dark {
    --ango-primary: #ffffff;
    --ango-secondary: #a0a0a0;
    --ango-border: #333333;
    --ango-banner-bg: #1a1a1a;
}

.ango-consent-dark .ango-cookie-icon {
    background: rgba(255, 255, 255, 0.05);
}

.ango-consent-dark .ango-consent-options {
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ango-consent-content {
        grid-template-columns: 1fr;
        margin: 12px;
        gap: 24px;
        padding: 24px;
    }

    .ango-cookie-icon {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .ango-consent-title {
        font-size: 20px;
        text-align: center;
    }

    .ango-consent-message {
        text-align: center;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .ango-consent-options {
        padding: 20px;
        margin-bottom: 20px;
    }

    .ango-toggle-label {
        font-size: 14px;
    }
}