.ft-a2hs-overlay {
    position: fixed;
    inset: 0;
    z-index: 4200;
    background: rgba(15, 23, 42, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ft-a2hs-overlay.hidden {
    display: none !important;
}

.ft-a2hs-card {
    width: min(460px, calc(100vw - 20px));
    background: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.ft-a2hs-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(120deg, #0f4871 0%, #0f6f9e 100%);
    color: #fff;
}

.ft-a2hs-head img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex: 0 0 auto;
}

.ft-a2hs-head strong {
    font-size: 14px;
    line-height: 1.3;
}

.ft-a2hs-body {
    padding: 12px 14px 10px;
}

.ft-a2hs-body p {
    margin: 0;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.55;
}

.ft-a2hs-guide {
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
}

.ft-a2hs-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 0 14px 13px;
}

.ft-a2hs-actions .pm-btn {
    justify-content: center;
}

@media (max-width: 768px) {
    .ft-a2hs-overlay {
        align-items: center;
        padding: 10px;
        padding-bottom: 10px;
    }

    .ft-a2hs-card {
        width: 100%;
        max-width: 520px;
        border-radius: 12px;
    }

    .ft-a2hs-actions {
        grid-template-columns: 1fr 1fr;
    }

    .ft-a2hs-actions .ft-a2hs-add-btn {
        grid-column: 1 / -1;
    }
}
