/* Forge Consent Pro Banner CSS - Material UI/* Main Banner Styles */

.fcp-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    min-width: 320px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #212121;
    padding: 0;
    border: 1px solid #e0e0e0;
}

.fcp-banner-container {
    padding: 16px 24px;
    position: relative;
}

.fcp-banner-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fcp-banner-header {
    text-align: center;
    margin-bottom: 0;
}

.fcp-banner-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px 0;
    color: #1976d2;
    line-height: 1.3;
}

.fcp-banner-description {
    font-size: 12px;
    color: #424242;
    margin: 0;
    line-height: 1.3;
}

.fcp-banner-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.fcp-category {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.fcp-category:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.fcp-category-essential {
    background: #e8f5e8;
    border-color: #4caf50;
}

.fcp-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.fcp-category h3 {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: #212121;
}

.fcp-category-description {
    font-size: 11px;
    color: #616161;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.fcp-toggle {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 16px;
}

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

.fcp-toggle-label {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

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

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

.fcp-toggle input:checked + .fcp-toggle-label .fcp-toggle-slider {
    background-color: #1976d2;
}

.fcp-toggle input:checked + .fcp-toggle-label .fcp-toggle-slider:before {
    transform: translateX(16px);
}

.fcp-toggle input:disabled + .fcp-toggle-label .fcp-toggle-slider {
    background-color: #4caf50;
    cursor: not-allowed;
}

.fcp-toggle input:disabled + .fcp-toggle-label .fcp-toggle-slider:before {
    transform: translateX(16px);
}

.fcp-toggle-text {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #616161;
    white-space: nowrap;
}

.fcp-dependencies {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e0e0e0;
}

.fcp-dependencies h4 {
    font-size: 10px;
    font-weight: 500;
    margin: 0 0 3px 0;
    color: #212121;
}

.fcp-dependencies ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: none;
}

.fcp-dependencies li {
    font-size: 10px;
    color: #616161;
    margin-bottom: 2px;
    position: relative;
}

.fcp-dependencies li:before {
    content: "•";
    position: absolute;
    left: -16px;
    color: #1976d2;
}

.fcp-dependencies strong {
    color: #424242;
    font-weight: 500;
}

.fcp-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.fcp-banner-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.fcp-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.fcp-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

.fcp-banner-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.fcp-button {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.fcp-button:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

.fcp-button-primary {
    background-color: #1976d2;
    color: white;
}

.fcp-button-primary:hover {
    background-color: #1565c0;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.fcp-button-emphasis {
    background-color: #2e7d32;
    color: white;
}

.fcp-button-emphasis:hover {
    background-color: #1b5e20;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.fcp-button-secondary {
    background-color: transparent;
    color: #616161;
    border: 1px solid #e0e0e0;
}

.fcp-button-secondary:hover {
    background-color: #f5f5f5;
    border-color: #bdbdbd;
    color: #424242;
}

.fcp-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #616161;
    padding: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.fcp-close:hover {
    background-color: #f5f5f5;
    color: #424242;
}

.fcp-banner-footer {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.fcp-powered-by {
    font-size: 9px;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fcp-banner {
        bottom: 15px;
        max-width: 95%;
        min-width: 300px;
    }
    
    .fcp-banner-container {
        padding: 14px 20px;
    }
    
    .fcp-banner-title {
        font-size: 13px;
    }
    
    .fcp-banner-description {
        font-size: 11px;
    }
    
    .fcp-banner-buttons {
        gap: 5px;
    }
    
    .fcp-button {
        padding: 7px 12px;
        font-size: 10px;
        min-width: 55px;
    }
    
    .fcp-powered-by {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .fcp-banner {
        bottom: 10px;
        max-width: 92%;
        min-width: 320px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .fcp-banner-container {
        padding: 12px 18px;
    }
    
    .fcp-banner-title {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .fcp-banner-description {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .fcp-banner-buttons {
        flex-direction: row;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .fcp-button {
        padding: 6px 10px;
        font-size: 9px;
        min-width: auto;
        flex: 1;
        min-width: 80px;
    }
    
    .fcp-powered-by {
        font-size: 7px;
    }
}

@media (max-width: 360px) {
    .fcp-banner {
        max-width: 90%;
        min-width: 300px;
    }
    
    .fcp-banner-container {
        padding: 10px 16px;
    }
    
    .fcp-banner-title {
        font-size: 11px;
    }
    
    .fcp-banner-description {
        font-size: 9px;
    }
    
    .fcp-button {
        padding: 5px 8px;
        font-size: 8px;
        min-width: 70px;
    }
}

/* Animation for banner appearance */
.fcp-banner {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
}

.fcp-banner.fcp-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .fcp-banner {
        border-top: 2px solid #000000;
    }
    
    .fcp-category {
        border: 2px solid #000000;
    }
    
    .fcp-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .fcp-banner,
    .fcp-category,
    .fcp-button,
    .fcp-toggle-slider,
    .fcp-toggle-slider:before,
    .fcp-link,
    .fcp-close {
        transition: none;
    }
}

/* Print styles */
@media print {
    .fcp-banner {
        display: none;
    }
}
