/* Consent Banner */
#scmguard-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 99999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.scmguard-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .scmguard-consent-container {
        flex-direction: column;
        gap: 15px;
    }
}

.scmguard-consent-content {
    flex: 1;
    padding-right: 20px;
}

.scmguard-consent-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.scmguard-consent-content p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Buttons */
.scmguard-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scmguard-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.scmguard-button.accept {
    background: #4CAF50;
    color: white;
}

.scmguard-button.reject {
    background: #f44336;
    color: white;
}

.scmguard-button.primary {
    background: #2196F3;
    color: white;
}

.scmguard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.scmguard-link-button {
    background: none;
    border: none;
    color: #2196F3;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
    margin: 0;
}

.scmguard-link-button:hover {
    color: #0b7dda;
    text-decoration: none;
}

/* Preferences Panel */
#scmguard-preferences-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scmguard-hidden {
    display: none !important;
}

.scmguard-preferences-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.scmguard-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.scmguard-preferences-header h5 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

#scmguard-close-preferences {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#scmguard-close-preferences:hover {
    background: #eee;
    color: #333;
}

.scmguard-preferences-content {
    padding: 20px;
}

.scmguard-preferences-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Consent Options */
.scmguard-consent-option {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.scmguard-consent-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.scmguard-consent-option label {
    display: block;
    cursor: pointer;
    margin-bottom: 5px;
}

.scmguard-consent-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.scmguard-consent-label {
    font-weight: 500;
    color: #333;
}

.scmguard-required-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.scmguard-consent-description {
    margin: 5px 0 0 25px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.scmguard-preferences-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

/* Region-specific styling */
.scmguard-consent-region-us .scmguard-button.reject {
    background: #ff9800;
}

.scmguard-consent-region-au .scmguard-button {
    padding: 12px 24px;
}

/* Body class when modal is open */
body.scmguard-modal-open {
    overflow: hidden;
}

/* Animation */
#scmguard-consent-banner {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}