/* Heytrisha Smart Assistant — Competitor Analysis widget (product editor meta box) */

#heytrisha-smart-assistant-root {
    font-size: 13px;
    line-height: 1.5;
}

.heytrisha-sa-widget {
    color: #1d2327;
}

.heytrisha-sa-intro {
    margin: 0 0 10px;
    color: #50575e;
}

.heytrisha-sa-location-fields {
    margin-bottom: 12px;
    padding: 10px;
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.heytrisha-sa-field-label {
    display: block;
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 12px;
    color: #1d2327;
}

.heytrisha-sa-input {
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.heytrisha-sa-radius-row {
    margin-top: 4px;
}

.heytrisha-sa-radius-inputs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.heytrisha-sa-radius-num {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.heytrisha-sa-radius-unit {
    width: auto;
    flex: 0 0 72px;
    margin-bottom: 0;
}

.heytrisha-sa-currency-note {
    margin: 4px 0 0;
    font-size: 11px;
    color: #50575e;
}

.heytrisha-sa-store-summary {
    margin: 0 0 10px;
    padding: 8px 10px;
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    font-size: 12px;
    color: #50575e;
}

.heytrisha-sa-store-missing {
    margin: 0 0 10px;
    padding: 8px 10px;
    background: #fff8e5;
    border-left: 4px solid #dba617;
    border-radius: 2px;
    font-size: 12px;
    color: #50575e;
}

.heytrisha-sa-context {
    margin: 10px 0;
    padding: 8px 10px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 2px;
    font-size: 12px;
}

.heytrisha-sa-currency,
.heytrisha-sa-distance {
    font-size: 12px;
    white-space: nowrap;
}

.heytrisha-sa-chat-link {
    margin: 0 0 10px;
}

.heytrisha-sa-chat-anchor {
    text-decoration: none;
    font-weight: 600;
}

.heytrisha-sa-chat-anchor:hover,
.heytrisha-sa-chat-anchor:focus {
    text-decoration: underline;
}

.heytrisha-sa-analyze {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.heytrisha-sa-hint {
    margin: 4px 0 0;
    color: #757575;
    font-style: italic;
}

.heytrisha-sa-error {
    margin: 10px 0;
    padding: 8px 10px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #8a1f23;
    border-radius: 2px;
}

.heytrisha-sa-applied {
    margin: 6px 0 0;
    color: #007017;
    font-weight: 600;
}

/* Spinner */
.heytrisha-sa-spinner {
    margin: 16px auto;
    width: 26px;
    height: 26px;
    border: 3px solid #dcdcde;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: heytrisha-sa-spin 0.8s linear infinite;
}

@keyframes heytrisha-sa-spin {
    to { transform: rotate(360deg); }
}

/* Summary */
.heytrisha-sa-summary {
    margin: 10px 0;
    padding: 10px;
    background: #f6f7f7;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
}

/* Sections */
.heytrisha-sa-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e4e7;
}

.heytrisha-sa-section-title {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2271b1;
}

.heytrisha-sa-empty {
    color: #757575;
    font-style: italic;
    margin: 0;
}

/* Competitor table */
.heytrisha-sa-table {
    width: 100%;
    border-collapse: collapse;
}

.heytrisha-sa-table th,
.heytrisha-sa-table td {
    text-align: left;
    padding: 6px 4px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: top;
}

.heytrisha-sa-table th {
    font-size: 11px;
    text-transform: uppercase;
    color: #757575;
}

.heytrisha-sa-comp-name {
    font-weight: 600;
}

.heytrisha-sa-comp-notes {
    color: #757575;
    font-size: 11px;
    margin-top: 2px;
}

.heytrisha-sa-price {
    font-weight: 600;
    white-space: nowrap;
}

/* Trends */
.heytrisha-sa-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.heytrisha-sa-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: #f0f0f1;
    color: #1d2327;
}

.heytrisha-sa-badge.demand-high,
.heytrisha-sa-badge.demand-very_high,
.heytrisha-sa-badge.trend-rising {
    background: #edfaef;
    color: #007017;
}

.heytrisha-sa-badge.demand-low,
.heytrisha-sa-badge.trend-declining {
    background: #fcf0f1;
    color: #8a1f23;
}

.heytrisha-sa-meta {
    margin: 2px 0;
    color: #50575e;
    font-size: 12px;
}

/* Keywords */
.heytrisha-sa-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.heytrisha-sa-chip {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    color: #0a4b78;
}

.heytrisha-sa-chip.priority-high {
    background: #e6f4ea;
    border-color: #a6d8b5;
    color: #007017;
    font-weight: 600;
}

.heytrisha-sa-chip.priority-low {
    opacity: 0.8;
}

.heytrisha-sa-geo-intro {
    margin: 0 0 8px;
    color: #50575e;
    font-size: 12px;
}

.heytrisha-sa-geo-chip {
    background: #fef8ee;
    border-color: #e6c887;
    color: #6b4f1d;
}

.heytrisha-sa-geo-chip.priority-high {
    background: #fff4e5;
    border-color: #dba617;
    color: #6b4f1d;
    font-weight: 600;
}

.heytrisha-sa-geo-pin {
    margin-right: 3px;
    font-size: 11px;
}

/* Effective price */
.heytrisha-sa-effective {
    text-align: center;
}

.heytrisha-sa-effective-amount {
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
}

.heytrisha-sa-effective-range {
    color: #50575e;
    font-size: 12px;
    margin: 4px 0 8px;
}

.heytrisha-sa-rationale {
    text-align: left;
    color: #50575e;
    background: #f6f7f7;
    padding: 8px;
    border-radius: 4px;
    margin: 0 0 8px;
}

.heytrisha-sa-apply {
    width: 100%;
}

/* Sources + disclaimer */
.heytrisha-sa-sources {
    margin: 0;
    padding-left: 18px;
}

.heytrisha-sa-sources li {
    margin-bottom: 4px;
    word-break: break-word;
}

.heytrisha-sa-disclaimer {
    margin-top: 14px;
    font-size: 11px;
    color: #8c8f94;
    font-style: italic;
}
