/* RoboForex promo. Every selector and custom property belongs to this component. */
.promo-broker {
    --promo-broker-navy: #061c36;
    --promo-broker-white: #fff;
    --promo-broker-green: #61ca6f;
    --promo-broker-green-hover: #7ddc89;
    --promo-broker-radius: 14px;
    --promo-broker-button-radius: 10px;
    --promo-broker-shadow: 0 10px 28px rgb(7 28 54 / 12%);

    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    min-height: 550px;
    padding: 20px;
    border-radius: var(--promo-broker-radius);
    background: var(--promo-broker-navy);
    box-shadow: var(--promo-broker-shadow);
    color: var(--promo-broker-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    container: promo-broker / inline-size;
}

.promo-broker__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 100%;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.promo-broker__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 510px;
}

.promo-broker__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-broker__logo-icon {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    max-width: none;
    height: 30px;
    border: 0;
    object-fit: contain;
}

.promo-broker__logo-text {
    margin: 0;
    padding: 0;
    color: var(--promo-broker-white);
    font: 700 24px / 1.25 Arial, Helvetica, sans-serif;
}

.promo-broker__title {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
    color: var(--promo-broker-white);
    font: 700 19px / 1.25 Arial, Helvetica, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    text-wrap: balance;
}

.promo-broker__title-top,
.promo-broker__title-bottom {
    display: block;
}

.promo-broker__title-bottom {
    color: var(--promo-broker-green);
}

.promo-broker__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.promo-broker__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: var(--promo-broker-white);
}

.promo-broker__feature-icon {
    display: flex;
    box-sizing: border-box;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--promo-broker-green);
    border-radius: 50%;
}

.promo-broker__icon {
    display: block;
    width: 16px;
    max-width: none;
    height: 16px;
    border: 0;
    object-fit: contain;
}

.promo-broker__icon--execution {
    width: 20px;
    height: 20px;
}

.promo-broker__icon--spread {
    width: 14px;
    height: 14px;
}

.promo-broker__feature-text {
    min-width: 0;
    color: var(--promo-broker-white);
    font: 600 14px / 1.2 Arial, Helvetica, sans-serif;
    overflow-wrap: break-word;
}

/* Reserve a separate area for the original transparent images. */
.promo-broker__artwork {
    position: relative;
    flex: 1 0 180px;
    min-height: 180px;
    margin-top: 10px;
    pointer-events: none;
}

.promo-broker__laptop {
    position: absolute;
    right: -20px;
    bottom: -35px;
    display: block;
    width: min(250px, calc(100% + 20px));
    max-width: none;
    height: auto;
    border: 0;
}

.promo-broker__emblem {
    position: absolute;
    bottom: 15px;
    left: 0;
    display: block;
    width: 100px;
    max-width: none;
    height: auto;
    border: 0;
}

.promo-broker__button {
    position: relative;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: calc(100% - 20px);
    min-height: 44px;
    margin: 10px 0 0;
    padding: 10px 16px;
    border: 0;
    border-radius: var(--promo-broker-button-radius);
    background: var(--promo-broker-green);
    color: var(--promo-broker-navy);
    box-shadow: none;
    font: 700 16px / 1.3 Arial, Helvetica, sans-serif;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.promo-broker__button:visited {
    color: var(--promo-broker-navy);
}

.promo-broker__button:hover {
    background: var(--promo-broker-green-hover);
    color: var(--promo-broker-navy);
    text-decoration: none;
}

.promo-broker__button:focus-visible {
    outline: 3px solid var(--promo-broker-white);
    outline-offset: 3px;
}

.promo-broker__button:active {
    transform: translateY(1px);
}

@container promo-broker (max-width: 220px) {
    .promo-broker__title {
        font-size: 18px;
    }

    .promo-broker__feature-text {
        font-size: 13px;
    }

    .promo-broker__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-broker__button {
        transition: none;
    }
}
