/*
 * Styles for [coinmama_price_line] + [coinmama_conversion_table]
 * + [coinmama_price_asof].
 * Hand-written (not compiled from SASS), same as scc-converter*.css.
 * Brand colors come from the :root vars declared in main.css.
 */

/* === AS-OF PARAGRAPH === */

.cm-price-asof {
    margin: 2em 0;
}

.cm-price-asof__lead {
    font-size: 28px;
    line-height: 1.45;
    color: #5c6470;
    margin: 0 0 1em;
}

.cm-price-asof__lead strong {
    color: #2b3440;
    font-weight: 700;
}

.cm-price-asof__note {
    font-size: 12px;
    line-height: 1.5;
    color: #8a919c;
    margin: 0;
}

@media (max-width: 767px) {
    .cm-price-asof__lead {
        font-size: 22px;
    }
}

/* === PRICE LINE === */

.cm-price-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--cn-blue, #2b65e8);
}

.cm-price-line__icon {
    width: 22px;
    height: 22px;
    flex: none;
}

.cm-price-line__value {
    color: var(--cm-dark-blue, #000071);
    font-weight: 700;
}

.cm-price-line__change {
    font-size: 14px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.cm-price-line__change.is-up {
    color: #0d8a43;
    background: rgba(13, 138, 67, 0.08);
}

.cm-price-line__change.is-down {
    color: #cf3d3d;
    background: rgba(207, 61, 61, 0.08);
}

/* === CONVERSION TABLE === */

.cm-conv-table {
    margin: 2em 0;
}

/* Wide tables scroll inside their own container on narrow screens. */
.cm-conv-table__scroll {
    overflow-x: auto;
}

.cm-conv-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(43, 101, 232, 0.55);
    color: var(--cn-blue, #2b65e8);
}

.cm-conv-table th {
    font-weight: 700;
    text-align: center;
    padding: 14px 20px;
    border: 1px solid rgba(43, 101, 232, 0.55);
    /* Thicker rule under the header row, as in the design. */
    border-bottom: 2px solid var(--cn-blue, #2b65e8);
}

.cm-conv-table td {
    text-align: left;
    padding: 12px 20px;
    border: 1px solid rgba(43, 101, 232, 0.55);
}

@media (max-width: 767px) {
    .cm-conv-table th,
    .cm-conv-table td {
        padding: 10px 12px;
        font-size: 16px;
    }
}
