/**
 * WooCommerce HPOS Orders Tracking - Frontend Modern Styles
 */

.wot-hpos-tracking-container {
    max-width: 680px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wot-hpos-tracking-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.wot-hpos-search-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    padding: 20px;
}

.wot-hpos-tab-header {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 18px;
    padding-bottom: 8px;
}

.wot-hpos-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wot-hpos-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.wot-hpos-tab-btn.active {
    color: #2563eb;
    background: #eff6ff;
}

.wot-hpos-tab-pane {
    display: none;
}

.wot-hpos-tab-pane.active {
    display: block;
}

.wot-hpos-input-group {
    display: flex;
    gap: 10px;
}

.wot-hpos-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wot-hpos-input {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wot-hpos-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wot-hpos-submit-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.wot-hpos-submit-btn:hover {
    background: #1d4ed8;
}

.wot-hpos-btn-block {
    width: 100%;
}

/* 查询结果卡片 */
.wot-hpos-result-container {
    margin-top: 24px;
}

.wot-hpos-results-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wot-hpos-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.wot-hpos-card-header {
    background: #f8fafc;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wot-hpos-badge-carrier {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}

.wot-hpos-badge-status {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.wot-hpos-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wot-hpos-num-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.wot-hpos-num {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 16px;
    color: #0f172a;
}

.wot-hpos-btn-copy-sm {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #475569;
}

.wot-hpos-btn-copy-sm:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wot-hpos-btn-external {
    display: inline-block;
    padding: 10px 18px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s;
}

.wot-hpos-btn-external:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.wot-hpos-card-footer {
    padding: 8px 18px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #94a3b8;
}

.wot-hpos-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
}

.wot-hpos-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.wot-hpos-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
