/* Announcement dialog readability hotfix.
 * Presentation only: preserves announcement content and business behavior.
 */
.notice.van-dialog {
    width: calc(100% - 32px) !important;
    max-width: 430px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.notice .notice-header {
    box-sizing: border-box !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.notice .notice-content {
    box-sizing: border-box !important;
    height: 62vh !important;
    min-height: 340px !important;
    max-height: 480px !important;
    padding: 18px 20px 44px !important;
    color: #303846 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
}

.notice .van-swipe,
.notice .van-swipe__track,
.notice .notice-content-item {
    height: 100% !important;
}

.notice .notice-content-item {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
}

.notice .notice-title {
    flex: 0 0 auto;
    margin: 0 0 12px !important;
    color: #303846 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.notice .notice-content-scroll {
    flex: 1 1 auto;
    box-sizing: border-box;
    min-height: 0;
    padding: 0 2px 14px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    color: #303846 !important;
    white-space: pre-line !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left !important;
    -webkit-overflow-scrolling: touch;
}

.notice .van-swipe__indicators {
    bottom: 14px !important;
}

@media (max-width: 430px) {
    .notice.van-dialog {
        width: calc(100% - 24px) !important;
    }

    .notice .notice-content {
        padding: 16px 18px 42px !important;
        font-size: 15px !important;
    }

    .notice .notice-title {
        margin-bottom: 10px !important;
        font-size: 17px !important;
    }
}
