#adblock-notice {
    position: fixed;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    z-index: 9500;

    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px 14px 16px;

    background: #111720;
    border: 1px solid rgba(60, 182, 72, 0.32);
    border-radius: 16px;

    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(60, 182, 72, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition:
        opacity 0.32s ease,
        transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

#adblock-notice.abn--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

[data-theme="light"] #adblock-notice {
    background: #ffffff;
    border-color: rgba(22, 163, 74, 0.28);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(22, 163, 74, 0.06);
}

.abn__icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.abn__body {
    flex: 1;
    min-width: 0;
}

.abn__title {
    font-size: 13px;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 5px;
    line-height: 1.35;
}

[data-theme="light"] .abn__title {
    color: #0f172a;
}

.abn__text {
    font-size: 12px;
    color: #8b949e;
    margin: 0 0 12px;
    line-height: 1.55;
}

[data-theme="light"] .abn__text {
    color: #64748b;
}

.abn__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.abn__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-height: 32px;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.abn__btn:active {
    transform: scale(0.95);
}

.abn__btn--primary {
    background: #3cb648;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(60, 182, 72, 0.28);
}

.abn__btn--primary:hover {
    background: #45c952;
    box-shadow: 0 4px 14px rgba(60, 182, 72, 0.42);
}

.abn__btn--secondary {
    background: transparent;
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.22);
}

.abn__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #c9d1d9;
    border-color: rgba(139, 148, 158, 0.38);
}

[data-theme="light"] .abn__btn--secondary {
    color: #64748b;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .abn__btn--secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #334155;
    border-color: rgba(0, 0, 0, 0.22);
}

.abn__close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    color: #6e7681;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.abn__close:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #e6edf3;
}

.abn__close:active {
    transform: scale(0.91);
}

[data-theme="light"] .abn__close {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #64748b;
}

[data-theme="light"] .abn__close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
}

@media (min-width: 601px) {
    #adblock-notice {
        bottom: 24px;
        left: auto;
        right: 20px;
        max-width: 360px;
    }
}

@media (max-width: 380px) {
    #adblock-notice {
        padding: 12px;
        gap: 10px;
        border-radius: 14px;
    }

    .abn__title {
        font-size: 12.5px;
    }

    .abn__text {
        font-size: 11.5px;
    }

    .abn__btn {
        font-size: 11px;
        padding: 6px 12px;
        min-height: 30px;
    }
}
