/* YG724 — site geneli alert lightbox (panel hariç) */

#yg-alert-root {
    position: relative;
    z-index: 999999;
}

.yg-alert-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(15, 23, 42, 0.52);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 999999;
}

.yg-alert-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.yg-alert-dialog {
    width: 100%;
    max-width: 420px;
    background: var(--ty-white, #fff);
    border-radius: 16px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 24px 48px -12px rgba(25, 31, 43, 0.28);
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.26s cubic-bezier(0.34, 1.3, 0.64, 1);
    border: 1px solid var(--ty-border, #e5e7eb);
}

.yg-alert-overlay.is-open .yg-alert-dialog {
    transform: scale(1) translateY(0);
}

.yg-alert-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--ty-orange-700, #c2410c), var(--ty-orange, #f27a1a), var(--ty-yellow, #ffc73d));
}

.yg-alert-inner {
    padding: 28px 24px 24px;
    text-align: center;
}

.yg-alert-icon {
    color: var(--ty-orange, #f27a1a);
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
}

.yg-alert-title {
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ty-dark, #191f2b);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.yg-alert-msg {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ty-text-soft, #56585b);
    margin: 0 0 22px;
    white-space: pre-wrap;
    word-break: break-word;
}

.yg-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(180deg, var(--ty-orange, #f27a1a), var(--ty-orange-600, #e8590c));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(242, 122, 26, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.yg-alert-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(242, 122, 26, 0.45);
}

.yg-alert-btn:focus {
    outline: 2px solid var(--ty-orange, #f27a1a);
    outline-offset: 2px;
}

.yg-alert-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .yg-alert-inner {
        padding: 22px 18px 20px;
    }

    .yg-alert-dialog {
        border-radius: 14px;
    }
}
