.download-btn {
    display: none !important;
}

#xmfront-chat-app {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: #f4f5f7;
    color: #222;
}

.xmfront-chat-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 54px;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid #eceef1;
    background: #fff;
    text-align: center;
}

.xmfront-chat-header > div {
    grid-column: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.xmfront-chat-back {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 36px;
    line-height: 40px;
}

.xmfront-chat-title { font-size: 16px; }
.xmfront-chat-state { margin-top: 2px; color: #8b9098; font-size: 11px; }

.xmfront-chat-messages {
    min-height: 0;
    padding: 18px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.xmfront-chat-row { display: flex; margin-bottom: 14px; }
.xmfront-chat-row.is-user { justify-content: flex-end; }
.xmfront-chat-row.is-service { justify-content: flex-start; }

.xmfront-chat-bubble {
    max-width: min(76%, 560px);
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.is-user .xmfront-chat-bubble { background: #ff4b64; color: #fff; }
.xmfront-chat-bubble img { display: block; max-width: 220px; max-height: 280px; border-radius: 4px; object-fit: contain; }

.xmfront-chat-composer {
    display: grid;
    grid-template-columns: 40px 1fr 58px;
    gap: 8px;
    align-items: end;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid #e7e9ed;
    background: #fff;
}

.xmfront-chat-image {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dce2;
    border-radius: 50%;
    color: #555;
    font-size: 25px;
    cursor: pointer;
}

.xmfront-chat-composer textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    max-height: 100px;
    padding: 9px 10px;
    resize: none;
    border: 1px solid #dfe2e7;
    border-radius: 5px;
    outline: none;
    font: inherit;
    line-height: 20px;
}

.xmfront-chat-send {
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #ff4b64;
    color: #fff;
    font-size: 14px;
}

.xmfront-chat-send:disabled { opacity: 0.55; }

.xmfront-floating-actions {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 890;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transform: translateY(-50%);
}

.xmfront-floating-action {
    box-sizing: border-box;
    display: flex;
    width: 68px;
    min-width: 68px;
    height: auto;
    padding: 15px 0;
    border: 1px solid hsl(340 20% 88%);
    border-radius: 0;
    background: hsl(340 30% 99%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: hsl(340 20% 20%);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 150ms, border-color 150ms;
}

.xmfront-floating-action:first-child {
    border-top-left-radius: 12px;
}

.xmfront-floating-action:last-child {
    border-bottom-left-radius: 12px;
}

.xmfront-floating-action:hover,
.xmfront-floating-action:focus-visible {
    border-color: hsl(344 72% 61% / 0.4);
    background: hsl(344 72% 61% / 0.05);
    outline: none;
}

.xmfront-floating-action:active {
    background: hsl(344 72% 61% / 0.1);
}

.xmfront-floating-action__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    color: hsl(344 72% 61%);
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    transition: transform 150ms;
}

.xmfront-floating-action:hover .xmfront-floating-action__icon {
    transform: scale(1.1);
}

.xmfront-register-page .form-box .u-form-item:nth-child(2) {
    display: none !important;
}

.xmfront-reset-page .form-box .u-form-item:nth-child(2) {
    display: none !important;
}

.login-container .other-login-btn .phone-icon {
    display: none !important;
}

.goods-item2 .goods-header .goods-header-shop-box {
    justify-content: flex-start !important;
    overflow: hidden;
}

.goods-item2 .goods-header .goods-header-shop-box .goods-header-shop-title {
    box-sizing: border-box;
    height: 2.7em !important;
    min-height: 2.7em;
    max-height: 2.7em;
    line-height: 1.35 !important;
    word-break: break-all;
    flex: 0 0 2.7em;
}

.goods-item2 .goods-header .goods-header-shop-des .goods-content-tag {
    box-sizing: border-box;
    display: flex !important;
    line-height: 1 !important;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.goods-item2 .goods-footer .rent-btn {
    background: linear-gradient(135deg, #ff5985, #ff3d44) !important;
    border-color: #e5e7eb !important;
    color: #fff !important;
}

.xmfront-payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
}

.xmfront-payment-dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.xmfront-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #222;
    font-size: 18px;
}

.xmfront-payment-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 28px;
    line-height: 30px;
}

.xmfront-payment-field {
    display: block;
    margin-bottom: 16px;
    color: #555;
    font-size: 14px;
}

.xmfront-payment-field > span:first-child {
    display: block;
    margin-bottom: 8px;
}

.xmfront-payment-field input[type='tel'] {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    font-size: 15px;
}

.xmfront-payment-field input[type='tel']:focus {
    border-color: #f04462;
}

.xmfront-payment-upload {
    display: flex !important;
    height: 44px;
    margin: 0 !important;
    border: 1px dashed #f04462;
    border-radius: 6px;
    background: #fff7f9;
    color: #d63f6a;
    align-items: center;
    justify-content: center;
}

.xmfront-payment-preview {
    display: none;
    width: 128px;
    height: 128px;
    margin: 12px auto 0;
    border: 1px solid #eee;
    border-radius: 6px;
    object-fit: contain;
}

.xmfront-payment-preview.is-visible {
    display: block;
}

.xmfront-payment-error {
    min-height: 20px;
    color: #dc2626;
    font-size: 13px;
}

.xmfront-payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.xmfront-payment-buttons button {
    height: 42px;
    border-radius: 6px;
    font-size: 15px;
}

.xmfront-payment-cancel {
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
}

.xmfront-payment-submit {
    border: 1px solid #f04462;
    background: #f04462;
    color: #fff;
}

.xmfront-payment-submit:disabled {
    opacity: 0.65;
}

.xmfront-rent-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    padding: 20px;
    background: rgba(0, 0, 0, 0.48);
    align-items: center;
    justify-content: center;
}

.xmfront-rent-dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.xmfront-rent-title {
    padding: 20px 20px 8px;
    color: #222;
    font-size: 18px;
    font-weight: 600;
}

.xmfront-rent-content {
    padding: 12px 20px 24px;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.xmfront-rent-confirm {
    width: 100%;
    height: 48px;
    border: 0;
    border-top: 1px solid #eee;
    background: #fff;
    color: #f04462;
    font-size: 16px;
    font-weight: 600;
}

.xmfront-rent-confirm:active {
    background: #fff7f9;
}

.settlement-card {
    display: none !important;
}

.mian .notice-bar {
    display: none !important;
}
