/* ===== 子比活动中心 1.0.0 ===== */

.zac-wrap {
    --zac-blue: #2f6bff;
    --zac-purple: #7c3aed;
    --zac-pink: #ff2d55;
    --zac-teal: #0d9488;
}

/* ===== 顶部活动总览 ===== */
.zac-hero {
    padding: 15px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(47, 107, 255, .04), rgba(124, 58, 237, .04)), var(--main-bg-color, #fff);
}

.zac-hero-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.zac-hero-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
}

.zac-hero-icon .icon {
    fill: #ff2d55;
    width: 20px;
    height: 20px;
}

.zac-hero-nums {
    display: flex;
    gap: 10px;
}

.zac-num {
    position: relative;
    flex: 1;
    text-align: center;
    background: var(--main-bg-color, #fff);
    border: 1px solid rgba(128, 128, 128, .10);
    border-radius: 8px;
    padding: 12px 6px 10px;
    overflow: hidden;
}

.zac-num b {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    background: linear-gradient(135deg, #2f6bff, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.zac-num span {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.zac-num i {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
    opacity: .9;
}

/* ===== 分类筛选 ===== */
.zac-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.zac-filter {
    border: 1px solid rgba(128, 128, 128, .16);
    background: var(--main-bg-color, #fff);
    color: #666;
    border-radius: 20px;
    font-size: 12px;
    padding: 4px 14px;
    cursor: pointer;
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.zac-filter em {
    font-style: normal;
    font-size: 10px;
    background: rgba(128, 128, 128, .12);
    border-radius: 10px;
    padding: 0 6px;
    line-height: 16px;
}

.zac-filter:hover {
    border-color: var(--zac-c, var(--zac-blue));
    color: var(--zac-c, var(--zac-blue));
}

.zac-filter.active {
    background: var(--zac-c, var(--zac-blue));
    border-color: var(--zac-c, var(--zac-blue));
    color: #fff;
}

.zac-filter.active em {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

/* ===== 活动卡片网格 ===== */
.zac-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .zac-grid {
        grid-template-columns: 1fr;
    }

    .zac-hero-nums {
        gap: 6px;
    }
}

.zac-card {
    padding: 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.zac-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.zac-cover {
    position: relative;
    height: 130px;
    overflow: hidden;
    background: #f2f4f8;
}

.zac-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.zac-card:hover .zac-cover-img {
    transform: scale(1.04);
}

.zac-cover-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zac-cover-cat {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: .95;
}

.zac-cover-emoji {
    font-size: 30px;
    opacity: .9;
}

.zac-cat-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.zac-status-chip {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

.zac-status-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: zacPulse 1.4s ease-in-out infinite;
}

@keyframes zacPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.zac-st-ongoing {
    background: rgba(34, 197, 94, .88);
}

.zac-st-upcoming {
    background: rgba(255, 157, 0, .88);
}

.zac-st-ended {
    background: rgba(90, 90, 90, .72);
}

.zac-badge-chip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff2d55, #ff9d00);
    padding: 2px 10px;
    border-radius: 20px 20px 20px 4px;
}

.zac-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.zac-card-title {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zac-card-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.55;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.zac-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.zac-card-time {
    font-size: 11px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zac-join-btn {
    font-size: 12px;
    color: var(--zac-blue, #2f6bff);
    border: 1px solid rgba(47, 107, 255, .35);
    background: rgba(47, 107, 255, .05);
    border-radius: 20px;
    padding: 3px 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all .15s;
}

.zac-join-btn:hover {
    background: var(--zac-blue, #2f6bff);
    color: #fff;
}

.zac-join-ended {
    color: #999;
    border-color: rgba(128, 128, 128, .3);
    background: rgba(128, 128, 128, .05);
}

.zac-join-ended:hover {
    background: #999;
    color: #fff;
}

.zac-join-none {
    color: #bbb;
    border: 1px dashed rgba(128, 128, 128, .3);
    background: transparent;
    cursor: default;
}

/* 暂停提示 */
.zac-pause-note {
    font-size: 11px;
    color: #b45309;
    background: rgba(255, 157, 0, .08);
    border: 1px dashed rgba(255, 157, 0, .4);
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.zac-paused .zac-cover,
.zac-paused .zac-cover-img,
.zac-paused .zac-cover-ph {
    filter: saturate(.55);
}

/* 查看详情按钮 */
.zac-detail-btn {
    font-size: 12px;
    color: #666;
    border: 1px solid rgba(128, 128, 128, .25);
    background: rgba(128, 128, 128, .05);
    border-radius: 20px;
    padding: 3px 14px;
    white-space: nowrap;
    transition: all .15s;
}

.zac-detail-btn:hover {
    background: #666;
    color: #fff;
}

.zac-foot-btns {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* ===== 活动详情弹窗 ===== */
.zac-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zac-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
}

.zac-modal-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    animation: zacModalIn .22s ease;
}

@keyframes zacModalIn {
    from { transform: translateY(14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.zac-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
}

.zac-modal-cover {
    height: 190px;
    overflow: hidden;
    background: linear-gradient(135deg, #2f6bff, #7c3aed);
}

.zac-modal-cover.has-img {
    background: none;
}

.zac-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zac-modal-body {
    padding: 16px 18px 20px;
}

.zac-modal-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    padding-right: 30px;
}

.zac-modal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.zac-modal-chips .zac-cat-chip,
.zac-modal-chips .zac-status-chip {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.zac-modal-pause {
    font-size: 12px;
    color: #b45309;
    background: rgba(255, 157, 0, .08);
    border: 1px dashed rgba(255, 157, 0, .4);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.zac-modal-detail {
    font-size: 13px;
    color: #444;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 14px;
    min-height: 20px;
}

.zac-modal-time {
    margin-bottom: 14px;
}

.zac-modal-actions {
    display: flex;
    gap: 8px;
}

.zac-modal-actions .zac-join-btn,
.zac-modal-actions .zac-detail-btn {
    font-size: 13px;
    padding: 7px 22px;
}

body.zac-modal-open {
    overflow: hidden;
}

/* 已结束卡片置灰 */
.zac-ended {
    opacity: .72;
}

.zac-ended .zac-cover-img,
.zac-ended .zac-cover-ph {
    filter: grayscale(.85);
}

/* ===== 空状态 ===== */
.zac-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 46px 20px;
}

.zac-empty-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

/* ===== 1.0.2 分类子筛选 / 来源 / 置顶 / 申请 ===== */
.zac-subfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    margin: -6px 0 12px;
    border-top: 1px dashed rgba(128, 128, 128, .12);
}

.zac-subfilter {
    border: 1px solid rgba(128, 128, 128, .14);
    border-radius: 14px;
    background: var(--main-bg-color, #fff);
    color: #777;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
}

.zac-subfilter.active {
    color: #ff2d55;
    border-color: rgba(255, 45, 85, .35);
    background: rgba(255, 45, 85, .06);
}

.zac-source-line {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 7px;
    color: #8a8f99;
    font-size: 10.5px;
}

.zac-source-line span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.zac-pin-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 45, 85, .92);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

.zac-pin-cat {
    background: rgba(255, 157, 0, .92);
}

.zac-pause-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 7px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 157, 0, .09);
    border: 1px solid rgba(255, 157, 0, .18);
    color: #a66300;
    font-size: 10.5px;
    line-height: 1.45;
}

.zac-pause-note b {
    color: #ff7a00;
    font-size: 10.5px;
}

.zac-pause-note em {
    font-style: normal;
    color: #9b6a20;
}

.zac-source-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(128, 128, 128, .08);
    color: #666;
    font-size: 10.5px;
}

/* 申请创办活动 */
.zac-apply-box {
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
}

.zac-apply-box summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.zac-apply-box summary::-webkit-details-marker {
    display: none;
}

.zac-apply-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 45, 85, .1);
    color: #ff2d55;
    font-weight: 700;
}

.zac-apply-box summary b {
    font-size: 14px;
}

.zac-apply-box summary em {
    margin-left: auto;
    color: #9aa0aa;
    font-size: 10.5px;
    font-style: normal;
}

.zac-apply-form {
    padding: 0 14px 14px;
}

.zac-apply-form > label,
.zac-apply-grid label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 11px;
}

.zac-apply-form input,
.zac-apply-form select,
.zac-apply-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 7px 9px;
    border: 1px solid rgba(128, 128, 128, .18);
    border-radius: 7px;
    background: var(--main-bg-color, #fff);
    font-size: 12px;
}

.zac-apply-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
}

.zac-apply-form .but {
    margin-top: 2px;
}

.zac-apply-msg {
    margin: 0 14px 8px;
    padding: 7px 9px;
    border-radius: 6px;
    font-size: 11px;
}

.zac-apply-msg.ok {
    background: rgba(34, 197, 94, .08);
    color: #16803c;
}

.zac-apply-msg.err {
    background: rgba(255, 45, 85, .08);
    color: #c81e3e;
}

@media (max-width: 640px) {
    .zac-apply-grid {
        grid-template-columns: 1fr;
    }

    .zac-apply-box summary em {
        display: none;
    }
}

/* 后台封面 */
.zac-cover-edit {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.zac-cover-preview {
    width: 54px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    background: #f2f4f8;
    color: #999;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.zac-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 1.0.3 申请入口 & 弹窗 ===== */
.zac-apply-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
}

.zac-apply-entry-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.zac-apply-entry-main > div {
    min-width: 0;
}

.zac-apply-entry-main b {
    display: block;
    color: #333;
    font-size: 14px;
}

.zac-apply-entry-main em {
    display: block;
    margin-top: 2px;
    color: #9aa0aa;
    font-size: 10.5px;
    font-style: normal;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zac-apply-open {
    flex: 0 0 auto;
    padding: 7px 13px;
    font-size: 12px;
}

.zac-apply-overlay {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, .42);
}

.zac-apply-modal {
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    overflow-y: auto;
    border-radius: 14px;
    background: var(--main-bg-color, #fff);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.zac-apply-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px 10px;
    background: var(--main-bg-color, #fff);
    border-bottom: 1px solid rgba(128, 128, 128, .1);
}

.zac-apply-modal-head b {
    font-size: 15px;
}

.zac-apply-close {
    border: 0;
    background: transparent;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.zac-apply-form {
    padding: 12px 16px 16px;
}

.zac-apply-denied {
    padding: 32px 18px 36px;
    text-align: center;
}

.zac-apply-denied-icon {
    margin-bottom: 8px;
    font-size: 32px;
}

.zac-apply-denied b {
    font-size: 15px;
}

.zac-apply-denied p {
    margin: 7px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.55;
}

body.zac-apply-lock {
    overflow: hidden;
}

@media (max-width: 640px) {
    .zac-apply-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .zac-apply-modal {
        max-width: none;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
    }

    .zac-apply-entry-main em {
        white-space: normal;
    }
}

/* ===== 1.0.4 弹窗修复与排版 ===== */
.zac-apply-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10060 !important;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.zac-apply-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 760px);
    overflow: hidden;
    border-radius: 14px;
    background: var(--main-bg-color, #fff);
}

.zac-apply-modal > form,
.zac-apply-modal > .zac-apply-denied {
    overflow-y: auto;
    min-height: 0;
}

.zac-apply-form > .but {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 3px;
    border: 0;
    border-radius: 8px;
}

.zac-modal {
    z-index: 10070;
}

.zac-modal-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 14px;
}

.zac-modal-body {
    overflow-y: auto;
    min-height: 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.zac-modal-actions {
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: var(--main-bg-color, #fff);
}

@media (max-width: 640px) {
    .zac-apply-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .zac-apply-modal {
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
    }

    .zac-modal {
        align-items: flex-end;
        padding: 0;
    }

    .zac-modal-card {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
    }

    .zac-modal-cover {
        height: 150px;
        flex: 0 0 auto;
    }
}

/* ===== 1.0.5 弹窗尺寸、滚动与底部 Tab 避让 ===== */
.zac-apply-overlay,
.zac-modal {
    z-index: 2147483000 !important;
}

.zac-apply-overlay {
    height: 100vh;
    height: 100dvh;
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom)) !important;
}

.zac-apply-modal {
    display: flex !important;
    flex-direction: column !important;
    width: min(520px, 100%);
    height: min(78vh, 720px);
    height: min(78dvh, 720px);
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow: hidden !important;
}

.zac-apply-modal-head {
    flex: 0 0 auto;
    position: relative;
    top: auto;
}

.zac-apply-modal > form,
.zac-apply-modal > .zac-apply-denied {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 150px !important;
}

.zac-apply-modal .zac-apply-form > .but {
    margin-bottom: 10px;
}

.zac-modal {
    height: 100vh;
    height: 100dvh;
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom)) !important;
}

.zac-modal-card {
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow: hidden !important;
}

.zac-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 150px !important;
}

.zac-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 10px 0 14px;
    background: var(--main-bg-color, #fff);
}

@media (max-width: 640px) {
    .zac-apply-overlay,
    .zac-modal {
        align-items: flex-end;
        padding: 0 0 calc(92px + env(safe-area-inset-bottom)) !important;
    }

    .zac-apply-modal {
        width: 100%;
        height: min(82vh, 760px);
        height: min(82dvh, 760px);
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        border-radius: 16px 16px 0 0;
    }

    .zac-modal-card {
        width: 100%;
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        border-radius: 16px 16px 0 0;
    }

    .zac-apply-modal > form,
    .zac-apply-modal > .zac-apply-denied,
    .zac-modal-body {
        padding-bottom: 170px !important;
    }
}

/* ===== 1.0.7 申请弹窗居中 ===== */
.zac-apply-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 14px calc(92px + env(safe-area-inset-bottom)) !important;
}

.zac-apply-modal {
    width: min(520px, 100%) !important;
    height: min(78vh, 680px) !important;
    height: min(78dvh, 680px) !important;
    max-height: calc(100vh - 120px) !important;
    max-height: calc(100dvh - 120px) !important;
    border-radius: 14px !important;
}

@media (max-width: 640px) {
    .zac-apply-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 14px calc(92px + env(safe-area-inset-bottom)) !important;
    }

    .zac-apply-modal {
        width: min(520px, 100%) !important;
        height: min(78vh, 680px) !important;
        height: min(78dvh, 680px) !important;
        max-height: calc(100vh - 120px) !important;
        max-height: calc(100dvh - 120px) !important;
        border-radius: 14px !important;
    }
}

/* ===== 1.0.8 删除弹窗底部多余空白 ===== */
.zac-apply-modal {
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    max-height: calc(100dvh - 120px) !important;
}

.zac-apply-modal > form,
.zac-apply-modal > .zac-apply-denied {
    padding-bottom: 18px !important;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
}

.zac-modal-body {
    padding-bottom: 22px !important;
}

@media (max-width: 640px) {
    .zac-apply-modal {
        height: auto !important;
        max-height: calc(100vh - 110px) !important;
        max-height: calc(100dvh - 110px) !important;
    }

    .zac-apply-modal > form,
    .zac-apply-modal > .zac-apply-denied {
        padding-bottom: 24px !important;
        max-height: calc(100vh - 180px);
        max-height: calc(100dvh - 180px);
    }

    .zac-modal-body {
        padding-bottom: 28px !important;
    }
}
