/* Shared membership pitch and download queue. The body is the only scroll area. */
.download-ui-modal .queue-modal-content {
    max-width: 520px;
    max-height: 100%;
    background: #141e2c;
    border-color: #344a60;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgb(0 0 0 / 45%);
}

.download-ui-modal .queue-header {
    min-height: 58px;
    padding: 14px 58px;
    border-bottom-color: #2c3c4e;
}

.download-ui-modal .queue-header h2 {
    font-size: clamp(1.12rem, 4.5vw, 1.45rem);
}

.download-ui-modal .queue-body {
    padding: 16px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.download-ui-modal .queue-footer {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-top: 1px solid #2c3c4e;
    background: #141e2c;
}

.download-ui-modal .queue-body > .download-hosting-claim:last-child {
    margin-bottom: 0;
}

.download-ui-modal .queue-close,
.download-ui-modal .queue-close:hover,
.download-ui-modal .queue-close:active,
.download-ui-modal .queue-close:focus-visible {
    transform: translateY(-50%);
    animation: none;
    user-select: none;
    -webkit-user-select: none;
}

.download-ui-modal .membership-benefits {
    padding: 14px;
    margin: 0 0 12px;
    background: #212632;
    border: 1px solid #6f633b;
    border-radius: 12px;
}

.download-ui-modal .membership-benefits h3 {
    margin: 0 0 5px;
    color: #ffe07a;
    font-size: 1.13rem;
    line-height: 1.3;
}

.download-ui-modal .membership-benefits > p {
    margin: 0;
    color: #cbd3dd;
    font-size: 0.875rem;
    line-height: 1.4;
}

.download-ui-modal .membership-benefits ul {
    margin: 10px 0 12px;
    gap: 0;
}

.download-ui-modal .membership-benefits li {
    padding: 5px 0;
    color: #eef2f7;
    font-size: 0.875rem;
    line-height: 1.3;
    border-bottom-color: #39404a;
}

.download-ui-modal .membership-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.download-ui-modal .membership-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 20px;
    background: #ffdb4c;
    color: #171812;
    border: 1px solid #ffdb4c;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.25;
    text-shadow: none;
    box-shadow: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.download-ui-modal .membership-join:hover {
    background: #ffe67e;
    border-color: #ffe67e;
    color: #171812;
    box-shadow: none;
    transform: none;
}

.download-ui-modal .member-sign-in {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    color: #c9d7e4;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: #718295;
    text-underline-offset: 4px;
    transition: color 150ms ease;
}

.download-ui-modal .member-sign-in:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

.download-ui-modal .download-hosting-banner {
    margin: 0;
    line-height: 0;
}

.download-ui-modal .download-hosting-banner a {
    display: block;
    border-radius: 8px;
}

.download-ui-modal .download-hosting-banner img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 6 / 1;
    object-fit: contain;
    margin: 0;
    border-radius: 8px;
    transform: none;
}

.download-ui-modal .download-hosting-claim {
    display: block;
    margin: 8px 0 14px;
    padding: 0;
    background: linear-gradient(110deg, #152b45, #193d53 55%, #122637);
    border: 1px solid #46bedb;
    border-radius: 0;
    color: #acbac9;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

.download-ui-modal .download-hosting-claim a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    color: #d8f5ff;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 3px;
}

.download-ui-modal .download-skip-btn {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 11px 18px;
    background: #25384c;
    border: 1px solid #607e99;
    border-radius: 9px;
    color: #f0f6ff;
    font: 700 0.9rem/1.4 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.download-ui-modal .download-skip-btn:hover {
    background: #344d66;
}


.download-ui-modal a:focus-visible,
.download-ui-modal button:focus-visible {
    outline: 2px solid #9ceaff;
    outline-offset: 3px;
}

.download-ui-modal .queue-download-btn {
    min-height: 46px;
    margin: 0;
    padding: 12px 18px;
}

.download-ui-modal .queue-timer-container {
    margin-bottom: 14px;
}

@media (max-width: 380px) {
    .download-ui-modal .queue-body { padding: 12px; }
    .download-ui-modal .queue-footer { padding: 10px 12px; }
    .download-ui-modal .membership-benefits { padding: 12px; }
    .download-ui-modal .membership-actions { column-gap: 10px; }
    .download-ui-modal .membership-join { padding-inline: 16px; }
}
