/* 多货币价格配置（开发者中心 / 前台） */
.xyn-currency-prices {
    --xyn-cp-border: rgba(148, 163, 184, 0.28);
    --xyn-cp-head-bg: rgba(241, 245, 249, 0.92);
    --xyn-cp-row-hover: rgba(79, 140, 255, 0.05);
    --xyn-cp-ref-bg: rgba(100, 116, 139, 0.08);
    --xyn-cp-ref-color: #475569;
    --xyn-cp-code-bg: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(108, 92, 231, 0.12));
    --xyn-cp-code-color: #1d4ed8;
    border: 1px solid var(--xyn-cp-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.xyn-currency-prices__tip {
    margin: 0;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    background: var(--xyn-cp-head-bg);
    border-bottom: 1px solid var(--xyn-cp-border);
}

.xyn-currency-prices__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.xyn-currency-prices__table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.xyn-currency-prices__table--cols-4 col {
    width: 25%;
}

.xyn-currency-prices__table--cols-4 thead th,
.xyn-currency-prices__table--cols-4 tbody td {
    width: 25%;
}

.xyn-currency-prices__table--cols-4 thead th {
    white-space: normal;
    word-break: break-word;
}

.xyn-currency-prices__table--cols-4 tbody td {
    overflow: hidden;
}

.xyn-currency-prices__table--pricing {
    min-width: 920px;
}

.xyn-currency-prices__table thead th {
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-align: left;
    white-space: nowrap;
    background: var(--xyn-cp-head-bg);
    border-bottom: 1px solid var(--xyn-cp-border);
}

.xyn-currency-prices__table thead th small {
    font-weight: 500;
    color: #94a3b8;
}

.xyn-currency-prices__table tbody tr {
    transition: background-color 0.15s ease;
}

.xyn-currency-prices__table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.65);
}

.xyn-currency-prices__table tbody tr:hover {
    background: var(--xyn-cp-row-hover);
}

.xyn-currency-prices__table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    font-size: 13px;
}

.xyn-currency-prices__table tbody tr:last-child td {
    border-bottom: none;
}

.xyn-currency-prices__currency {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.xyn-currency-prices__code {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--xyn-cp-code-bg);
    color: var(--xyn-cp-code-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.xyn-currency-prices__name {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

.xyn-currency-prices__rate {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--xyn-cp-ref-bg);
    color: var(--xyn-cp-ref-color);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.xyn-currency-prices__ref {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--xyn-cp-ref-bg);
    color: var(--xyn-cp-ref-color);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.xyn-currency-prices__ref:empty,
.xyn-currency-prices__ref.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

.xyn-currency-prices__actions {
    margin: 0 0 10px;
}

.xyn-currency-prices__col-configured {
    width: auto;
    max-width: none;
}

.xyn-currency-prices__th-configured {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.xyn-currency-prices__th-label {
    white-space: normal;
}

.developer-form .xyn-currency-prices__col-configured .developer-currency-price-field {
    max-width: none;
    width: 100%;
}

.developer-form .xyn-currency-prices__col-configured .form-control {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
}

.developer-form .xyn-currency-prices__th-configured .btn-currency-ceil-all {
    padding: 3px 8px;
    font-size: 11px;
    line-height: 1.25;
    border-radius: 999px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.developer-form .xyn-currency-prices__th-configured .btn-currency-ceil-all .fa {
    font-size: 10px;
}

.developer-form .developer-currency-price-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.developer-form .developer-currency-price-field:focus-within {
    border-color: rgba(79, 140, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
}

.developer-form .developer-currency-price-field .currency-price-input--invalid,
.developer-form .developer-currency-price-field:has(.currency-price-input--invalid) {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

.developer-form .developer-currency-price-field .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.developer-form .developer-currency-price-actions {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.developer-form .developer-currency-price-actions .btn-currency-ceil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    width: 32px;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    background: var(--el-color-primary-light-9, #ecf5ff);
    color: var(--el-color-primary, #409eff);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.developer-form .developer-currency-price-actions .btn-currency-ceil:hover,
.developer-form .developer-currency-price-actions .btn-currency-ceil:focus {
    background: var(--el-color-primary-light-7, #d9ecff);
    color: var(--el-color-primary-dark-2, #337ecc);
    outline: none;
}

.developer-form .developer-currency-price-actions .btn-currency-ceil .fa {
    font-size: 12px;
}

.xyn-currency-prices__field.input-group {
    display: table;
    width: 100%;
}

.xyn-currency-prices__field.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.xyn-currency-prices__field .btn-currency-ceil {
    height: 34px;
    padding: 0 10px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.currency-price-input--invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

.currency-price-table .currency-price-input--invalid {
    border-color: #ef4444 !important;
}

.xyn-currency-prices__field .form-control {
    min-width: 0;
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    border-color: rgba(148, 163, 184, 0.45);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.xyn-currency-prices__field .form-control:focus {
    border-color: rgba(79, 140, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.12);
}

.xyn-currency-prices__field .form-control::placeholder {
    color: #94a3b8;
    font-size: 12px;
    text-align: left;
}

.xyn-currency-prices__field .form-control[readonly] {
    background: rgba(248, 250, 252, 0.95);
    color: #64748b;
    cursor: default;
}

/* 开发者中心 */
.developer-form .xyn-currency-prices-wrap {
    margin-bottom: 18px;
}

.developer-form .xyn-currency-prices-wrap > label {
    margin-bottom: 8px;
}

.developer-form .xyn-currency-prices {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(6px);
}

@media (max-width: 767px) {
    .xyn-currency-prices__table thead th,
    .xyn-currency-prices__table tbody td {
        padding: 9px 10px;
    }

    .xyn-currency-prices__field .form-control {
        min-width: 0;
    }
}

/* 禁用 number 输入框步进箭头与滚轮改值（样式层） */
.currency-price-input[type="number"],
.currency-price-table input[type="number"],
.developer-form input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.currency-price-input[type="number"]::-webkit-outer-spin-button,
.currency-price-input[type="number"]::-webkit-inner-spin-button,
.currency-price-table input[type="number"]::-webkit-outer-spin-button,
.currency-price-table input[type="number"]::-webkit-inner-spin-button,
.developer-form input[type="number"]::-webkit-outer-spin-button,
.developer-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
