/* linkpay-preview.css */
.linkpay-demo-window {
    height: var(--linkpay-demo-height,342px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior: contain;
    background: #fff;
    color: var(--color-text-primary);
    font-family: var(--font-family);
}

.linkpay-demo-window::-webkit-scrollbar {
    display: none;
}

.linkpay-demo-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-bottom: 1px solid #eef0f4;
    background: #fff;
}

.linkpay-demo-header>svg {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--color-gray-50);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.linkpay-demo-header>strong {
    font-size: 15px;
    font-weight: 600;
}

.linkpay-demo-content {
    padding: 20px 12px 16px;
}

.linkpay-demo-content>h3 {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    letter-spacing: -.35px;
}

.linkpay-demo-intro {
    margin: 4px 0 15px;
    color: #8795ab;
    font-size: 10px;
    line-height: 16px;
    white-space: nowrap;
}

.linkpay-demo-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--color-gray-30);
    border-radius: 13px;
    box-shadow: 0 4px 10px rgb(30 41 59 / 3%);
    font-size: 13px;
    font-weight: 600;
}

.linkpay-demo-category>svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #a5b2c5;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.linkpay-demo-search {
    display: grid;
    grid-template-columns: minmax(0,1.8fr) minmax(0,1fr);
    gap: 7px;
    margin: 7px 0 13px;
    font-size: 12px;
}

.linkpay-demo-search>span {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--color-gray-30);
    border-radius: 13px;
    color: #a5b2c5;
    white-space: nowrap;
}

.linkpay-demo-search>b {
    display: grid;
    place-items: center;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 5px rgb(6 74 203 / 12%);
}

.linkpay-demo-product {
    padding: 14px;
    border: 1px solid #dce2eb;
    border-radius: 17px;
    box-shadow: 0 3px 10px rgb(30 41 59 / 3%);
    background: #fff;
}

.linkpay-demo-product-top {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.linkpay-demo-photo {
    flex-shrink: 0;
    display: block;
    width: 68px;
    height: 68px;
    object-fit: cover;
    object-position: 50% 45%;
    border-radius: 12px;
}

.linkpay-demo-product-info {
    flex: 1;
    min-width: 0;
}

.linkpay-demo-product-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    white-space: nowrap;
}

.linkpay-demo-product-title>strong {
    font-size: 13px;
    line-height: 19px;
    font-weight: 700;
}

.linkpay-demo-product-title>b {
    font-size: 16px;
    line-height: 20px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -.45px;
}

.linkpay-demo-product-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: #8795ab;
    font-size: 11px;
    line-height: 18px;
}

.linkpay-demo-product-meta>em {
    padding: 1px 8px;
    border-radius: 12px;
    background: var(--color-primary-5);
    color: var(--color-primary);
    font-size: 10px;
    line-height: 18px;
    font-weight: 600;
    font-style: normal;
}

.linkpay-demo-description {
    margin: 6px 0 0;
    color: #8795ab;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
}

.linkpay-demo-link-fields {
    border-top: 1px solid #e0e5ed;
    margin-top: 12px;
    padding-top: var(--linkpay-message-space,27px);
}

.linkpay-demo-link-fields>p {
    margin: 0 0 6px;
    color: #8795ab;
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
}

.linkpay-demo-field-row {
    display: grid;
    grid-template-columns: minmax(0,2.2fr) minmax(0,1fr);
    gap: 7px;
    margin-bottom: 9px;
}

.linkpay-demo-field-row:last-child {
    margin-bottom: 0;
}

.linkpay-demo-field-row>span {
    display: flex;
    align-items: center;
    height: 43px;
    border-radius: 13px;
    font-size: 11px;
    line-height: 16px;
}

.linkpay-demo-field {
    overflow: hidden;
    padding: 0 10px;
    border: 1px solid var(--color-gray-30);
    color: #8795ab;
    white-space: nowrap;
}

.linkpay-demo-field-row>.linkpay-demo-copy,.linkpay-demo-field-row>.linkpay-demo-send {
    justify-content: center;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.linkpay-demo-copy {
    border: 1px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
}

.linkpay-demo-phone-number {
    color: var(--color-gray-80);
}

.linkpay-demo-send {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 3px 5px rgb(6 74 203 / 12%);
}

.linkpay-demo-message {
    position: absolute;
    z-index: 3;
    top: var(--linkpay-message-top,0px);
    right: 8px;
}

.linkpay-demo-stage {
    position: relative;
    height: var(--linkpay-demo-height,342px);
    overflow: hidden;
    background: #fff;
}

.linkpay-demo-stage>.linkpay-demo-window,.linkpay-demo-sms {
    position: absolute;
    inset: 0;
    height: 100%;
    transition: transform 1s cubic-bezier(.4,0,.2,1);
}

.linkpay-demo-stage>.linkpay-demo-window {
    transform: translateX(0);
}

.linkpay-demo-sms {
    transform: translateX(100%);
    background: #fff;
    color: var(--color-text-primary);
}

[data-linkpay-preview].is-sms .linkpay-demo-window {
    transform: translateX(-100%);
}

[data-linkpay-preview].is-sms .linkpay-demo-sms {
    transform: translateX(0);
}

.linkpay-demo-copy {
    transition: transform .15s ease,background-color .15s ease,box-shadow .15s ease,color .15s ease,border-color .15s ease;
}

.linkpay-demo-copy.is-pressed {
    transform: none;
    background: var(--color-primary-5);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.linkpay-sms-header {
    position: relative;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #edf0f5;
    background: #fff;
}

.linkpay-sms-header>svg {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--color-gray-50);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.linkpay-sms-header>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.linkpay-sms-header strong {
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.linkpay-sms-header span {
    font-size: 10px;
    line-height: 14px;
    color: var(--color-gray-50);
}

.linkpay-sms-scroll {
    position: absolute;
    inset: 58px 0 0;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
    padding: 14px 12px 18px;
}

.linkpay-sms-scroll::-webkit-scrollbar {
    display: none;
}

.linkpay-sms-caption {
    margin: 0 0 12px;
    text-align: center;
    font-size: 10px;
    line-height: 14px;
    color: var(--color-gray-50);
}

.linkpay-sms-bubble {
    padding: 14px 13px 16px;
    margin-right: 10px;
    border: 1px solid #e6eaf0;
    border-radius: 17px 17px 17px 4px;
    background: var(--color-gray-10);
    font-size: 13px;
    line-height: 21px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.linkpay-sms-bubble>p {
    margin: 0 0 3px;
}

.linkpay-sms-bubble>.linkpay-sms-section {
    margin: 5px 0 8px;
}

.linkpay-sms-bubble>.linkpay-sms-memo {
    margin: 14px 0 0;
}

.linkpay-sms-url {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media(prefers-reduced-motion:reduce) {
    .linkpay-demo-stage>.linkpay-demo-window,.linkpay-demo-sms,.linkpay-demo-copy {
        transition: none;
    }
}

.linkpay-sms-header {
    justify-content: flex-start;
    padding: 0 40px 0 42px;
    gap: 9px;
}

.linkpay-sms-header>.linkpay-sms-back {
    left: 10px;
}

.linkpay-sms-header>.linkpay-sms-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--color-gray-10);
    color: var(--color-gray-50);
}

.linkpay-sms-avatar>img {
    display: block;
    width: 24px;
    height: 27px;
    object-fit: contain;
}

.linkpay-sms-header>div {
    align-items: flex-start;
}

.linkpay-sms-header>.linkpay-sms-call {
    left: auto;
    right: 31px;
    width: 22px;
    height: 22px;
    stroke: var(--color-gray-70);
}

.linkpay-sms-header>.linkpay-sms-more {
    position: absolute;
    right: 12px;
    color: var(--color-gray-70);
    font-size: 23px;
    line-height: 24px;
}

.linkpay-sms-scroll {
    bottom: 50px;
    padding-bottom: var(--linkpay-sms-message-space,76px);
}

.linkpay-sms-bubble {
    border: 0;
    background: #f1f3f5;
    color: #202124;
    font-size: 14px;
    line-height: 22px;
    border-radius: 18px 18px 18px 4px;
}

.linkpay-sms-url {
    display: inline-block;
    border-radius: 4px;
    transition: background-color .2s ease,box-shadow .2s ease;
}

.linkpay-sms-url.is-pressed {
    background: var(--color-primary-10);
    box-shadow: 0 0 0 3px var(--color-primary-10);
}

.linkpay-sms-compose {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    padding: 7px 12px;
    background: #fff;
    border-top: 1px solid #f3f5f9;
}

.linkpay-sms-plus {
    font-size: 25px;
    line-height: 30px;
    font-weight: 300;
    color: var(--color-gray-50);
}

.linkpay-sms-compose>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    height: 35px;
    padding: 0 10px 0 13px;
    border: 1px solid #e4e8ee;
    border-radius: 20px;
    background: #f5f7f9;
    color: #8b95a3;
    font-size: 12px;
}

.linkpay-sms-compose svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #a7b1bf;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media(prefers-reduced-motion:reduce) {
    .linkpay-sms-url {
        transition: none;
    }
}

[data-qrpay-preview] .linkpay-sms-bubble {
    width: 84%;
    margin-right: 0;
}
