/**
 * Revenue Management Plugin - Compliance Styles
 */

/* Cookie Consent Banner */
.revenue-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 41, 52, 0.95);
    color: #ffffff;
    z-index: 99999;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.revenue-cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.revenue-cookie-consent-message {
    flex: 1 1 60%;
    padding: 10px;
    margin-right: 20px;
}

.revenue-cookie-consent-buttons {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 10px;
}

.revenue-cookie-accept {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.revenue-cookie-accept:hover {
    background-color: #45a049;
}

.revenue-cookie-more-info {
    color: #ffffff;
    text-decoration: underline;
    padding: 8px 10px;
    cursor: pointer;
}

.revenue-cookie-more-info:hover {
    text-decoration: none;
}

/* Modal for detailed preferences */
.revenue-consent-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.revenue-consent-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.revenue-consent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.revenue-consent-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.revenue-consent-modal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.revenue-consent-category {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.revenue-consent-category:last-child {
    border-bottom: none;
}

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

.revenue-consent-category-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.revenue-consent-category-description {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.revenue-consent-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.revenue-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.revenue-consent-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .revenue-consent-slider {
    background-color: #4CAF50;
}

input:focus + .revenue-consent-slider {
    box-shadow: 0 0 1px #4CAF50;
}

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

.revenue-consent-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.revenue-consent-save {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.revenue-consent-save:hover {
    background-color: #45a049;
}

.revenue-consent-reject-all {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.revenue-consent-reject-all:hover {
    background-color: #d32f2f;
}

.revenue-consent-accept-all {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.revenue-consent-accept-all:hover {
    background-color: #0b7dda;
}

/* Responsive styles */
@media (max-width: 768px) {
    .revenue-cookie-consent-inner {
        flex-direction: column;
    }
    
    .revenue-cookie-consent-message {
        margin-right: 0;
        margin-bottom: 15px;
        flex: 1 1 100%;
    }
    
    .revenue-cookie-consent-buttons {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.revenue-cookie-consent-container{
    display: flex;
}

@media (max-width: 600px) {
    .revenue-cookie-consent-container{
    display: block;
    justify-content: center;
    text-align: center;
    }
    .revenue-cookie-consent-message{
        font-size: 10px;
        margin-bottom: 0px;
    }
}