.pefeed-cta {
    display: inline-flex;
}

.pefeed-cta__button {
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 18px;
    transition: background-color 160ms ease, transform 160ms ease;
}

.pefeed-cta__button:hover,
.pefeed-cta__button:focus-visible {
    background: #1e293b;
}

.pefeed-cta__button:active {
    transform: translateY(1px);
}

.pefeed-modal[hidden] {
    display: none;
}

.pefeed-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.pefeed-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
}

.pefeed-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    padding: 24px;
}

.pefeed-modal__dialog h2 {
    margin: 0 40px 8px 0;
    font-size: 24px;
    line-height: 1.2;
}

.pefeed-modal__intro {
    margin: 0 0 18px;
    color: #4b5563;
}

.pefeed-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.pefeed-modal__feeds {
    display: grid;
    gap: 10px;
}

.pefeed-modal__feed {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: inherit;
    padding: 12px;
    text-decoration: none;
}

.pefeed-modal__feed:hover,
.pefeed-modal__feed:focus-visible {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.pefeed-modal__feed-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 6px;
    background: #f97316;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pefeed-modal__feed-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.pefeed-modal__feed-body strong,
.pefeed-modal__feed-body span {
    overflow-wrap: anywhere;
}

.pefeed-modal__feed-body span {
    color: #4b5563;
    font-size: 14px;
}

.pefeed-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .pefeed-modal__dialog {
        padding: 20px;
    }

    .pefeed-modal__feed {
        grid-template-columns: 1fr;
    }

    .pefeed-modal__feed-type {
        justify-self: start;
        padding: 0 12px;
    }
}
