.jra-merchant h1 { margin-bottom: 16px; }

/* Merchant Feed tab icon in WooCommerce Product Data */
#woocommerce-product-data ul.product_data_tabs li.jra_merchant_feed_tab a::before {
    content: '\f303';
    font-family: dashicons;
}

/* Cards */
.jra-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    padding: 20px 24px;
    margin-bottom: 20px;
    max-width: 900px;
}
.jra-card h2 { margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 10px; }

/* Two-column layout */
.jra-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
}
.jra-two-col .jra-card { max-width: none; }

/* Badges */
.jra-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.jra-badge--green  { background: #d1e7dd; color: #0a3622; }
.jra-badge--red    { background: #f8d7da; color: #58151c; }
.jra-badge--orange { background: #fff3cd; color: #664d03; }
.jra-badge--blue   { background: #cff4fc; color: #055160; }

/* Status table */
.jra-status-table { border-collapse: collapse; }
.jra-status-table th,
.jra-status-table td { padding: 6px 16px 6px 0; vertical-align: middle; }
.jra-status-table th { font-weight: 600; width: 160px; }

/* Sync actions */
.jra-sync-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.jra-sync-block {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 16px;
}
.jra-sync-block h3 { margin-top: 0; }

/* Log toolbar */
.jra-log-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    max-width: 1200px;
}
.jra-log-toolbar .button { margin-right: 4px; }

/* Log table */
.jra-log-table td { vertical-align: top; padding: 6px 8px; }
.jra-log-row--error   td { background: #fdf2f2 !important; }
.jra-log-row--warning td { background: #fefce8 !important; }

/* Text helpers */
.jra-text-error { color: #d63638; }

@media (max-width: 900px) {
    .jra-two-col      { grid-template-columns: 1fr; }
    .jra-sync-actions { grid-template-columns: 1fr; }
}

/* Product panel — Google status */
.jra-google-status-group { margin-top: 0; }
.jra-offer-id  { margin: 0 0 8px; font-size: 12px; color: #555; }
.jra-mapped-note { color: #888; }
.jra-market-result { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; }
.jra-market-heading { margin: 0 0 4px; font-size: 13px; color: #333; }
.jra-google-id { margin: 0 0 8px; font-size: 11px; color: #888; }
.jra-destinations { margin-bottom: 8px; }
.jra-dest-name { font-size: 12px; font-weight: 600; color: #555; margin-right: 2px; }
.jra-status-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
}
.jra-offer-id-display { font-size: 12px; color: #555; }
#jra-market-select { font-size: 12px; }

/* Issues */
.jra-issues-list { margin-top: 10px; }
.jra-issues-heading { margin: 0 0 4px; font-size: 12px; }
.jra-issues-list ul { margin: 0; padding: 0; list-style: none; }
.jra-issue {
    padding: 5px 8px;
    margin-bottom: 4px;
    border-left: 3px solid #c3c4c7;
    background: #f9f9f9;
    font-size: 12px;
    line-height: 1.5;
}
.jra-issue--disapproved { border-left-color: #d63638; background: #fdf2f2; }
.jra-issue--demoted     { border-left-color: #dba617; background: #fef9ee; }
.jra-issue--unaffected  { border-left-color: #72aee6; background: #f0f6fc; }
.jra-issue-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-right: 4px;
    vertical-align: middle;
}
.jra-issue-badge--disapproved { background: #f8d7da; color: #58151c; }
.jra-issue-badge--demoted     { background: #fff3cd; color: #664d03; }
.jra-issue-badge--unaffected  { background: #cff4fc; color: #055160; }
.jra-issue-attr   { color: #999; font-size: 11px; }
.jra-issue-detail { color: #666; font-size: 11px; }
.jra-no-issues    { margin: 6px 0 0; font-size: 12px; color: #00a32a; }

/* Indexed data */
.jra-indexed-data    { margin-top: 10px; padding: 10px 12px; background: #f6f7f7; border: 1px solid #e6e7e8; border-radius: 2px; }
.jra-indexed-heading { margin: 0 0 4px; font-size: 12px; }
.jra-indexed-table   { border-collapse: collapse; font-size: 12px; width: 100%; }
.jra-indexed-table th {
    width: 90px;
    font-weight: 600;
    color: #555;
    padding: 2px 8px 2px 0;
    text-align: left;
    vertical-align: top;
}
.jra-indexed-table td { padding: 2px 0; color: #333; }
.jra-image-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.jra-indexed-image { max-width: 80px; max-height: 80px; border: 1px solid #ddd; border-radius: 2px; }

/* Per-variation section box */
.jra-var-section {
    margin: 10px 0 4px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    background: #fff;
}
.jra-var-section__head {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    border-radius: 3px 3px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
}
.jra-var-section__body {
    padding: 10px 12px;
}

/* Variable product variation panels */
.jra-variation-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.jra-variation-panel:first-child { margin-top: 6px; padding-top: 6px; border-top: none; }
.jra-variation-label { margin: 0 0 4px; font-size: 12px; color: #646970; }
.jra-variation-placeholder { padding: 6px 0; }

/* Reports */
.jra-report-table { width: 100%; border-collapse: collapse; }

/* Taxonomy autocomplete */
.jra-tax-results {
    display: none;
    position: absolute;
    z-index: 9999;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #8c8f94;
    border-top: none;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,.12);
}
.jra-tax-result {
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
}
.jra-tax-result:hover { background: #f0f6fc; }
