/**
 * 用户店铺管理页面 - 内联样式提取
 * 与 user/css/user-shops.css 共用基础样式（已通过另一个 link 引入）
 */

/* 店铺头部不依赖订单提醒页面的样式。 */
.header-right [data-nb-mount] { display: flex; align-items: center; }
@media (max-width: 700px) {
    .header:has([data-nb-mount]) { flex-wrap: wrap; gap: 12px; }
}

/* 平台选择模态框：底部提示 */
.shop-auth-tip {
    margin-top: 16px;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* 平台选择及 Qoo10 授权模态框：限制宽度并允许内容滚动 */
.shop-modal--platforms,
.shop-modal--qoo10 {
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.shop-modal--platforms .modal-body,
.shop-modal--qoo10 .modal-body {
    overflow-y: auto;
    flex: 1;
}

.auth-platform:disabled {
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* 表单字段下方说明文字 */
.shop-form-hint {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 表单提示框（API 凭证获取说明） */
.shop-form-tip-box {
    padding: 10px;
    margin: 10px 0;
}

.shop-form-tip-box p {
    margin-bottom: 6px;
}

.shop-form-tip-box ol {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
}

/* Authorization keeps the existing same-page redirect, with immediate feedback. */
.shop-auth-progress {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
    line-height: 1.6;
}
.shop-auth-progress[hidden] { display: none; }
.shop-auth-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: shop-auth-spin .8s linear infinite;
}
[data-auth-launch]:disabled, .auth-platform[aria-busy="true"] {
    cursor: wait;
    opacity: .7;
}
@keyframes shop-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .shop-auth-spinner { animation: none; }
}
