/**
 * Advanced Cookie Consent - Public Styles
 */

/* Base Styles */
.acc-banner {
    position: fixed;
    z-index: 999999;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.acc-banner-inner {
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.acc-banner-content {
    margin-bottom: 15px;
}

.acc-banner-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.acc-banner-message {
    margin: 0;
}

.acc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.acc-privacy-policy-link {
    margin-top: 10px;
}

.acc-privacy-policy-link a {
    text-decoration: underline;
}

/* Banner Positions */
.acc-position-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.acc-position-top {
    top: 0;
    left: 0;
    right: 0;
}

.acc-position-bottom-left {
    bottom: 20px;
    left: 20px;
    max-width: 400px;
}

.acc-position-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
}

.acc-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
}

/* Banner Layouts */
.acc-layout-block {
    display: block;
}

.acc-layout-block .acc-banner-inner {
    flex-direction: column;
}

.acc-layout-inline .acc-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.acc-layout-inline .acc-banner-content {
    margin-bottom: 0;
    margin-right: 20px;
    flex: 1;
}

/* Button Styles */
.acc-btn {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.3s, transform 0.1s;
}

.acc-btn:hover {
    transform: translateY(-1px);
}

.acc-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.acc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.acc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.acc-modal-container {
    position: relative;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.acc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.acc-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.acc-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.acc-modal-body {
    padding: 20px;
}

.acc-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    gap: 10px;
}

/* Cookie Categories in Modal */
.acc-cookie-categories {
    margin-top: 20px;
}

.acc-cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.acc-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.acc-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.acc-category-header h4 {
    margin: 0 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.acc-category-description p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Toggle Switch in Modal */
.acc-category-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.acc-category-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.acc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.acc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .acc-toggle-slider {
    background-color: #2196F3;
}

input:focus + .acc-toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .acc-toggle-slider:before {
    transform: translateX(18px);
}

/* Shortcodes Styling */
.acc-settings-shortcode {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.acc-cookie-table-shortcode {
    margin: 20px 0;
}

.acc-cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.acc-cookies-table th,
.acc-cookies-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.acc-cookies-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.acc-cookies-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.acc-privacy-policy-shortcode {
    margin: 20px 0;
}

.acc-policy-section {
    margin-bottom: 30px;
}

.acc-policy-section h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.acc-cookie-category-info {
    margin-bottom: 20px;
}

.acc-cookie-category-info h4 {
    margin-bottom: 5px;
}

.acc-cookie-category-info p {
    margin-top: 0;
    color: #666;
}

/* Theme Color Schemes */
/* Light Theme (Default) */
.acc-theme-light {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.acc-theme-light .acc-btn-accept {
    background: #4CAF50;
    color: white;
}

.acc-theme-light .acc-btn-decline {
    background: #f44336;
    color: white;
}

.acc-theme-light .acc-btn-settings,
.acc-theme-light .acc-btn-save-settings {
    background: #2196F3;
    color: white;
}

.acc-theme-light .acc-privacy-link {
    color: #0073aa;
}

/* Dark Theme */
.acc-theme-dark {
    background: #333;
    color: #f1f1f1;
    border: 1px solid #555;
}

.acc-theme-dark .acc-modal-container {
    background: #333;
    color: #f1f1f1;
}

.acc-theme-dark .acc-modal-header,
.acc-theme-dark .acc-modal-footer {
    border-color: #555;
}

.acc-theme-dark .acc-cookie-category {
    border-color: #555;
}

.acc-theme-dark .acc-btn-accept {
    background: #4CAF50;
    color: white;
}

.acc-theme-dark .acc-btn-decline {
    background: #f44336;
    color: white;
}

.acc-theme-dark .acc-btn-settings,
.acc-theme-dark .acc-btn-save-settings {
    background: #2196F3;
    color: white;
}

.acc-theme-dark .acc-category-description p {
    color: #ccc;
}

.acc-theme-dark .acc-privacy-link {
    color: #4db2ec;
}

/* Minimal Theme */
.acc-theme-minimal {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.acc-theme-minimal .acc-btn {
    border-radius: 30px;
    font-weight: 500;
}

.acc-theme-minimal .acc-btn-accept {
    background: #4CAF50;
    color: white;
}

.acc-theme-minimal .acc-btn-decline {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.acc-theme-minimal .acc-btn-settings {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.acc-theme-minimal .acc-privacy-link {
    color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .acc-layout-inline .acc-banner-inner {
        flex-direction: column;
    }
    
    .acc-layout-inline .acc-banner-content {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .acc-position-bottom-left,
    .acc-position-bottom-right {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .acc-banner-actions {
        justify-content: center;
    }
} 