/* AddiPress Listings — Price Intelligence. */

/* Deal badge on the listing (near price) */
.apl-deal {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 800; line-height: 1;
    padding: 5px 11px; border-radius: 999px; margin: 4px 0;
}
.apl-deal__dot { width: 8px; height: 8px; border-radius: 50%; }
.apl-deal em { font-style: normal; font-weight: 600; opacity: .85; }
.apl-deal--great { background: #dcfce7; color: #15803d; }
.apl-deal--great .apl-deal__dot { background: #16a34a; }
.apl-deal--fair { background: #e0e7ff; color: #4338ca; }
.apl-deal--fair .apl-deal__dot { background: #4f46e5; }
.apl-deal--high { background: #fef3c7; color: #b45309; }
.apl-deal--high .apl-deal__dot { background: #d97706; }

/* Suggest-price control on the submit form */
.apl-price-bar { margin-top: 4px; }
.apl-price-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; cursor: pointer;
    font-size: 12px; font-weight: 700; line-height: 1; color: #fff; border: 0;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    box-shadow: 0 2px 8px rgba(14, 165, 233, .25);
    vertical-align: middle; margin-left: 8px;
}
.apl-price-btn:hover { transform: translateY(-1px); }
.apl-price-btn:disabled { opacity: .7; cursor: progress; }

.apl-price-hint { margin-top: 8px; font-size: 13px; display: grid; gap: 3px; }
.apl-price-hint.is-loading { color: var(--apl-muted, #64748b); }
.apl-price-hint.is-warn { color: #b45309; }
.apl-price-hint.is-ok { color: var(--apl-ink-2, #334155); background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 10px; padding: 10px 12px; }
.apl-price-hint__range strong { color: #0369a1; }
.apl-price-hint__mid { font-size: 12.5px; }
.apl-price-hint__based { font-size: 11.5px; color: var(--apl-muted, #64748b); }
.apl-price-apply { background: none; border: 0; color: var(--apl-primary, #4f46e5); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
