/* Ordering coverage from one of our analysts: the in-progress lines in a
   script's Coverage widget, and the order dialog (#coverage-order-modal).
   See includes/coverageorders.php for the markup and js/coverageorder.js. */


/* ---- coverage in progress, at the top of the Coverage widget ----------- */

.cv-orders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.cv-order {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 10px 14px;
    border: 1px solid var(--border-soft, #e6e6e6);
    border-left: 3px solid var(--brand, #d4a017);
    border-radius: 6px;
    background: rgba(212, 160, 23, .06);
    font-size: .92rem;
}

.cv-order-icon {
    color: var(--brand, #d4a017);
}

.cv-order-name {
    font-weight: 700;
    color: var(--text-main, #2f2f2f);
}

.cv-order-state {
    color: var(--text-main, #2f2f2f);
}

.cv-order-dates {
    margin-left: auto;
    font-size: .85rem;
    color: var(--text-muted, #8a8a8a);
}

/* The Zoom call: included, or Schedule a Zoom Call -- on an order line, and
   under the byline of a delivered report (.cv-pro-call). */
.cv-call-note {
    flex-basis: 100%;
    font-size: .85rem;
    color: #2d8cff;
}

.cv-call-note i,
.cv-call-btn i {
    margin-right: 4px;
}

.cv-order .cv-call-btn {
    flex-basis: auto;
}

.cv-pro-call {
    margin: 0 0 12px;
}


/* ---- the dialog --------------------------------------------------------- */

/* The Edit Script dialog's frame (.sm-dialog, .sm-steps, .sm-body,
   .sm-footer in css/dashboard.css), a little wider for three product cards
   side by side. */
.cvo-dialog {
    max-width: 780px;
}

#coverage-order-body {
    font-size: .93rem;
    line-height: 1.5;
    color: var(--text-soft, #6b6b6b);
}

.cvo-stop {
    margin: 6px 0;
    color: var(--text-main, #2f2f2f);
}

.cvo-stop i {
    margin-right: 6px;
    color: var(--brand, #d4a017);
}

/* A reply with no steps -- a refusal, or Publish -- hides the step bar and
   the Back/Total/Next footer (render() in js/coverageorder.js sets hidden),
   but .sm-footer and .sm-steps are display:flex, which beat the attribute. */
#coverage-order-steps[hidden],
#coverage-order-footer[hidden] {
    display: none;
}

/* Nothing published: the reason, then Publish {draft} Draft (2026-10-04). */
.cvo-publish p {
    margin: 0 0 14px;
}

.cvo-publish .btn i {
    color: inherit;
}

.cvo-step {
    margin: 18px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main, #2f2f2f);
}

.cvo-step:first-child {
    margin-top: 0;
}

.cvo-optional {
    font-weight: 400;
    color: var(--text-muted, #8a8a8a);
}

.cvo-note {
    margin: 0 0 10px;
    font-size: .88rem;
}

/* --short: the script is short for its format (2026-10-04). The same box. */
.cvo-note--busy,
.cvo-note--short {
    padding: 8px 12px;
    border-left: 3px solid var(--brand, #d4a017);
    background: rgba(212, 160, 23, .07);
    border-radius: 3px;
    color: var(--text-main, #2f2f2f);
}

.cvo-note--busy i,
.cvo-note--short i {
    margin-right: 6px;
    color: var(--brand, #d4a017);
}

/* Radio cards. The input is kept for the keyboard and for :checked, and is
   visually folded into the card, which carries the selected state. */
.cvo-card input,
.cvo-analyst input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cvo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.cvo-card,
.cvo-analyst {
    position: relative;
    display: block;
    cursor: pointer;
}

.cvo-card-body,
.cvo-analyst-body {
    display: flex;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid var(--border-soft, #e6e6e6);
    border-radius: 8px;
    background: var(--bg-card, #fff);
    transition: border-color .15s, box-shadow .15s;
}

.cvo-card-body {
    flex-direction: column;
    padding: 10px 12px;
}

.cvo-card:hover .cvo-card-body,
.cvo-analyst:hover .cvo-analyst-body {
    border-color: rgba(212, 160, 23, .5);
}

.cvo-card input:checked + .cvo-card-body,
.cvo-analyst input:checked + .cvo-analyst-body {
    border-color: var(--brand, #d4a017);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, .15);
}

.cvo-card input:focus-visible + .cvo-card-body,
.cvo-analyst input:focus-visible + .cvo-analyst-body {
    outline: 2px solid var(--brand, #d4a017);
    outline-offset: 2px;
}

.cvo-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.cvo-card-name {
    font-weight: 700;
    color: var(--text-main, #2f2f2f);
}

.cvo-card-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand, #d4a017);
    white-space: nowrap;
}

.cvo-card-extra {
    font-size: .8rem;
    color: var(--text-muted, #8a8a8a);
    text-align: right;
}

.cvo-card-scope {
    margin-top: 2px;
    font-size: .85rem;
    color: var(--text-muted, #8a8a8a);
}

.cvo-card-desc {
    margin-top: 6px;
    font-size: .85rem;
    line-height: 1.45;
}

.cvo-note--after {
    margin-top: 14px;
}

/* The Zoom call box, under the product cards. A real checkbox, shown -- not
   hidden like the cards' radios -- and switched off for a First Act Review. */
.cvo-call {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 10px 12px;
    border: 2px dashed var(--border-soft, #e6e6e6);
    border-radius: 8px;
    cursor: pointer;
}

.cvo-call:has(input:checked) {
    border-style: solid;
    border-color: var(--brand, #d4a017);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, .15);
}

.cvo-call input {
    margin-top: 4px;
    flex: none;
}

.cvo-call-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cvo-call .cvo-card-name i {
    color: #2d8cff;
    margin-right: 4px;
}

.cvo-call-off {
    display: none;
    margin-top: 4px;
    font-size: .82rem;
    font-style: italic;
    color: var(--text-muted, #8a8a8a);
}

.cvo-call.is-off {
    cursor: default;
    opacity: .6;
}

.cvo-call.is-off .cvo-call-off {
    display: block;
}

/* The analysts: a card each, avatar and About Me (Ben). No scroll of its own:
   the step body scrolls, and two scrollbars one inside the other is worse. */
.cvo-analysts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px;
}

.cvo-analyst-body {
    gap: 14px;
    padding: 12px 14px;
    align-items: flex-start;
}

.cvo-avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-soft, #e6e6e6);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-soft, #6b6b6b);
}

.cvo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cvo-avatar--any {
    background: rgba(212, 160, 23, .12);
    color: var(--brand, #d4a017);
    font-size: 1.4rem;
}

.cvo-analyst-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cvo-analyst-name {
    font-weight: 700;
    color: var(--text-main, #2f2f2f);
}

.cvo-analyst-title {
    font-size: .85rem;
    color: var(--brand, #d4a017);
    font-weight: 600;
}

.cvo-analyst-about {
    margin-top: 4px;
    font-size: .88rem;
    color: var(--text-soft, #6b6b6b);
}

/* A long About Me, folded to four lines until More is pressed. */
.cvo-analyst--long .cvo-analyst-about {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cvo-analyst--long.is-open .cvo-analyst-about {
    display: block;
    -webkit-line-clamp: unset;
}

.cvo-more {
    align-self: flex-start;
    margin-top: 2px;
    padding: 0;
    border: 0;
    background: none;
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand, #d4a017);
    cursor: pointer;
}

.cvo-more:hover {
    text-decoration: underline;
}

/* The running total, in the footer beside Next and Continue to checkout. */
.cvo-total {
    margin-right: 6px;
    font-size: 1rem;
    color: var(--text-main, #2f2f2f);
    white-space: nowrap;
}

.cvo-total b {
    font-size: 1.3rem;
    color: var(--brand, #d4a017);
    margin-left: 4px;
}
