/**
 * RS Compliance Public Styles
 */

/* --- Main Banner --- */
.rs-compliance-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--rsc-banner-bg, #111);
    color: var(--rsc-banner-text, #fff);
    padding: 20px;
    z-index: 999999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.rs-compliance-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rs-compliance-logo img {
    max-height: 50px;
    width: auto;
}

.rs-compliance-content {
    flex: 1;
    min-width: 300px;
}

.rs-compliance-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: inherit;
}

.rs-compliance-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: inherit;
    opacity: 0.9;
}

.rs-compliance-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Buttons */
.rsc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.rsc-btn:hover {
    opacity: 0.9;
}

.rsc-btn-primary {
    background-color: #fff;
    color: #000;
}

.rsc-btn-secondary {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: inherit;
}

.rsc-link {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Revoke Button (Floating) --- */
.rs-compliance-revoke {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999998;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.rs-compliance-revoke:hover {
    transform: scale(1.1);
}

.rs-compliance-revoke .dashicons {
    color: #2271b1;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* --- Settings Modal --- */
.rs-compliance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-compliance-modal-content {
    background: #fff;
    color: #333;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.rs-compliance-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rs-compliance-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.rsc-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.rs-compliance-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.rsc-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.rsc-toggle-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rsc-toggle-info strong {
    display: block;
    margin-bottom: 5px;
}

.rsc-toggle-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Toggle Switch CSS */
.rsc-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

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

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

input:checked + .slider {
    background-color: #2196F3;
}

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

.rsc-toggle-switch.disabled .slider {
    background-color: #2196F3;
    opacity: 0.6;
    cursor: not-allowed;
}

.rs-compliance-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f9f9f9;
}

.rs-compliance-modal-footer .rsc-btn-primary {
    background-color: #2271b1; /* WP Blue */
    color: #fff;
}

/* --- Smart Embed Placeholder --- */
.rs-embed-placeholder {
    background-color: #f0f0f1;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px; /* Approximate video height */
    width: 100%;
}

.rs-embed-inner {
    max-width: 400px;
}

.rs-embed-inner .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #999;
    margin-bottom: 15px;
}

.rs-embed-inner h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.rs-embed-inner p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 0.95rem;
}

/* Re-use existing button styles, but ensure visibility */
.rsc-accept-marketing-embed {
    background-color: #2271b1 !important; /* WP Blue */
    color: #fff !important;
}
.rsc-accept-marketing-embed:hover {
    background-color: #135e96 !important;
}