/**
 * Y-ID 第三方订单绑定表单。
 */

.yxs-bind-wrap {
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
}

/* 已认领：白底黑字黑边，不可点击 */
.yxs-claim-btn.is-sold {
    background: #fff;
    border: 1px solid #111;
    color: #111;
    cursor: default;
    pointer-events: none;
}

.yxs-bind-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    padding: 28px;
}

.yxs-bind-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
}

.yxs-bind-intro {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}

.yxs-bind-scope {
    margin: 0 0 20px;
    padding: 9px 12px;
    border-left: 3px solid #111;
    background: #f8f8f8;
    font-size: 12.5px;
    line-height: 1.6;
    color: #444;
}

.yxs-bind-notice {
    margin: 0 0 18px;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #f8f8f8;
    font-size: 13px;
    line-height: 1.6;
}

.yxs-bind-notice.error {
    border-color: #f0c9c4;
    background: #fdf3f1;
    color: #8f2f26;
}

.yxs-bind-login {
    padding: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #f8f8f8;
}

.yxs-bind-login p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #6b7280;
}

.yxs-bind-account {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #f8f8f8;
}

.yxs-bind-account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex: 0 0 auto;
}

.yxs-bind-account-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.yxs-bind-account-meta strong {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
}

.yxs-bind-account-meta small {
    font-size: 11.5px;
    color: #6b7280;
}

.yxs-bind-field {
    margin-bottom: 16px;
}

.yxs-bind-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
}

.yxs-bind-field label span {
    margin-left: 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 400;
}

.yxs-bind-field label .optional {
    color: #9a9a95;
}

.yxs-bind-input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    outline: none;
}

.yxs-bind-input:focus {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.yxs-bind-input::placeholder {
    color: #9a9a95;
}

.yxs-bind-input[readonly] {
    background: #f6f6f6;
    color: #555;
}

select.yxs-bind-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #111 50%), linear-gradient(135deg, #111 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

.yxs-bind-file {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #cfcfcf;
    border-radius: 6px;
    background: #f8f8f8;
    font-size: 13px;
    box-sizing: border-box;
}

.yxs-bind-file:focus {
    outline: none;
    border-color: #111;
}

.yxs-bind-file-name {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.yxs-bind-help {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #6b7280;
}

.yxs-bind-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 500;
}

.yxs-bind-submit[disabled] {
    opacity: .6;
    cursor: default;
}

.yxs-bind-note {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: #6b7280;
    text-align: center;
}

/* 我的绑定记录 */
.yxs-bind-history {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.yxs-bind-history-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.yxs-bind-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yxs-bind-history-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13px;
}

.yxs-bind-history-item:last-child {
    border-bottom: 0;
}

.yxs-bind-history-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.yxs-bind-history-main strong {
    font-size: 13.5px;
}

.yxs-bind-history-meta {
    font-size: 11.5px;
    color: #6b7280;
}

.yxs-bind-status {
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
    white-space: nowrap;
    background: #f2f2f2;
    color: #555;
}

.yxs-bind-status.is-approved {
    background: #111;
    color: #fff;
}

.yxs-bind-status.is-rejected {
    background: #fdf3f1;
    color: #8f2f26;
}

.yxs-bind-history-note {
    flex: 0 0 100%;
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #8f2f26;
}

@media (max-width: 640px) {
    .yxs-bind-wrap {
        margin: 1.25em 0;
    }

    .yxs-bind-card {
        padding: 22px 18px;
    }

    .yxs-bind-title {
        font-size: 21px;
    }
}
