﻿/*==============================================================================
  Bildirimler (toast) — site, üye sayfaları, acente / otel portalı ve yönetim paneli.
  Sağ üst köşede üst üste dizilir; telefonda ekran genişliğinde üstte. Davranış: tp-toast.js.
  Renkler her düzende aynıdır; düzen kendi değişkenleriyle (--tp-toast-*) değiştirebilir.
==============================================================================*/
.tp-toasts {
    --tp-toast-bg: #fff;
    --tp-toast-text: #1f2a37;
    --tp-toast-muted: #5b6675;
    --tp-toast-success: #16a34a;
    --tp-toast-info: #2563eb;
    --tp-toast-warning: #d97706;
    --tp-toast-error: #dc2626;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000; /* açık pencerelerin (modal 1055), sabit üst menünün ve temanın açılış perdesinin (preloader 9999) üstünde */
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(400px, calc(100vw - 40px));
    pointer-events: none;
}

.tp-toasts:empty { display: none; }

.tp-toast {
    --tp-toast-accent: var(--tp-toast-info);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px 16px 16px;
    overflow: hidden;
    border-radius: 12px;
    border-left: 4px solid var(--tp-toast-accent);
    background: var(--tp-toast-bg);
    color: var(--tp-toast-text);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08);
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.45;
    text-align: left;
    pointer-events: auto;
}

.tp-toast--success { --tp-toast-accent: var(--tp-toast-success); }
.tp-toast--info { --tp-toast-accent: var(--tp-toast-info); }
.tp-toast--warning { --tp-toast-accent: var(--tp-toast-warning); }
.tp-toast--error { --tp-toast-accent: var(--tp-toast-error); }

.tp-toast__icon {
    flex: 0 0 auto;
    display: inline-flex;
    margin-top: 1px;
    color: var(--tp-toast-accent);
}

.tp-toast__icon svg { display: block; }

.tp-toast__body {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tp-toast__body p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.tp-toast__body ul { margin: 0; padding-left: 18px; }
.tp-toast__body li { margin: 0; color: inherit; font-size: inherit; line-height: inherit; list-style: disc; }
.tp-toast__body li + li { margin-top: 3px; }

.tp-toast__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -4px -2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--tp-toast-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.tp-toast__close:hover { background: rgba(15, 23, 42, .07); color: var(--tp-toast-text); }
.tp-toast__close:focus-visible { outline: 2px solid var(--tp-toast-accent); outline-offset: 1px; }

/* Kalan süre çubuğu (JS genişliği küçültür; üzerine gelince durur) */
.tp-toast__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--tp-toast-accent);
    opacity: .35;
    transform-origin: left center;
}

/* Giriş / çıkış */
.tp-toast.is-entering { opacity: 0; transform: translateX(24px); }
.tp-toast.is-leaving { opacity: 0; transform: translateX(24px); }
.tp-toast { transition: opacity .25s ease, transform .25s ease; }

@media (prefers-reduced-motion: reduce) {
    .tp-toast, .tp-toast.is-entering, .tp-toast.is-leaving { transform: none; transition: opacity .15s linear; }
}

@media (max-width: 575.98px) {
    .tp-toasts { top: 12px; right: 12px; left: 12px; width: auto; }
    .tp-toast { font-size: 14px; }
    .tp-toast.is-entering, .tp-toast.is-leaving { transform: translateY(-16px); }
}

@media print {
    .tp-toasts { display: none !important; }
}
