/* AraziMax — çerez rıza bandı (KVKK) */

.amx-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9000;
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-body);
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}

.amx-consent.is-visible { transform: translateY(0); opacity: 1; }
.amx-consent.is-leaving { transform: translateY(140%); opacity: 0; }

.amx-consent-icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.35rem;
}

.amx-consent-body { flex: 1 1 auto; min-width: 0; }

.amx-consent-body h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.amx-consent-body p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.55;
    color: var(--muted);
}

.amx-consent-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.amx-consent-actions {
    flex: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.amx-consent-actions .btn { white-space: nowrap; }

/* Footer'daki "Çerez Tercihleri" bağlantısı */
.amx-consent-reopen {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.amx-consent-reopen:hover { color: var(--accent); }

@media (max-width: 720px) {
    /* Bant açıkken sohbet balonu "Kabul Et" butonunun üstüne binmesin */
    body.amx-consent-open .amx-chat { display: none; }

    .amx-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .amx-consent-icon { display: none; }
    .amx-consent-actions { width: 100%; }
    .amx-consent-actions .btn { flex: 1 1 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .amx-consent { transition: none; }
}
