/* SOUBOR: style/cookie_style.css */

/* --- POZADÍ (OVERLAY) --- */
.cookie-modal-overlay {
    position: fixed !important; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Tmavé pozadí bez rozostření */
    display: none; /* JS přepne na flex */
    justify-content: center;
    align-items: center;
    z-index: 9999999; 
    padding: 15px;
    box-sizing: border-box;
}

/* --- OKNO (BOX) --- */
.cookie-modal-box {
    background: #fff;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.cookie-modal-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: bold;
}

.cookie-modal-box p {
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-modal-box a {
    color: #007bff;
    text-decoration: underline;
}

/* --- KŘÍŽEK (X) --- */
.close-modal-x {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}
.close-modal-x:hover {
    color: #333;
}

/* --- CHECKBOXY --- */
.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px;
    margin-bottom: 30px;
}

.cookie-option {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
}

.cookie-option label { cursor: pointer; display: block; }
.cookie-option input[type="checkbox"] { float: left; margin-right: 12px; transform: scale(1.3); margin-top: 2px; }
.cookie-option strong { display: block; color: #333; font-weight: bold; }
.cookie-option span { font-size: 0.85rem; color: #666; display: block; margin-left: 28px; }

/* --- TLAČÍTKA --- */
.cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary { background-color: #0a192f; color: #fff; }
.btn-primary:hover { background-color: #333333; }

.btn-secondary { background-color: #e9ecef; color: #333; }
.btn-secondary:hover { background-color: #ccc; }

@media (max-width: 600px) {
    .cookie-options { grid-template-columns: 1fr; }
    .cookie-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; }
    .close-modal-x { top: 15px; right: 15px; }
}