.icepro-handoff-page {
    min-height: 72vh;
    padding-top: 50px;
    padding-bottom: 70px;
}

.icepro-handoff-shell {
    width: min(100%, 620px);
    margin: 0 auto;
}

html.icepro-handoff-document {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
    overscroll-behavior: none;
}

body.icepro-handoff-standalone {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    overscroll-behavior: none;
    background:
        radial-gradient(circle at 15% 10%, rgba(41, 151, 255, .1), transparent 32%),
        var(--body-bg-color, #f5f6f8);
}

@supports (height: 100dvh) {
    body.icepro-handoff-standalone {
        height: 100dvh;
    }
}

.icepro-handoff-standalone__main {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.icepro-handoff-standalone__shell {
    flex: 0 0 auto;
    width: min(100%, 480px);
    margin-top: auto;
    margin-bottom: auto;
}

.icepro-handoff-standalone--wide .icepro-handoff-standalone__shell {
    width: min(100%, 760px);
}

.icepro-handoff-standalone .icepro-handoff-card {
    background: var(--main-bg-color, #fff);
    border: 1px solid rgba(120, 130, 150, .12);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(32, 42, 64, .12);
}

.icepro-handoff-standalone,
.icepro-handoff-standalone button,
.icepro-handoff-standalone input {
    font-family: inherit;
}

.icepro-handoff-standalone .icepro-handoff-title,
.icepro-handoff-standalone .icepro-handoff-lead,
.icepro-handoff-standalone .icepro-handoff-tip {
    text-align: left;
}

.icepro-handoff-standalone .icepro-handoff-lead {
    text-align: center;
}

.icepro-handoff-standalone .icepro-handoff-actions .padding-lg {
    min-width: 170px;
}

.icepro-handoff-card {
    position: relative;
    padding: 28px;
    border-radius: var(--main-radius, 12px);
}

.icepro-handoff-page .icepro-handoff-card {
    background: var(--main-bg-color, #fff);
}

.icepro-resource-handoff-modal .modal-body {
    padding: 0;
}

.modal-dialog.icepro-resource-handoff-modal {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
}

.icepro-handoff-card--modal {
    padding: 26px 30px;
}

.icepro-handoff-layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
}

.icepro-handoff-visual {
    text-align: center;
}

.icepro-handoff-card--modal .icepro-handoff-provider {
    gap: 8px;
    margin-bottom: 14px;
}

.icepro-handoff-card--modal .icepro-handoff-provider__icon,
.icepro-handoff-card--modal .icepro-handoff-provider__icon svg,
.icepro-handoff-card--modal .icepro-handoff-provider__svg {
    width: 48px;
    height: 48px;
}

.icepro-handoff-card--modal .icepro-handoff-title {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icepro-handoff-card--modal .icepro-handoff-meta {
    margin-top: 14px;
}

.icepro-handoff-provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
    text-align: center;
}

.icepro-handoff-provider h1,
.icepro-handoff-error h1 {
    margin: 3px 0 0;
    font-size: 24px;
    line-height: 1.25;
}

.icepro-handoff-provider__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #2878ff;
}

.icepro-handoff-provider__icon svg,
.icepro-handoff-provider__svg {
    display: block;
    width: 58px;
    height: 58px;
}

.icepro-handoff-provider--alipan .icepro-handoff-provider__icon { color: #6c49ff; }
.icepro-handoff-provider--quark .icepro-handoff-provider__icon { color: #22252a; }
.icepro-handoff-provider--123pan .icepro-handoff-provider__icon { color: #17a9e8; }
.icepro-handoff-provider--uc .icepro-handoff-provider__icon,
.icepro-handoff-provider--ctfile .icepro-handoff-provider__icon { color: #ff8127; }
.icepro-handoff-provider--mobile .icepro-handoff-provider__icon { color: #20ad66; }

.icepro-handoff-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}

.icepro-handoff-lead {
    margin: 8px 0 22px;
    color: var(--muted-color, #777);
    line-height: 1.8;
}

.icepro-handoff-qr-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0 24px;
}

.icepro-handoff-card--modal .icepro-handoff-qr-wrap {
    padding: 0;
}

.icepro-handoff-card--modal .icepro-handoff-qr {
    width: 200px;
    min-height: 200px;
}

.icepro-handoff-scan-label {
    margin-top: 12px;
    font-size: 13px;
}

.icepro-handoff-qr {
    box-sizing: content-box;
    width: 220px;
    min-height: 220px;
    padding: 12px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(30, 40, 70, .12);
}

.icepro-handoff-qr canvas,
.icepro-handoff-qr img {
    display: block;
    max-width: 100%;
    margin: auto;
}

.icepro-handoff-meta {
    padding: 12px 16px;
}

.icepro-handoff-meta > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
}

.icepro-handoff-meta b {
    text-align: right;
}

.icepro-handoff-tip {
    margin: 16px 2px 0;
    line-height: 1.75;
}

.icepro-handoff-card--modal .icepro-handoff-tip {
    margin-top: 12px;
    text-align: center;
}

.icepro-handoff-card--modal .icepro-handoff-actions {
    margin-top: 16px;
}

.icepro-handoff-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.icepro-handoff-code {
    display: grid;
    grid-template-columns: minmax(64px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-top: 20px;
}

.icepro-handoff-codes {
    margin-top: 20px;
}

.icepro-handoff-codes .icepro-handoff-code {
    margin-top: 10px;
}

.icepro-handoff-codes .icepro-handoff-code:first-child {
    margin-top: 0;
}

.icepro-handoff-code__value {
    min-width: 0;
    overflow: hidden;
    color: var(--main-color, #2997ff);
    font-family: inherit !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icepro-handoff-note {
    padding: 14px 16px;
    margin-top: 12px;
}

.icepro-handoff-note p {
    margin: 6px 0 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.icepro-handoff-error {
    text-align: center;
}

.icepro-handoff-error__icon {
    margin-bottom: 12px;
    color: #ef5350;
    font-size: 42px;
}

.icepro-handoff-error .icepro-handoff-actions {
    justify-content: center;
}

@media (max-width: 640px) {
    .icepro-handoff-page {
        padding: 20px 12px 45px;
    }

    .icepro-handoff-card {
        padding: 20px;
    }

    .icepro-handoff-standalone .icepro-handoff-card {
        padding: 26px 22px;
    }

    .icepro-handoff-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .icepro-handoff-provider h1,
    .icepro-handoff-error h1 {
        font-size: 21px;
    }

    .icepro-handoff-standalone .icepro-handoff-code {
        padding: 12px;
    }
}
