.bulk-compose .compose-review-bar
{
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    border: 1px solid var(--bulk-edge);
    border-inline-start: 4px solid var(--bulk-accent);
    background: #fff;
    border-radius: 12px;
    padding: 14px clamp(16px, 2.2vw, 26px);
}

.bulk-compose .compose-next
{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
}

.bulk-compose .compose-next:empty
{
    display: none;
}

.bulk-compose .compose-next::before
{
    content: "";
    width: .65rem;
    height: .65rem;
    flex: 0 0 auto;
    border: 2px solid var(--bulk-muted);
    border-radius: 50%;
    box-sizing: border-box;
}

.bulk-compose .compose-next[data-state="ready"]::before
{
    border-color: var(--bulk-accent);
    background: var(--bulk-accent);
}

.bulk-compose .compose-next[data-state="busy"]::before
{
    border-color: #9ecac4;
    border-inline-start-color: var(--bulk-accent);
}

@media (prefers-reduced-motion: no-preference)
{
    .bulk-compose .compose-next[data-state="busy"]::before
    {
        animation: compose-pending .9s linear infinite;
    }
}

@keyframes compose-pending
{
    to { transform: rotate(360deg); }
}

.bulk-compose .compose-review-bar .bulk-submit
{
    width: auto;
    min-width: 10rem;
    margin: 0;
    flex-shrink: 0;
}

.compose-handset summary
{
    color: var(--bulk-accent);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}

.compose-handset-preview
{
    display: grid;
    gap: 5px;
    margin-block-start: .6rem;
    padding: .75rem .9rem;
    border-inline-start: 3px solid #9dcac0;
    background: #f4f8f7;
    border-radius: 6px;
}

.compose-handset-preview p
{
    max-height: 9rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
}

@media (max-width: 640px)
{
    .bulk-compose .compose-review-bar
    {
        align-items: stretch;
        flex-direction: column;
    }

    .bulk-compose .compose-review-bar .bulk-submit
    {
        width: 100%;
    }
}

.compose-file-row
{
    display: flex;
    align-items: center;
    gap: 5px 12px;
    flex-wrap: wrap;
}

.bulk-compose[data-file-enhanced] .compose-file-picker
{
    position: relative;
    display: inline-flex;
    align-items: center;
    border: 1px solid #9ab4b0;
    border-radius: 7px;
    min-height: 2.5rem;
    padding: 5px 12px;
    color: var(--bulk-accent);
    cursor: pointer;
}

.bulk-compose[data-file-enhanced] .compose-file-picker input[type="file"]
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.bulk-compose[data-file-enhanced] .compose-file-picker:focus-within
{
    outline: 2px solid var(--bulk-accent);
    outline-offset: 2px;
}

.compose-file-name
{
    min-width: 0;
    overflow-wrap: anywhere;
}

.compose-file-clear
{
    min-height: 2.5rem;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--bulk-accent);
    text-decoration: underline;
    cursor: pointer;
}

.compose-upload-progress
{
    width: min(100%, 20rem);
    height: .55rem;
    accent-color: var(--bulk-accent);
}

.bulk-compose .compose-next[data-state="error"]
{
    color: #8a3426;
}

.bulk-compose .compose-next[data-state="error"]::before
{
    border-color: currentColor;
}

.bulk-preview-wait
{
    position: fixed;
    z-index: 30;
    inset-inline: 0;
    inset-block-end: max(1.25rem, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: .85rem;
    width: fit-content;
    min-width: min(15rem, calc(100% - 2rem));
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
    margin-inline: auto;
    padding: .85rem 1.25rem;
    border: 1px solid #31706c;
    border-radius: 12px;
    background: #103f43;
    color: #fff;
    box-shadow: 0 6px 22px rgba(16, 43, 47, .24);
    pointer-events: none;
}

.bulk-preview-wait[hidden]
{
    display: none;
}

.bulk-preview-wait strong
{
    font-size: 1rem;
}

.bulk-preview-wait p
{
    margin: .15rem 0 0;
    font-size: .9rem;
    line-height: 1.45;
    color: #e2f2ee;
}

.bulk-preview-wait .compose-upload-progress
{
    display: block;
    width: 100%;
    margin-block-start: .45rem;
    accent-color: #80d9c6;
}

.bulk-preview-wait .compose-upload-progress[hidden]
{
    display: none;
}

.bulk-wait-spinner
{
    display: inline-block;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    box-sizing: border-box;
    border: 3px solid #66948e;
    border-inline-start-color: #edfff9;
    border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference)
{
    .bulk-wait-spinner
    {
        animation: compose-pending .9s linear infinite;
    }
}

.compose-contact-lists
{
    border-block: 1px solid var(--bulk-edge);
    padding-block: .6rem;
}

.compose-contact-lists summary
{
    cursor: pointer;
    color: var(--bulk-accent);
    font-weight: 600;
}

.compose-contact-lists fieldset
{
    max-block-size: 15rem;
    overflow-y: auto;
    margin-block-start: .6rem;
}

.compose-contact-lists input[type=checkbox]
{
    width: 1.12rem;
    height: 1.12rem;
    flex: 0 0 auto;
    accent-color: var(--bulk-accent);
}

.campaign-link-reservation
{
    display: grid;
    gap: .2rem;
    min-width: 0;
    padding: .55rem .8rem;
    margin-block-start: .3rem;
    border-inline-start: 3px solid #498579;
    border-radius: .35rem;
    color: #183d37;
    background: #edf5f3;
    overflow-wrap: anywhere;
}
.campaign-link-reservation[hidden], [data-track-domain-field][hidden], .campaign-link-preview[hidden]
{
    display: none;
}
.campaign-link-meta
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem .8rem;
    font-size: .85rem;
}
.campaign-link-parts
{
    display: flex;
    gap: 2px;
}
.campaign-link-parts span
{
    height: .25rem;
    border-radius: 2px;
}
.campaign-link-preview
{
    color: #006c60;
    text-decoration: underline;
    overflow-wrap: anywhere;
}
