/* ==========================================================================
   Cookie lista (ASM cookies) - styl sladeny s webem (style.css promenne)
   HTML strukturu generuje cookies.php + fromFB/cookies/asm_content.js
   ========================================================================== */

.aviso {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 920px;
    background: var(--primary-color, #1B3A5C);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    font-size: .95rem;
    line-height: 1.5;
}

/* asm_content.js prepina viditelnost pres tridu .hidden na #aviso */
.aviso.hidden {
    display: none !important;
}

.aviso p {
    margin: 0;
    flex: 1 1 320px;
}

.aviso a {
    color: var(--secondary-color, #F59E0B);
    text-decoration: underline;
}

.aviso .asm-button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.aviso .asm-button:hover {
    background: rgba(255, 255, 255, .12);
}

.aviso .asm-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* "Prijmout vsechny cookies" = hlavni akce (jantarova) */
.aviso #acepta {
    background: var(--secondary-color, #F59E0B);
    border-color: var(--secondary-color, #F59E0B);
    color: #1B3A5C;
}

.aviso #acepta:hover {
    background: #e08e09;
    border-color: #e08e09;
}

/* zaviraci krizek (asm jej zobrazi az po udeleni souhlasu) */
#closeams {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    fill: #fff;
}

#asm_state,
#aviso2 {
    flex-basis: 100%;
    margin: 0;
    font-size: .8rem;
    opacity: .8;
}

#asm_state:empty,
#aviso2:empty {
    display: none;
}

@media (max-width: 640px) {
    .aviso {
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 12px 12px 0 0;
        padding: 16px;
    }

    .aviso .asm-button {
        flex: 1 1 auto;
        justify-content: center;
    }
}
