/*
 * RDMORA Forex
 * FOREX-UI-001C
 * ENTWA visual reference implementation.
 */


/* ==========================================================
   Theme tokens
   ========================================================== */

.rdmora-forex {
    --rf-page: transparent;

    --rf-accent: #4b73ff;
    --rf-accent-hover: #5c81ff;
    --rf-accent-soft: rgba(75,115,255,.15);

    --rf-card: #111b2d;
    --rf-card-alt: #182d58;
    --rf-card-soft: #0d1728;
    --rf-field: #0b1526;

    --rf-border: #273550;
    --rf-border-soft: rgba(135,154,190,.18);

    --rf-text: #f6f8ff;
    --rf-text-soft: #a5b0c5;
    --rf-muted: #78869f;

    --rf-good: #4bd7a1;
    --rf-good-bg: rgba(25,140,100,.30);

    --rf-bad: #ff7890;
    --rf-bad-bg: rgba(164,59,83,.28);

    --rf-warning: #d6a83c;

    width: 100%;
    color: var(--rf-text);
    font-family: inherit;
}


.rdmora-forex.rdmora-forex--light {
    --rf-card: #ffffff;
    --rf-card-alt: #eef3ff;
    --rf-card-soft: #f8faff;
    --rf-field: #ffffff;

    --rf-border: #d7dfec;
    --rf-border-soft: rgba(36,53,82,.12);

    --rf-text: #172033;
    --rf-text-soft: #66738a;
    --rf-muted: #8792a6;

    --rf-good-bg: #e9f8f2;
    --rf-bad-bg: #fff0f3;
}


.rdmora-forex *,
.rdmora-forex *::before,
.rdmora-forex *::after {
    box-sizing: border-box;
}


/* ==========================================================
   Outer content
   ========================================================== */

.rdmora-forex__shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 0 16px;
    background: transparent;
}


.rdmora-forex__header {
    margin: 0 0 28px;
}


.rdmora-forex__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #6e91ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.2;
    text-transform: uppercase;
}


.rdmora-forex__eyebrow::before {
    content: "";
    display: block;
    width: 23px;
    height: 2px;
    background: #527cff;
}


.rdmora-forex__title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: var(--rf-text) !important;
    font-size: clamp(35px, 4vw, 53px) !important;
    font-weight: 400 !important;
    letter-spacing: -.045em !important;
    line-height: 1.04 !important;
}


.rdmora-forex__title-strong {
    font-weight: 700;
}


.rdmora-forex__title-soft {
    color: var(--rf-text-soft);
    font-weight: 300;
}


.rdmora-forex__title-soft::after {
    content: "";
    display: inline-block;
    width: .13em;
    height: .13em;
    margin-inline-start: .05em;
    border-radius: 50%;
    background: var(--rf-accent);
    vertical-align: .08em;
}


.rdmora-forex__intro {
    max-width: 720px;
    margin: 0 !important;
    color: var(--rf-text-soft) !important;
    font-size: 15px;
    line-height: 1.65;
}


/* ==========================================================
   Tabs
   ========================================================== */

.rdmora-forex__tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 74px;
    margin: 0;
    padding: 0 30px;
    overflow: hidden;

    background: var(--rf-card);
    border: 1px solid var(--rf-border);
    border-radius: 18px 18px 0 0;
}


.rdmora-forex__tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    min-width: 170px;
    min-height: 74px;
    padding: 0 17px;

    appearance: none;
    color: var(--rf-text-soft);
    background: transparent;
    border: 0;
    border-radius: 0;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition:
        color .18s ease,
        background .18s ease;
}


.rdmora-forex__tab::before {
    display: inline-flex;
    width: 20px;
    justify-content: center;
    color: currentColor;
    font-size: 17px;
    font-weight: 400;
}


.rdmora-forex__tab[data-forex-tab="profit"]::before {
    content: "↗";
}


.rdmora-forex__tab[data-forex-tab="margin"]::before {
    content: "◇";
}


.rdmora-forex__tab[data-forex-tab="pip-value"]::before {
    content: "╫";
}


.rdmora-forex__tab::after {
    margin-inline-start: auto;
    color: var(--rf-muted);
    font-size: 10px;
    font-weight: 500;
}


.rdmora-forex__tab[data-forex-tab="profit"]::after {
    content: "01";
}


.rdmora-forex__tab[data-forex-tab="margin"]::after {
    content: "02";
}


.rdmora-forex__tab[data-forex-tab="pip-value"]::after {
    content: "03";
}


.rdmora-forex__tab:hover {
    color: var(--rf-text);
}


.rdmora-forex__tab.is-active {
    color: #7193ff;
}


.rdmora-forex__tab.is-active::before {
    color: #7193ff;
}


.rdmora-forex__tab.is-active::after {
    color: #7193ff;
}


.rdmora-forex__tab.is-active > span::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: var(--rf-accent);
}


/* ==========================================================
   Panels / Calculator workspace
   ========================================================== */

.rdmora-forex__panel[hidden] {
    display: none !important;
}


.rdmora-forex__form {
    display: grid;
    grid-template-columns:
        minmax(0, 58%)
        minmax(320px, 42%);

    margin: 0;
    padding: 0;

    background: var(--rf-card);
    border: 1px solid var(--rf-border);
    border-top: 0;
    border-radius: 0 0 18px 18px;

    overflow: hidden;
}


.rdmora-forex:not([data-mode="all"])
.rdmora-forex__form {
    border-top: 1px solid var(--rf-border);
    border-radius: 18px;
}


.rdmora-forex__form-main {
    min-width: 0;
    padding: 38px 38px 30px;
}


.rdmora-forex__form-aside {
    min-width: 0;
    padding: 30px;

    background:
        linear-gradient(
            180deg,
            rgba(80,113,180,.035),
            transparent 60%
        );

    border-inline-start:
        1px solid var(--rf-border);
}


.rdmora-forex__calculator-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 27px;
}


.rdmora-forex__calculator-heading h3 {
    margin: 0 0 6px !important;
    padding: 0 !important;

    color: var(--rf-text) !important;

    font-size: 20px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}


.rdmora-forex__calculator-heading p {
    margin: 0 !important;
    color: var(--rf-text-soft) !important;
    font-size: 13px;
    line-height: 1.55;
}


.rdmora-forex__calculator-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    color: #7393f8;
    border: 1px solid var(--rf-border);
    border-radius: 10px;

    font-size: 17px;
}


/* ==========================================================
   Fields
   ========================================================== */

.rdmora-forex__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 21px 18px;
}


.rdmora-forex__field {
    display: flex;
    flex-direction: column;
    gap: 9px;

    min-width: 0;

    color: var(--rf-text);
    font-size: 13px;
    font-weight: 500;
}


.rdmora-forex__field > span {
    color: var(--rf-text);
}


.rdmora-forex__field input,
.rdmora-forex__field select {
    width: 100%;
    min-width: 0;
    min-height: 54px;

    margin: 0;
    padding: 0 14px;

    color: var(--rf-text);
    background: var(--rf-field);

    border: 1px solid var(--rf-border);
    border-radius: 9px;

    outline: none;

    font: inherit;
    font-size: 14px;
    font-weight: 500;

    box-shadow: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.rdmora-forex__field select {
    cursor: pointer;
}


.rdmora-forex__field select option {
    color: #182033;
    background: #ffffff;
}


.rdmora-forex__field input::placeholder {
    color: var(--rf-muted);
    opacity: 1;
}


.rdmora-forex__field input:focus,
.rdmora-forex__field select:focus {
    border-color: var(--rf-accent);
    box-shadow:
        0 0 0 3px
        rgba(75,115,255,.13);
}


/* ==========================================================
   Buy / Sell segmented switch
   ========================================================== */

.rdmora-forex__side-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;

    min-height: 54px;
    padding: 4px;

    background: var(--rf-field);

    border: 1px solid var(--rf-border);
    border-radius: 9px;
}


.rdmora-forex__side-switch label {
    display: block;
    min-width: 0;
    cursor: pointer;
}


.rdmora-forex__side-switch input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none;
}


.rdmora-forex__side-switch span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: 100%;
    height: 44px;

    border-radius: 7px;

    color: var(--rf-text-soft);

    font-size: 13px;
    font-weight: 500;

    transition:
        color .18s ease,
        background .18s ease;
}


.rdmora-forex__side-switch
input[value="buy"]:checked + span {
    color: #5fe0b1;
    background: var(--rf-good-bg);
}


.rdmora-forex__side-switch
input[value="sell"]:checked + span {
    color: #ff8ca0;
    background: var(--rf-bad-bg);
}


/* ==========================================================
   Market-assisted input
   ========================================================== */

.rdmora-forex__input-action {
    position: relative;
}


.rdmora-forex__input-action input {
    padding-inline-end: 100px;
}


.rdmora-forex__mini {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);

    min-height: 32px;
    padding: 0 4px;

    color: #6e91ff;
    background: transparent;

    border: 0;
    border-radius: 6px;

    font: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;
}


.rdmora-forex__mini:hover {
    color: #8da7ff;
    background: transparent;
}


/* ==========================================================
   Form actions
   ========================================================== */

.rdmora-forex__actions {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 12px;

    margin-top: 26px;
}


.rdmora-forex__submit,
.rdmora-forex__reset {
    min-height: 54px;
    padding: 0 24px;

    border-radius: 9px;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease,
        opacity .18s ease;
}


.rdmora-forex__submit {
    color: #ffffff;
    background: var(--rf-accent);
    border: 1px solid var(--rf-accent);
}


.rdmora-forex__submit::after {
    content: "→";
    display: inline-block;
    margin-inline-start: 18px;
}


.rdmora-forex[dir="rtl"]
.rdmora-forex__submit::after {
    content: "←";
}


.rdmora-forex__submit:hover {
    background: var(--rf-accent-hover);
}


.rdmora-forex__reset {
    min-width: 102px;

    color: var(--rf-text-soft);
    background: transparent;

    border: 1px solid var(--rf-border);
}


.rdmora-forex__reset::before {
    content: "↻";
    margin-inline-end: 7px;
}


.rdmora-forex__reset:hover {
    color: var(--rf-text);
    border-color: #4c5c78;
}


/* ==========================================================
   Market rate card
   ========================================================== */

.rdmora-forex__market {
    min-height: 126px;
    margin: 0 0 18px;
    padding: 17px 19px;

    background: var(--rf-card-soft);

    border: 1px solid var(--rf-border);
    border-radius: 11px;
}


.rdmora-forex__market-head,
.rdmora-forex__market-main,
.rdmora-forex__market-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


.rdmora-forex__market-head {
    margin-bottom: 18px;
}


.rdmora-forex__market-label {
    color: var(--rf-text-soft);
    font-size: 11px;
}


.rdmora-forex__market-badge,
.rdmora-forex__delayed {
    padding: 3px 7px;

    color: var(--rf-warning);
    background: rgba(206,159,47,.07);

    border: 1px solid rgba(206,159,47,.45);
    border-radius: 5px;

    font-size: 9px;
    font-weight: 500;
}


.rdmora-forex__market-symbol {
    color: var(--rf-text);
    font-size: 15px;
    font-weight: 650;
}


.rdmora-forex__market-value {
    color: var(--rf-text);
    font-size: 22px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}


.rdmora-forex__market-meta {
    margin-top: 12px;

    color: var(--rf-muted);
    font-size: 10px;
}


.rdmora-forex__status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-radius: 50%;
    background: var(--rf-muted);
}


.rdmora-forex.is-market-ready
.rdmora-forex__status-dot {
    background: var(--rf-good);
}


.rdmora-forex.is-market-error
.rdmora-forex__status-dot {
    background: var(--rf-bad);
}


/* ==========================================================
   Result card
   ========================================================== */

.rdmora-forex__result {
    display: flex;
    flex-direction: column;

    min-height: 315px;
    padding: 22px;

    background: var(--rf-card-alt);

    border: 1px solid rgba(76,115,208,.55);
    border-radius: 11px;
}


.rdmora-forex__result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 24px;
}


.rdmora-forex__result-label {
    color: #aebce0;
    font-size: 12px;
}


.rdmora-forex--light
.rdmora-forex__result-label {
    color: #5f7196;
}


.rdmora-forex__result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #7595ff;
    background: rgba(78,112,209,.25);

    border-radius: 7px;
}


.rdmora-forex__result-value {
    display: block;

    max-width: 100%;
    overflow-wrap: anywhere;

    color: var(--rf-text);

    font-size: clamp(34px, 4.2vw, 48px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
}


.rdmora-forex__result.is-positive
.rdmora-forex__result-value {
    color: var(--rf-text);
}


.rdmora-forex__result.is-negative
.rdmora-forex__result-value {
    color: var(--rf-text);
}


.rdmora-forex__result-empty {
    margin: 14px 0 0 !important;

    color: #8fa0c6 !important;

    font-size: 11px;
    line-height: 1.5;
}


.rdmora-forex__result.is-filled
.rdmora-forex__result-empty {
    display: none;
}


.rdmora-forex__result-meta {
    margin-top: 14px;

    color: #8fa0c6;

    font-size: 11px;
    line-height: 1.6;
}


.rdmora-forex__result-foot {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    padding-top: 18px;

    color: #91a1c5;

    border-top:
        1px solid rgba(138,160,212,.20);

    font-size: 10px;
    line-height: 1.45;
}


/* ==========================================================
   Errors / Loading
   ========================================================== */

.rdmora-forex__error {
    margin-top: 14px;
    padding: 12px 14px;

    color: #ff8698;
    background: rgba(174,51,75,.13);

    border: 1px solid rgba(255,102,128,.25);
    border-radius: 9px;

    font-size: 12px;
}


@keyframes rdmora-forex-spin {
    to {
        transform: rotate(360deg);
    }
}


.rdmora-forex.is-market-loading
.rdmora-forex__status-dot {
    width: 12px;
    height: 12px;
    flex-basis: 12px;

    background: transparent;

    border: 2px solid var(--rf-border);
    border-top-color: var(--rf-accent);

    animation:
        rdmora-forex-spin
        .7s linear infinite;
}


.rdmora-forex__submit.is-loading,
.rdmora-forex__mini.is-loading {
    cursor: wait;
    opacity: .75;
}


.rdmora-forex__submit:disabled,
.rdmora-forex__mini:disabled {
    pointer-events: none;
}


/* ==========================================================
   Bottom note
   ========================================================== */

.rdmora-forex__below-note {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;

    color: var(--rf-muted);

    font-size: 11px;
}


/* ==========================================================
   RTL
   ========================================================== */

.rdmora-forex[dir="rtl"] {
    text-align: right;
}


.rdmora-forex[dir="rtl"]
.rdmora-forex__title {
    letter-spacing: normal !important;
}


.rdmora-forex[dir="rtl"]
.rdmora-forex__eyebrow {
    letter-spacing: 0;
    text-transform: none;
}


.rdmora-forex[dir="rtl"]
.rdmora-forex__field input,
.rdmora-forex[dir="rtl"]
.rdmora-forex__field select {
    text-align: right;
}


.rdmora-forex[dir="rtl"]
input[type="number"] {
    direction: ltr;
    text-align: right;
}


.rdmora-forex[dir="rtl"]
.rdmora-forex__market-value,
.rdmora-forex[dir="rtl"]
.rdmora-forex__market-symbol,
.rdmora-forex[dir="rtl"]
.rdmora-forex__result-value {
    direction: ltr;
    unicode-bidi: isolate;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 980px) {

    .rdmora-forex__form {
        grid-template-columns:
            minmax(0, 56%)
            minmax(280px, 44%);
    }

    .rdmora-forex__form-main {
        padding:
            30px 26px 26px;
    }

    .rdmora-forex__form-aside {
        padding: 24px;
    }

    .rdmora-forex__tabs {
        padding-inline: 18px;
    }

    .rdmora-forex__tab {
        min-width: 145px;
    }
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 767px) {

    .rdmora-forex__shell {
        padding:
            20px 0 12px;
    }


    .rdmora-forex__header {
        margin-bottom: 22px;
    }


    .rdmora-forex__eyebrow {
        margin-bottom: 14px;
        font-size: 10px;
    }


    .rdmora-forex__title {
        font-size:
            clamp(
                31px,
                10vw,
                42px
            ) !important;
    }


    .rdmora-forex__intro {
        font-size: 13px;
        line-height: 1.6;
    }


    .rdmora-forex__tabs {
        display: grid;
        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            );

        min-height: 60px;

        padding: 0 6px;

        border-radius:
            13px 13px 0 0;
    }


    .rdmora-forex__tab {
        min-width: 0;
        min-height: 60px;

        gap: 5px;
        padding: 0 5px;

        font-size: 11px;
    }


    .rdmora-forex__tab::before {
        width: auto;
        font-size: 13px;
    }


    .rdmora-forex__tab::after {
        display: none;
    }


    .rdmora-forex__form {
        display: block;

        border-radius:
            0 0 13px 13px;
    }


    .rdmora-forex:not([data-mode="all"])
    .rdmora-forex__form {
        border-radius: 13px;
    }


    .rdmora-forex__form-main {
        padding:
            24px 17px 22px;
    }


    .rdmora-forex__form-aside {
        padding:
            17px 17px 20px;

        border-inline-start: 0;
        border-top:
            1px solid var(--rf-border);
    }


    .rdmora-forex__calculator-heading {
        margin-bottom: 23px;
    }


    .rdmora-forex__calculator-heading h3 {
        font-size:
            17px !important;
    }


    .rdmora-forex__calculator-heading p {
        font-size: 11px;
    }


    .rdmora-forex__calculator-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }


    .rdmora-forex__grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }


    .rdmora-forex__field input,
    .rdmora-forex__field select,
    .rdmora-forex__side-switch {
        min-height: 52px;
    }


    .rdmora-forex__actions {
        grid-template-columns:
            minmax(0,1fr)
            auto;

        margin-top: 21px;
    }


    .rdmora-forex__submit,
    .rdmora-forex__reset {
        min-height: 52px;
        padding-inline: 15px;
    }


    .rdmora-forex__reset {
        min-width: 86px;
    }


    .rdmora-forex__market {
        min-height: 118px;
    }


    .rdmora-forex__result {
        min-height: 280px;
    }


    .rdmora-forex__result-value {
        font-size:
            clamp(
                30px,
                11vw,
                44px
            );

        word-break: normal;
        overflow-wrap: anywhere;
    }


    .rdmora-forex__below-note {
        margin-top: 14px;
        font-size: 10px;
    }
}


/* ==========================================================
   Very small mobile
   ========================================================== */

@media (max-width: 380px) {

    .rdmora-forex__tab {
        font-size: 10px;
    }

    .rdmora-forex__actions {
        grid-template-columns: 1fr;
    }

    .rdmora-forex__reset {
        width: 100%;
    }
}


/* ==========================================================
   Reduced motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .rdmora-forex.is-market-loading
    .rdmora-forex__status-dot {
        animation-duration: 1.5s;
    }
}


/* ==========================================================
   FOREX-UI-001E1
   Desktop visual precision against approved ENTWA reference.
   ========================================================== */


/* ----------------------------------------------------------
   Typography isolation

   The site theme currently applies its heading/body typeface
   inside the shortcode. The approved Forex reference uses a
   neutral modern sans-serif treatment.
   ---------------------------------------------------------- */

.rdmora-forex,
.rdmora-forex button,
.rdmora-forex input,
.rdmora-forex select,
.rdmora-forex textarea {
    font-family:
        Inter,
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif !important;
}


.rdmora-forex__title,
.rdmora-forex__calculator-heading h3 {
    font-family:
        Inter,
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif !important;
}


/* ----------------------------------------------------------
   Main heading
   ---------------------------------------------------------- */

.rdmora-forex__eyebrow {
    font-size: 11px;
    font-weight: 700;
}


.rdmora-forex__title {
    font-size:
        clamp(
            42px,
            4vw,
            52px
        ) !important;

    font-weight: 400 !important;
    letter-spacing: -.045em !important;
}


.rdmora-forex__title-strong {
    font-weight: 700;
}


.rdmora-forex__title-soft {
    font-weight: 300;
}


.rdmora-forex__intro {
    font-size: 14px;
    line-height: 1.65;
}


/* ----------------------------------------------------------
   Calculator tab bar

   Approved desktop reference has a visibly taller tab rail.
   ---------------------------------------------------------- */

@media (min-width: 768px) {

    .rdmora-forex__tabs {
        min-height: 88px;
        padding-inline: 31px;
    }


    .rdmora-forex__tab {
        min-width: 180px;
        min-height: 88px;

        padding-inline: 17px;

        font-size: 13px;
        font-weight: 550;
    }


    .rdmora-forex__tab.is-active
    > .rdmora-forex__tab-label::after {
        inset-inline: 16px;
    }
}


/* ----------------------------------------------------------
   Replace temporary unicode tab icons with consistent
   line-style vector icons.
   ---------------------------------------------------------- */

.rdmora-forex__tab::before {
    content: "" !important;

    display: block;

    width: 19px;
    height: 19px;
    flex: 0 0 19px;

    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}


/* Profit / chart arrow */

.rdmora-forex__tab[data-forex-tab="profit"]::before {
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17l5-5 4 4 7-9'/%3E%3Cpath d='M15 7h5v5'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17l5-5 4 4 7-9'/%3E%3Cpath d='M15 7h5v5'/%3E%3C/svg%3E");
}


/* Margin / stacked layers */

.rdmora-forex__tab[data-forex-tab="margin"]::before {
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 2 8l10 5 10-5-10-5Zm0 8.1L5.8 8 12 4.9 18.2 8 12 11.1Zm-8.8.5L12 16l8.8-4.4L22 13l-10 5-10-5 1.2-1.4Zm0 5L12 21l8.8-4.4L22 18l-10 5-10-5 1.2-1.4Z'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 2 8l10 5 10-5-10-5Zm0 8.1L5.8 8 12 4.9 18.2 8 12 11.1Zm-8.8.5L12 16l8.8-4.4L22 13l-10 5-10-5 1.2-1.4Zm0 5L12 21l8.8-4.4L22 18l-10 5-10-5 1.2-1.4Z'/%3E%3C/svg%3E");
}


/* Pip value / candles */

.rdmora-forex__tab[data-forex-tab="pip-value"]::before {
    -webkit-mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 3v18M12 3v18M18 3v18'/%3E%3Crect x='4' y='7' width='4' height='7' rx='1' fill='black' stroke='none'/%3E%3Crect x='10' y='5' width='4' height='11' rx='1' fill='black' stroke='none'/%3E%3Crect x='16' y='9' width='4' height='7' rx='1' fill='black' stroke='none'/%3E%3C/svg%3E");

    mask-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 3v18M12 3v18M18 3v18'/%3E%3Crect x='4' y='7' width='4' height='7' rx='1' fill='black' stroke='none'/%3E%3Crect x='10' y='5' width='4' height='11' rx='1' fill='black' stroke='none'/%3E%3Crect x='16' y='9' width='4' height='7' rx='1' fill='black' stroke='none'/%3E%3C/svg%3E");
}


/* ----------------------------------------------------------
   Main calculator typography
   ---------------------------------------------------------- */

.rdmora-forex__calculator-heading h3 {
    font-size: 18px !important;
    font-weight: 650 !important;
}


.rdmora-forex__calculator-heading p {
    font-size: 12px;
}


.rdmora-forex__field {
    font-size: 12px;
    font-weight: 550;
}


.rdmora-forex__field input,
.rdmora-forex__field select {
    font-size: 13px;
}


/* ----------------------------------------------------------
   Input spacing
   ---------------------------------------------------------- */

@media (min-width: 768px) {

    .rdmora-forex__form-main {
        padding:
            38px
            38px
            34px;
    }


    .rdmora-forex__grid {
        gap:
            23px
            20px;
    }
}


/* ----------------------------------------------------------
   Use market belongs to the field header in the approved
   visual reference, not inside the text input.
   ---------------------------------------------------------- */

.rdmora-forex__input-action {
    position: relative;
}


.rdmora-forex__input-action input {
    padding-inline-end: 14px;
}


.rdmora-forex__input-action
.rdmora-forex__mini {
    top: -27px;

    inset-inline-end: 0;

    transform: none;

    min-height: 18px;

    padding: 0;

    font-size: 10px;
    line-height: 18px;
}


/* ----------------------------------------------------------
   Buy / Sell
   ---------------------------------------------------------- */

.rdmora-forex__side-switch span {
    font-size: 12px;
}


.rdmora-forex__side-switch
input[value="buy"]:checked + span {
    color: #66deb2;
}


.rdmora-forex__side-switch
input[value="sell"]:checked + span {
    color: #ff899e;
}


/* ----------------------------------------------------------
   Market card
   ---------------------------------------------------------- */

.rdmora-forex__market {
    min-height: 132px;
    padding:
        18px
        19px;
}


.rdmora-forex__market-label {
    font-size: 10px;
}


.rdmora-forex__market-symbol {
    font-size: 14px;
}


.rdmora-forex__market-value {
    font-size: 22px;
    letter-spacing: -.025em;
}


/* ----------------------------------------------------------
   Result card

   The approved visual has substantially more vertical room
   than the first foundation pass.
   ---------------------------------------------------------- */

@media (min-width: 768px) {

    .rdmora-forex__result {
        min-height: 360px;

        padding:
            22px
            21px;
    }


    .rdmora-forex__form-aside {
        padding:
            30px;
    }
}


.rdmora-forex__result-label {
    font-size: 11px;
}


.rdmora-forex__result-value {
    font-size:
        clamp(
            38px,
            4vw,
            48px
        );

    font-weight: 600;
}


.rdmora-forex__result-empty,
.rdmora-forex__result-meta {
    font-size: 10px;
}


.rdmora-forex__result-foot {
    font-size: 9px;
}


/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.rdmora-forex__submit,
.rdmora-forex__reset {
    font-size: 12px;
}


.rdmora-forex__submit {
    font-weight: 650;
}


/* ----------------------------------------------------------
   Footer note beneath calculator
   ---------------------------------------------------------- */

.rdmora-forex__below-note {
    margin-top: 18px;
    font-size: 10px;
}


/* ----------------------------------------------------------
   Preserve mobile rules from the approved 390 reference.
   Desktop-only sizing above must not inflate the mobile UI.
   ---------------------------------------------------------- */

@media (max-width: 767px) {

    .rdmora-forex__title {
        letter-spacing:
            -.035em !important;
    }


    .rdmora-forex__input-action
    .rdmora-forex__mini {
        top: -26px;
    }


    .rdmora-forex__result {
        min-height: 280px;
    }
}



/* ==========================================================
   FOREX-UI-001E2C3
   Dynamic visual details
   ========================================================== */


/* ----------------------------------------------------------
   Generic control wrapper
   ---------------------------------------------------------- */

.rdmora-forex__control-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}


.rdmora-forex__control-wrap input,
.rdmora-forex__control-wrap select {
    display: block;
}


/* ----------------------------------------------------------
   Instrument icon
   ---------------------------------------------------------- */

.rdmora-forex__control-wrap--instrument
.rdmora-forex__control-icon {
    position: absolute;
    z-index: 3;

    inset-inline-start: 14px;
    top: 50%;

    width: 16px;
    height: 16px;

    transform: translateY(-50%);

    color: var(--rf-text-soft);

    pointer-events: none;
}


/* Globe outer circle */

.rdmora-forex__control-wrap--instrument
.rdmora-forex__control-icon::before {
    content: "";

    position: absolute;
    inset: 1px;

    border:
        1.2px solid
        currentColor;

    border-radius: 50%;
}


/* Globe longitude + latitude */

.rdmora-forex__control-wrap--instrument
.rdmora-forex__control-icon::after {
    content: "";

    position: absolute;

    inset:
        3px
        5px;

    border-left:
        1px solid
        currentColor;

    border-right:
        1px solid
        currentColor;

    border-radius: 50%;

    box-shadow:
        0 -4px 0 -3px currentColor,
        0 4px 0 -3px currentColor;
}


.rdmora-forex__control-wrap--instrument
select {
    padding-inline-start: 42px;
}


/* ----------------------------------------------------------
   Lot / Price suffixes
   ---------------------------------------------------------- */

.rdmora-forex__field-suffix {
    position: absolute;
    z-index: 3;

    inset-inline-end: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--rf-muted);

    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    pointer-events: none;
    white-space: nowrap;
}


.rdmora-forex__control-wrap--suffix
input,
.rdmora-forex__control-wrap--price
input {
    padding-inline-end: 68px;
}


/*
 * Close Price / Margin Market Price live inside
 * input-action together with Use Market.
 */
.rdmora-forex__input-action
.rdmora-forex__field-suffix {
    inset-inline-end: 14px;
    top: 50%;
}


.rdmora-forex__input-action input {
    padding-inline-end: 68px;
}


/* ----------------------------------------------------------
   Account currency badge
   ---------------------------------------------------------- */

.rdmora-forex__currency-badge {
    position: absolute;
    z-index: 3;

    inset-inline-start: 14px;
    top: 50%;

    transform: translateY(-50%);

    min-width: 14px;

    color: var(--rf-text-soft);

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    pointer-events: none;
}


.rdmora-forex__control-wrap--currency
select {
    padding-inline-start: 42px;
}


/* ----------------------------------------------------------
   Dynamic instrument metadata
   ---------------------------------------------------------- */

.rdmora-forex__instrument-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap:
        8px
        14px;

    min-height: 25px;

    margin-top: 13px;

    color: var(--rf-muted);

    font-size: 9px;
    line-height: 1.4;
}


.rdmora-forex__instrument-meta > div {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


.rdmora-forex__instrument-meta strong {
    color: var(--rf-text-soft);

    font-size: 9px;
    font-weight: 600;

    direction: ltr;
    unicode-bidi: isolate;
}


.rdmora-forex__meta-separator {
    display: block;

    width: 1px;
    height: 11px;

    background: var(--rf-border);
}


/* ----------------------------------------------------------
   Filled result state
   ---------------------------------------------------------- */

.rdmora-forex__result.is-filled
.rdmora-forex__result-empty {
    display: none;
}


.rdmora-forex__result-visual {
    width: 100%;
    margin-top: 17px;
}


.rdmora-forex__result-visual[hidden],
.rdmora-forex__profit-chart[hidden] {
    display: none !important;
}


/* ----------------------------------------------------------
   Profit chart
   ---------------------------------------------------------- */

.rdmora-forex__profit-chart {
    position: relative;

    width: 100%;
    height: 82px;

    margin:
        3px 0
        17px;

    overflow: hidden;

    color: #57d7a6;
}


.rdmora-forex__result.is-chart-down
.rdmora-forex__profit-chart {
    color: #ff788f;
}


.rdmora-forex__profit-chart svg {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;
}


.rdmora-forex__chart-line {
    fill: none;

    stroke: currentColor;
    stroke-width: 2;

    vector-effect:
        non-scaling-stroke;
}


.rdmora-forex__chart-area {
    fill:
        rgba(87,215,166,.11);

    stroke: none;
}


.rdmora-forex__result.is-chart-down
.rdmora-forex__chart-area {
    fill:
        rgba(255,120,143,.10);
}


/* ----------------------------------------------------------
   Result detail rows
   ---------------------------------------------------------- */

.rdmora-forex__result-details {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 10px;

    padding:
        13px 0;

    border-top:
        1px solid
        rgba(138,160,212,.17);

    border-bottom:
        1px solid
        rgba(138,160,212,.17);
}


.rdmora-forex__result-details > div {
    min-width: 0;
}


.rdmora-forex__result-details span {
    display: block;

    margin-bottom: 5px;

    overflow: hidden;

    color: #8999bf;

    font-size: 8px;
    font-weight: 500;
    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.rdmora-forex__result-details strong {
    display: block;

    overflow: hidden;

    color: var(--rf-text);

    font-size: 10px;
    font-weight: 650;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;

    direction: ltr;
    unicode-bidi: isolate;
}


/* ----------------------------------------------------------
   Filled result spacing
   ---------------------------------------------------------- */

.rdmora-forex__result.is-filled
.rdmora-forex__result-value {
    margin-bottom: 0;
}


.rdmora-forex__result.is-filled
.rdmora-forex__result-meta {
    margin-top: 11px;
}


.rdmora-forex__result.is-filled
.rdmora-forex__result-foot {
    margin-top: 14px;
}


/* Profit positive / negative visual semantics */

.rdmora-forex__result.is-positive
.rdmora-forex__result-icon {
    color: #66deb0;

    background:
        rgba(69,190,146,.18);
}


.rdmora-forex__result.is-negative
.rdmora-forex__result-icon {
    color: #ff8399;

    background:
        rgba(211,76,101,.17);
}


/* ----------------------------------------------------------
   Light theme
   ---------------------------------------------------------- */

.rdmora-forex--light
.rdmora-forex__result-details span {
    color: #7887a5;
}


.rdmora-forex--light
.rdmora-forex__instrument-meta {
    color: #8792a6;
}


.rdmora-forex--light
.rdmora-forex__instrument-meta strong {
    color: #66738a;
}


.rdmora-forex--light
.rdmora-forex__field-suffix,
.rdmora-forex--light
.rdmora-forex__currency-badge {
    color: #78869f;
}


/* ----------------------------------------------------------
   RTL
   ---------------------------------------------------------- */

.rdmora-forex[dir="rtl"]
.rdmora-forex__instrument-meta strong,
.rdmora-forex[dir="rtl"]
.rdmora-forex__result-details strong {
    direction: ltr;
    unicode-bidi: isolate;
}


.rdmora-forex[dir="rtl"]
.rdmora-forex__result-details {
    text-align: right;
}


/* ----------------------------------------------------------
   Desktop precision
   ---------------------------------------------------------- */

@media (min-width: 768px) {

    .rdmora-forex__result.is-filled {
        min-height: 360px;
    }


    .rdmora-forex__result.is-filled
    .rdmora-forex__result-value {
        font-size:
            clamp(
                36px,
                3.8vw,
                46px
            );
    }
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 767px) {

    .rdmora-forex__instrument-meta {
        margin-top: 11px;

        gap:
            6px
            10px;
    }


    .rdmora-forex__profit-chart {
        height: 72px;

        margin-bottom: 14px;
    }


    .rdmora-forex__result-details {
        gap: 6px;

        padding:
            11px 0;
    }


    .rdmora-forex__result-details span {
        font-size: 7.5px;
    }


    .rdmora-forex__result-details strong {
        font-size: 9px;
    }


    .rdmora-forex__field-suffix {
        inset-inline-end: 12px;
    }


    .rdmora-forex__control-wrap--instrument
    .rdmora-forex__control-icon,
    .rdmora-forex__currency-badge {
        inset-inline-start: 12px;
    }
}



/* ==========================================================
   FOREX-UI-001E3
   Final desktop precision
   Visual-only. No runtime/calculation changes.
   ========================================================== */

@media (min-width: 768px) {


    /* ------------------------------------------------------
       Main calculator proportions
       ------------------------------------------------------ */

    .rdmora-forex__body,
    .rdmora-forex__panel > form {
        grid-template-columns:
            minmax(0, 57.5fr)
            minmax(0, 42.5fr);
    }


    /* ------------------------------------------------------
       Tabs
       ------------------------------------------------------ */

    .rdmora-forex__tabs {
        min-height: 86px;

        padding-inline:
            34px;
    }


    .rdmora-forex__tab {
        min-height: 86px;
        min-width: 176px;

        gap: 12px;

        padding-inline:
            14px;

        font-size: 13px;
    }


    .rdmora-forex__tab::before {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }


    /* ------------------------------------------------------
       Form column
       ------------------------------------------------------ */

    .rdmora-forex__form-main {
        padding:
            40px
            38px
            32px;
    }


    .rdmora-forex__calculator-heading {
        margin-bottom: 31px;
    }


    .rdmora-forex__calculator-heading h3 {
        margin-bottom: 7px;

        font-size: 18px !important;
        line-height: 1.25;
    }


    .rdmora-forex__calculator-heading p {
        font-size: 11px;
        line-height: 1.55;
    }


    .rdmora-forex__grid {
        gap:
            24px
            20px;
    }


    .rdmora-forex__field > span:first-child {
        display: block;

        margin-bottom: 10px;

        font-size: 11px;
        line-height: 1.3;
    }


    .rdmora-forex__field input,
    .rdmora-forex__field select,
    .rdmora-forex__side-switch {
        min-height: 54px;
    }


    .rdmora-forex__field input,
    .rdmora-forex__field select {
        font-size: 12px;
    }


    /* ------------------------------------------------------
       Buttons
       ------------------------------------------------------ */

    .rdmora-forex__actions {
        margin-top: 27px;
        gap: 12px;
    }


    .rdmora-forex__submit,
    .rdmora-forex__reset {
        min-height: 55px;
    }


    .rdmora-forex__submit {
        font-size: 12px;
    }


    .rdmora-forex__reset {
        min-width: 104px;

        font-size: 11px;
    }


    /* ------------------------------------------------------
       Metadata beneath Calculate
       ------------------------------------------------------ */

    .rdmora-forex__instrument-meta {
        margin-top: 16px;

        font-size: 8.5px;
    }


    .rdmora-forex__instrument-meta strong {
        font-size: 8.5px;
    }


    /* ------------------------------------------------------
       Right column
       ------------------------------------------------------ */

    .rdmora-forex__form-aside {
        padding:
            30px
            31px;
    }


    .rdmora-forex__market {
        min-height: 132px;

        padding:
            19px
            20px;
    }


    .rdmora-forex__market-value {
        font-size: 21px;
    }


    /* ------------------------------------------------------
       Result card
       ------------------------------------------------------ */

    .rdmora-forex__result {
        min-height: 358px;

        padding:
            21px
            21px
            20px;
    }


    .rdmora-forex__result-head {
        margin-bottom: 24px;
    }


    .rdmora-forex__result-label {
        font-size: 10px;
    }


    .rdmora-forex__result-value {
        font-size:
            clamp(
                38px,
                3.8vw,
                45px
            );

        line-height: 1.05;
        letter-spacing: -.035em;
    }


    .rdmora-forex__result.is-filled
    .rdmora-forex__result-value {
        font-size:
            clamp(
                38px,
                3.8vw,
                45px
            );
    }


    .rdmora-forex__result-meta {
        font-size: 8.5px;
        line-height: 1.45;
    }


    /* ------------------------------------------------------
       Profit graph
       ------------------------------------------------------ */

    .rdmora-forex__profit-chart {
        height: 74px;

        margin:
            8px 0
            17px;
    }


    .rdmora-forex__chart-line {
        stroke-width: 1.7;
    }


    .rdmora-forex__chart-area {
        fill:
            rgba(
                87,
                215,
                166,
                .075
            );
    }


    .rdmora-forex__result.is-chart-down
    .rdmora-forex__chart-area {
        fill:
            rgba(
                255,
                120,
                143,
                .07
            );
    }


    /* ------------------------------------------------------
       Result detail data
       ------------------------------------------------------ */

    .rdmora-forex__result-details {
        padding:
            12px 0;

        gap: 12px;
    }


    .rdmora-forex__result-details span {
        margin-bottom: 6px;

        font-size: 7.5px;
    }


    .rdmora-forex__result-details strong {
        font-size: 9.5px;
    }


    .rdmora-forex__result-foot {
        font-size: 8px;
    }


    /* ------------------------------------------------------
       Small field adornments
       ------------------------------------------------------ */

    .rdmora-forex__field-suffix {
        font-size: 9px;
    }


    .rdmora-forex__currency-badge {
        font-size: 11px;
    }


    .rdmora-forex__control-wrap--instrument
    .rdmora-forex__control-icon {
        width: 15px;
        height: 15px;
    }


    /* ------------------------------------------------------
       Below-card note
       ------------------------------------------------------ */

    .rdmora-forex__below-note {
        margin-top: 17px;

        font-size: 9px;
    }
}



/* ==========================================================
   FOREX-UI-001M1
   Mobile Dark Precision
   390px approved mobile design pass.
   ========================================================== */

@media (max-width: 767px) {


    /* ------------------------------------------------------
       Heading area
       ------------------------------------------------------ */

    .rdmora-forex__header {
        margin-bottom: 22px;
    }


    .rdmora-forex__eyebrow {
        margin-bottom: 12px;

        font-size: 10px;
        letter-spacing: .18em;
    }


    .rdmora-forex__title {
        margin-bottom: 10px;

        font-size:
            clamp(
                35px,
                10.8vw,
                42px
            ) !important;

        line-height: .98 !important;
    }


    .rdmora-forex__intro {
        max-width: 310px;

        font-size: 11px;
        line-height: 1.65;
    }


    /* ------------------------------------------------------
       Main calculator shell
       ------------------------------------------------------ */

    .rdmora-forex__shell {
        border-radius: 14px;
    }


    /* ------------------------------------------------------
       Tabs
       ------------------------------------------------------ */

    .rdmora-forex__tabs {
        min-height: 57px;

        padding:
            0
            7px;
    }


    .rdmora-forex__tab {
        min-width: 0;
        min-height: 57px;

        gap: 6px;

        padding:
            0
            7px;

        font-size: 10px;
    }


    .rdmora-forex__tab::before {
        width: 14px;
        height: 14px;

        flex-basis: 14px;
    }


    .rdmora-forex__tab-index {
        font-size: 7px;
    }


    .rdmora-forex__tab.is-active
    > .rdmora-forex__tab-label::after {
        inset-inline:
            0;
    }


    /* ------------------------------------------------------
       Main form
       ------------------------------------------------------ */

    .rdmora-forex__form-main {
        padding:
            24px
            18px
            20px;
    }


    .rdmora-forex__calculator-heading {
        margin-bottom: 25px;
    }


    .rdmora-forex__calculator-heading h3 {
        margin-bottom: 6px;

        font-size: 18px !important;
        line-height: 1.2;
    }


    .rdmora-forex__calculator-heading p {
        max-width: 230px;

        font-size: 10px;
        line-height: 1.55;
    }


    .rdmora-forex__grid {
        gap: 20px;
    }


    .rdmora-forex__field > span:first-child {
        margin-bottom: 9px;

        font-size: 10px;
    }


    .rdmora-forex__field input,
    .rdmora-forex__field select,
    .rdmora-forex__side-switch {
        min-height: 52px;
    }


    .rdmora-forex__field input,
    .rdmora-forex__field select {
        font-size: 11px;
    }


    /* ------------------------------------------------------
       Trade direction
       ------------------------------------------------------ */

    .rdmora-forex__side-switch {
        padding: 3px;
    }


    .rdmora-forex__side-switch span {
        min-height: 44px;

        font-size: 10px;
    }


    /* ------------------------------------------------------
       Use market + suffixes
       ------------------------------------------------------ */

    .rdmora-forex__input-action
    .rdmora-forex__mini {
        top: -25px;

        font-size: 8.5px;
    }


    .rdmora-forex__field-suffix {
        font-size: 8px;
    }


    .rdmora-forex__currency-badge {
        font-size: 10px;
    }


    /* ------------------------------------------------------
       Actions
       ------------------------------------------------------ */

    .rdmora-forex__actions {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            72px;

        gap: 10px;

        margin-top: 22px;
    }


    .rdmora-forex__submit,
    .rdmora-forex__reset {
        min-height: 52px;
    }


    .rdmora-forex__submit {
        font-size: 10.5px;
    }


    .rdmora-forex__reset {
        min-width: 0;

        font-size: 9px;
    }


    /* ------------------------------------------------------
       Instrument meta
       ------------------------------------------------------ */

    .rdmora-forex__instrument-meta {
        margin-top: 13px;

        gap:
            6px
            10px;

        font-size: 7.5px;
    }


    .rdmora-forex__instrument-meta strong {
        font-size: 7.5px;
    }


    /* ------------------------------------------------------
       Right side becomes lower section
       ------------------------------------------------------ */

    .rdmora-forex__form-aside {
        gap: 15px;

        padding:
            16px
            18px
            18px;
    }


    /* ------------------------------------------------------
       Market rate card
       ------------------------------------------------------ */

    .rdmora-forex__market {
        min-height: 132px;

        padding:
            18px
            17px;

        border-radius: 11px;
    }


    .rdmora-forex__market-label {
        font-size: 8px;
    }


    .rdmora-forex__market-symbol {
        font-size: 12px;
    }


    .rdmora-forex__market-value {
        font-size: 20px;
    }


    .rdmora-forex__market-time {
        font-size: 7.5px;
    }


    .rdmora-forex__market-badge {
        font-size: 7px;
    }


    /* ------------------------------------------------------
       Result card
       ------------------------------------------------------ */

    .rdmora-forex__result {
        min-height: 278px;

        padding:
            18px
            16px
            16px;

        border-radius: 11px;
    }


    .rdmora-forex__result.is-filled {
        min-height: 330px;
    }


    .rdmora-forex__result-head {
        margin-bottom: 20px;
    }


    .rdmora-forex__result-label {
        font-size: 8.5px;
    }


    .rdmora-forex__result-icon {
        width: 30px;
        height: 30px;
    }


    .rdmora-forex__result-value,
    .rdmora-forex__result.is-filled
    .rdmora-forex__result-value {
        font-size:
            clamp(
                32px,
                10vw,
                39px
            );

        line-height: 1.04;
    }


    /* ------------------------------------------------------
       Profit chart
       ------------------------------------------------------ */

    .rdmora-forex__profit-chart {
        height: 72px;

        margin:
            13px 0
            16px;
    }


    .rdmora-forex__chart-line {
        stroke-width: 1.6;
    }


    /* ------------------------------------------------------
       Result details
       ------------------------------------------------------ */

    .rdmora-forex__result-details {
        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            );

        gap: 8px;

        padding:
            11px 0;
    }


    .rdmora-forex__result-details span {
        margin-bottom: 5px;

        font-size: 6.8px;
    }


    .rdmora-forex__result-details strong {
        font-size: 8.5px;
    }


    .rdmora-forex__result-meta {
        margin-top: 11px !important;

        font-size: 7.5px;
        line-height: 1.5;
    }


    .rdmora-forex__result-foot {
        margin-top: 14px !important;

        font-size: 7px;
    }


    /* ------------------------------------------------------
       Empty state
       ------------------------------------------------------ */

    .rdmora-forex__result:not(.is-filled)
    .rdmora-forex__result-empty {
        margin-top: 14px;

        font-size: 8px;
        line-height: 1.55;
    }


    /* ------------------------------------------------------
       Note below calculator
       ------------------------------------------------------ */

    .rdmora-forex__below-note {
        margin-top: 15px;

        font-size: 7.5px;
    }
}


/* Exact 390-ish phone width refinement */

@media (max-width: 420px) {

    .rdmora-forex__tab {
        padding-inline: 5px;
    }


    .rdmora-forex__tab-index {
        margin-inline-start: auto;
    }


    .rdmora-forex__form-main,
    .rdmora-forex__form-aside {
        padding-inline: 16px;
    }


    .rdmora-forex__result-value,
    .rdmora-forex__result.is-filled
    .rdmora-forex__result-value {
        letter-spacing: -.035em;
    }
}

