/* css/share-swap.css — 闪兑页下方双向兑换（单面板 + 联动下拉） */

.share-swap {
    --ss-primary: #52a55e;
    --ss-grad-start: #dcf2db;
    --ss-grad-end: #59b165;
    --ss-text-title: #333;
    --ss-text-main: #2c2c2c;
    --ss-text-sub: #7a7a7a;
    --ss-text-light: #999;
    --ss-bg: #fdfdf9;
    --ss-card: #fff;
    --ss-icon: #f4f5f0;
    --ss-border: #f0f0f0;
    --ss-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    --ss-btn-shadow: 0 6px 16px rgba(89, 177, 101, 0.2);

    margin: 16px 0 8px;
    padding: 14px 12px 16px;
    border-radius: 14px;
    background: var(--ss-bg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.share-swap-panel {
    max-width: 100%;
}

.share-swap-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
    gap: 10px;
}

.share-swap-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ss-text-title);
    letter-spacing: 0.2px;
}

.share-swap-avail {
    font-size: 13px;
    font-weight: 600;
    color: var(--ss-primary);
    white-space: nowrap;
}

.share-swap-section-title {
    font-size: 13px;
    color: var(--ss-text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.share-swap-icon-prefix {
    width: 14px;
    height: 14px;
    fill: var(--ss-primary);
}

.share-swap-input-card {
    background: var(--ss-card);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    box-shadow: var(--ss-shadow);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.share-swap-select-card {
    position: relative;
    cursor: pointer;
}

.share-swap-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ss-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--ss-text-sub);
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.02);
    font-weight: 700;
}

.share-swap-select {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--ss-text-main);
    font-weight: 600;
    min-width: 0;
    width: 100%;
    padding-right: 18px;
    cursor: pointer;
}

.share-swap-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ss-text-light);
    font-size: 12px;
    pointer-events: none;
    line-height: 1;
}

.share-swap-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    color: var(--ss-text-main);
    background: transparent;
    min-width: 0;
    font-weight: 600;
}

.share-swap-btn-all {
    border: none;
    background: var(--ss-icon);
    color: var(--ss-text-sub);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.share-swap-btn-all:active {
    background: #e8e8e8;
}

.share-swap-hint {
    font-size: 11px;
    color: var(--ss-text-light);
    margin: -2px 0 4px 4px;
}

.share-swap-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px 0 12px;
}

.share-swap-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--ss-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.share-swap-arrow:active {
    background: rgba(82, 165, 94, 0.08);
}

.share-swap-arrow svg {
    width: 16px;
    height: 16px;
    fill: var(--ss-primary);
}

.share-swap-summary {
    background: var(--ss-card);
    border-radius: 16px;
    padding: 14px 14px;
    display: flex;
    justify-content: space-between;
    box-shadow: var(--ss-shadow);
    margin-top: 6px;
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.share-swap-summary-left,
.share-swap-summary-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.share-swap-summary-right {
    align-items: flex-end;
    text-align: right;
}

.share-swap-vdiv {
    width: 1px;
    background: var(--ss-border);
    margin: 0 10px;
    flex-shrink: 0;
}

.share-swap-summary-label {
    font-size: 12px;
    color: var(--ss-text-sub);
    margin-bottom: 1px;
}

.share-swap-summary-value {
    font-size: 13px;
    color: var(--ss-text-main);
    font-weight: 500;
    line-height: 1.35;
    word-break: break-all;
}

.share-swap-summary-currency {
    font-size: 13px;
    color: var(--ss-text-main);
    font-weight: 500;
    margin: 1px 0;
}

.share-swap-summary-time {
    font-size: 10px;
    color: var(--ss-text-light);
}

.share-swap-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--ss-primary);
    letter-spacing: -0.5px;
    margin: 2px 0 2px;
    line-height: 1.2;
}

.share-swap-submit {
    margin-top: 16px;
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: none;
    background: linear-gradient(90deg, var(--ss-grad-start), var(--ss-grad-end));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--ss-btn-shadow);
}

.share-swap-submit:active {
    opacity: 0.85;
}

.share-swap-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.share-swap-closed {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #fff3e0;
    color: #e65100;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}
