/**
 * Cookie Consent Banner Styles - Apnea Center Design System
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 0 13px -4px rgba(0, 0, 0, 0.17);
    z-index: 10000;
    padding: 30px 15px;
    display: none;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    border-top: 3px solid #748ec2;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-header h3 {
    margin: 0 0 15px 0;
    color: #151515;
    font-size: 24px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
}

.cookie-consent-header p {
    margin: 0 0 20px 0;
    color: #151515;
    font-size: 14px;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cookie-category {
    background: #f7f7f7;
    padding: 20px;
    border: 1px solid #cccccc;
    border-radius: 0;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
}

.cookie-category-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #748ec2;
}

.cookie-category-name {
    color: #151515;
    font-size: 14px;
}

.required-badge {
    background: #748ec2;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
}

.cookie-category-description {
    color: rgba(21, 21, 21, 0.7);
    font-size: 14px;
    margin: 8px 0 0 0;
    line-height: 1.4;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
}

.cookie-consent-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-consent-actions .btn {
    min-width: 160px;
    padding: 17px 33px 15px;
    border: 2px solid;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
    font-weight: 500;
    transition: 250ms all ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-consent-actions .btn-primary {
    background: #748ec2;
    color: #ffffff;
    border-color: #748ec2;
}

.cookie-consent-actions .btn-primary:hover {
    background: #151515;
    border-color: #151515;
    color: #ffffff;
}

.cookie-consent-actions .btn-secondary {
    background: #2c343b;
    color: #cccccc;
    border-color: #2c343b;
}

.cookie-consent-actions .btn-secondary:hover {
    background: #748ec2;
    border-color: #748ec2;
    color: #ffffff;
}

.cookie-consent-actions .btn-outline {
    background: transparent;
    color: #151515;
    border-color: #151515;
}

.cookie-consent-actions .btn-outline:hover {
    background: #748ec2;
    border-color: #748ec2;
    color: #ffffff;
}

.cookie-consent-actions .btn-link {
    background: transparent;
    color: #748ec2;
    border: 2px solid transparent;
    text-decoration: underline;
    min-width: auto;
}

.cookie-consent-actions .btn-link:hover {
    color: #016760;
    text-decoration: none;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: none;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 0;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.17);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #cccccc;
    background: #f7f7f7;
}

.cookie-settings-header h3 {
    margin: 0;
    color: #151515;
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #151515;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.close-btn:hover {
    color: #748ec2;
}

.cookie-settings-body {
    padding: 30px;
}

.cookie-setting-item {
    border-bottom: 1px solid #cccccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cookie-setting-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-setting-header {
    margin-bottom: 15px;
}

.cookie-setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-setting-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #748ec2;
}

.cookie-setting-name {
    color: #151515;
    font-size: 16px;
}

.cookie-setting-description {
    color: rgba(21, 21, 21, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cookie-list {
    font-size: 12px;
    color: rgba(21, 21, 21, 0.7);
    background: #f7f7f7;
    padding: 10px;
    border-radius: 0;
    font-family: "Poppins", sans-serif;
    border: 1px solid #cccccc;
}

.cookie-settings-footer {
    padding: 30px;
    border-top: 1px solid #cccccc;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f7f7f7;
}

.cookie-settings-footer .btn {
    min-width: 120px;
    padding: 17px 33px 15px;
    border: 2px solid;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
    font-weight: 500;
    transition: 250ms all ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-settings-footer .btn-primary {
    background: #748ec2;
    color: #ffffff;
    border-color: #748ec2;
}

.cookie-settings-footer .btn-primary:hover {
    background: #151515;
    border-color: #151515;
    color: #ffffff;
}

.cookie-settings-footer .btn-secondary {
    background: #2c343b;
    color: #cccccc;
    border-color: #2c343b;
}

.cookie-settings-footer .btn-secondary:hover {
    background: #748ec2;
    border-color: #748ec2;
    color: #ffffff;
}

/* Embed Placeholders */
.embed-placeholder {
    background: #f7f7f7;
    border: 2px dashed #cccccc;
    border-radius: 0;
    padding: 40px 20px;
    text-align: center;
    margin: 30px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
}

.embed-placeholder-content {
    max-width: 300px;
}

.embed-placeholder-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.embed-placeholder h4 {
    color: #151515;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.embed-placeholder p {
    color: rgba(21, 21, 21, 0.7);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.enable-embed {
    min-width: 160px;
    padding: 17px 33px 15px;
    background: #748ec2;
    color: #ffffff;
    border: 2px solid #748ec2;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
    font-weight: 500;
    transition: 250ms all ease-in-out;
}

.enable-embed:hover {
    background: #151515;
    border-color: #151515;
    color: #ffffff;
}

/* Cookie Settings Link */
.cookie-settings-link {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #748ec2;
    color: #ffffff;
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
    font-family: "Montserrat", sans-serif, Arial, sans-serif;
    font-weight: 500;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.17);
    transition: all 0.3s ease-in-out;
    border: 2px solid #748ec2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.cookie-settings-link:hover {
    background: #151515;
    border-color: #151515;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 0 13px -4px rgba(0, 0, 0, 0.17);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 20px 15px;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-actions .btn {
        width: 100%;
        text-align: center;
        min-width: auto;
    }
    
    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer .btn {
        min-width: auto;
        width: 100%;
    }
    
    .cookie-settings-link {
        bottom: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
        padding: 8px;
        font-size: 14px;
    }
}

/* Animation for smooth transitions */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner.show {
    animation: slideUp 0.3s ease-out;
}

/* Focus states for accessibility */
.cookie-consent-actions .btn:focus,
.cookie-settings-footer .btn:focus,
.enable-embed:focus,
.cookie-settings-link:focus {
    outline: 2px solid #748ec2;
    outline-offset: 2px;
}

.cookie-category-label input[type="checkbox"]:focus,
.cookie-setting-label input[type="checkbox"]:focus {
    outline: 2px solid #748ec2;
    outline-offset: 2px;
}