/**
 * OMS Cookie Consent Styles
 */

/* Banner Styles */
.oms-banner {
    position: fixed;
    z-index: 999999;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    max-width: 100%;
    width: 100%;
}

.oms-banner-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.oms-banner-top {
    top: 0;
    left: 0;
    right: 0;
}

.oms-banner-top-left {
    top: 20px;
    left: 20px;
    max-width: 400px;
}

.oms-banner-top-right {
    top: 20px;
    right: 20px;
    max-width: 400px;
}

.oms-banner-bottom-left {
    bottom: 20px;
    left: 20px;
    max-width: 400px;
}

.oms-banner-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
}

.oms-banner-content {
    padding: 20px;
}

.oms-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.oms-banner-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.oms-banner-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.oms-banner-close:hover {
    color: #333333;
}

.oms-banner-message {
    margin-bottom: 20px;
}

.oms-banner-message p {
    margin: 0;
    color: #666666;
}

/* Categories */
.oms-banner-categories {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.oms-category {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    margin-bottom: 0;
}

.oms-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.oms-category-header h4 {
    margin: 0 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.oms-category-description p {
    margin: 0;
    color: #666666;
    font-size: 12px;
    line-height: 1.3;
}

/* Toggle Switch */
.oms-category-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .oms-toggle-slider {
    background-color: #007cba;
}

input:checked + .oms-toggle-slider:before {
    transform: translateX(26px);
}

input:disabled + .oms-toggle-slider {
    background-color: #007cba;
    cursor: not-allowed;
}

/* Buttons */
.oms-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.oms-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.oms-btn-accept {
    background-color: #007cba;
    color: #ffffff;
}

.oms-btn-accept:hover {
    background-color: #005a87;
}

.oms-btn-reject {
    background-color: #6c757d;
    color: #ffffff;
}

.oms-btn-reject:hover {
    background-color: #545b62;
}

.oms-btn-settings {
    background-color: #ffffff;
    color: #007cba;
    border: 1px solid #007cba;
}

.oms-btn-settings:hover {
    background-color: #f8f9fa;
}

.oms-btn-primary {
    background-color: #007cba;
    color: #ffffff;
}

.oms-btn-primary:hover {
    background-color: #005a87;
}

.oms-btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.oms-btn-secondary:hover {
    background-color: #545b62;
}

/* Links */
.oms-banner-links {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.oms-banner-links a {
    color: #007cba;
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
}

.oms-banner-links a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.oms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.oms-modal-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.oms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.oms-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.oms-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.oms-modal-close:hover {
    color: #333333;
}

.oms-modal-body {
    padding: 0 20px 20px;
}

.oms-modal-body p {
    margin: 0 0 20px 0;
    color: #666666;
}

.oms-modal-categories {
    margin-bottom: 20px;
}

.oms-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

/* Dark Theme */
.oms-theme-dark {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
}

.oms-theme-dark .oms-banner-header h3 {
    color: #ecf0f1;
}

.oms-theme-dark .oms-banner-message p {
    color: #bdc3c7;
}

.oms-theme-dark .oms-category {
    background: #34495e;
    border-left-color: #3498db;
}

.oms-theme-dark .oms-category-header h4 {
    color: #ecf0f1;
}

.oms-theme-dark .oms-category-description p {
    color: #bdc3c7;
}

.oms-theme-dark .oms-banner-links {
    border-top-color: #34495e;
}

.oms-theme-dark .oms-banner-links a {
    color: #3498db;
}

.oms-theme-dark .oms-modal-content {
    background: #2c3e50;
    color: #ecf0f1;
}

.oms-theme-dark .oms-modal-header {
    border-bottom-color: #34495e;
}

.oms-theme-dark .oms-modal-header h3 {
    color: #ecf0f1;
}

.oms-theme-dark .oms-modal-body p {
    color: #bdc3c7;
}

.oms-theme-dark .oms-modal-actions {
    border-top-color: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .oms-banner {
        font-size: 13px;
    }
    
    .oms-banner-content {
        padding: 15px;
    }
    
    .oms-banner-header h3 {
        font-size: 16px;
    }
    
    .oms-banner-actions {
        flex-direction: column;
    }
    
    .oms-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .oms-modal {
        padding: 10px;
    }
    
    .oms-modal-content {
        max-height: 95vh;
    }
    
    /* Mobile: Stack categories vertically */
    .oms-banner-categories {
        flex-direction: column;
    }
    
    .oms-category {
        flex: none;
        width: 100%;
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .oms-category-header h4 {
        font-size: 14px;
    }
    
    .oms-category-description p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .oms-banner-top-left,
    .oms-banner-top-right,
    .oms-banner-bottom-left,
    .oms-banner-bottom-right {
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .oms-banner-links a {
        display: block;
        margin: 5px 0;
    }
}

/* Body styles when modal is open */
body.oms-modal-open {
    overflow: hidden;
}

/* Animation classes */
.oms-fade-in {
    animation: omsFadeIn 0.3s ease-in-out;
}

.oms-fade-out {
    animation: omsFadeOut 0.3s ease-in-out;
}

@keyframes omsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes omsFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Accessibility improvements */
.oms-banner:focus,
.oms-modal:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.oms-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .oms-banner {
        border-width: 2px;
    }
    
    .oms-btn {
        border-width: 2px;
    }
}

/* Floating Consent Icon */
.oms-floating-icon {
    position: fixed;
    z-index: 999998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.oms-floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.oms-floating-icon:active {
    transform: scale(0.95);
}

/* Floating icon positions */
.oms-floating-icon-bottom-right {
    bottom: 20px;
    right: 20px;
}

.oms-floating-icon-bottom-left {
    bottom: 20px;
    left: 20px;
}

.oms-floating-icon-top-right {
    top: 20px;
    right: 20px;
}

.oms-floating-icon-top-left {
    top: 20px;
    left: 20px;
}

/* Floating icon sizes */
.oms-floating-icon-small {
    width: 40px;
    height: 40px;
}

.oms-floating-icon-small svg {
    width: 16px;
    height: 16px;
}

.oms-floating-icon-medium {
    width: 50px;
    height: 50px;
}

.oms-floating-icon-medium svg {
    width: 20px;
    height: 20px;
}

.oms-floating-icon-large {
    width: 60px;
    height: 60px;
}

.oms-floating-icon-large svg {
    width: 24px;
    height: 24px;
}

/* Floating icon animations */
.oms-floating-icon {
    animation: omsFloatingIconPulse 2s infinite;
}

@keyframes omsFloatingIconPulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Responsive floating icon */
@media (max-width: 768px) {
    .oms-floating-icon {
        width: 45px;
        height: 45px;
    }
    
    .oms-floating-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .oms-floating-icon-bottom-right,
    .oms-floating-icon-bottom-left {
        bottom: 15px;
    }
    
    .oms-floating-icon-bottom-right {
        right: 15px;
    }
    
    .oms-floating-icon-bottom-left {
        left: 15px;
    }
}

@media (max-width: 480px) {
    .oms-floating-icon {
        width: 40px;
        height: 40px;
    }
    
    .oms-floating-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .oms-banner,
    .oms-modal,
    .oms-btn,
    .oms-toggle-slider,
    .oms-floating-icon {
        transition: none;
    }
    
    .oms-fade-in,
    .oms-fade-out {
        animation: none;
    }
    
    .oms-floating-icon {
        animation: none;
    }
} 