/**
 * Chrome Extension Icons.
 */

.em-cx__top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6em;
    align-items: flex-start;
}

/* ── The two previews ──────────────────────────────────────────────────── */

/* Side by side on purpose: the whole point is that the store icon is not the
   same file as the toolbar one, and that is only obvious when both are
   visible at once. */
.em-cx__previews {
    display: flex;
    flex: 0 0 auto;
    gap: 1em;
}

.em-cx__shot { margin: 0; }

.em-post-content .em-cx .em-cx__shot canvas {
    display: block;
    width: 128px;
    height: 128px;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 12px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #d7d7d7 25%, transparent 25%, transparent 75%, #d7d7d7 75%),
        linear-gradient(45deg, #d7d7d7 25%, transparent 25%, transparent 75%, #d7d7d7 75%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px;
}

.em-cx__shot figcaption {
    margin-top: .5em;
    font-size: .85rem;
    text-align: center;
    color: var(--em-soft, #6b7280);
}

/* ── The choices ───────────────────────────────────────────────────────── */

.em-cx__options {
    flex: 1 1 16em;
    min-width: 0;
}

.em-cx__source {
    margin: 0 0 1em;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--em-soft, #6b7280);
    overflow-wrap: anywhere;
}

.em-cx__field {
    display: flex;
    align-items: center;
    gap: .7em;
    margin-bottom: .9em;
    color: var(--em-ink, inherit);
}

.em-cx__check {
    display: flex;
    align-items: center;
    gap: .45em;
    margin-bottom: .9em;
    color: var(--em-ink, inherit);
}

.em-cx__check input { accent-color: var(--em-brand, #2563eb); }

.em-cx__select {
    padding: .45em .65em;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 8px;
    background: var(--em-surface, #fff);
    color: var(--em-ink, inherit);
    font: inherit;
}

.em-cx__colour {
    width: 3.4em;
    padding: .2em;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 8px;
    background: var(--em-surface, #fff);
}

/* ── Doing it ──────────────────────────────────────────────────────────── */

.em-cx__go {
    display: flex;
    flex-wrap: wrap;
    gap: .8em;
    margin-top: 1.4em;
}

.em-cx__button {
    padding: .6em 1.3em;
    border: 1px solid var(--em-brand, #2563eb);
    border-radius: 8px;
    background: var(--em-brand, #2563eb);
    color: var(--em-on-brand, #fff);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.em-cx__button:disabled { opacity: .5; cursor: default; }

.em-cx__reset {
    padding: .6em 1em;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 8px;
    background: transparent;
    color: var(--em-soft, #6b7280);
    font: inherit;
    cursor: pointer;
}

.em-cx__status {
    margin: 1em 0 0;
    padding: .65em .9em;
    border-left: 3px solid var(--em-line, #e5e7eb);
    border-radius: 0 8px 8px 0;
    font-size: .92rem;
    color: var(--em-ink, inherit);
}

.em-cx__status.is-good { border-left-color: #16a34a; background: rgba(22, 163, 74, .10); }
.em-cx__status.is-working { border-left-color: var(--em-brand, #2563eb); background: var(--em-tint, #f0f6ff); }

.em-cx__problem:empty { display: none; }
.em-cx__problem { margin-top: 1em; }
.em-cx__promise { margin-top: 1.4em; }

@media (max-width: 560px) {
    .em-post-content .em-cx .em-cx__shot canvas { width: 104px; height: 104px; }
    .em-cx__go { flex-direction: column; }
}

/* ── What you will actually get ────────────────────────────────────────── */

.em-cx__group {
    margin: 0 0 1em;
    padding: .8em 1em;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 10px;
}

.em-cx__group legend { padding: 0 .4em; font-weight: 600; color: var(--em-ink, inherit); }
.em-cx__group .em-cx__check { margin-bottom: .45em; align-items: baseline; }
.em-cx__check em { font-style: normal; font-size: .85rem; color: var(--em-soft, #6b7280); }

.em-cx__tally {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--em-brand, #2563eb);
}

.em-cx__tally.is-empty { color: var(--em-soft, #6b7280); font-weight: 400; }
