.candlestick-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="8.5" x2="25" y2="41.5"/> <rect fill="#{rgba($contentInverseColor,1)}" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x="20.842" y="17.146" width="8.316" height="15.708"/> </svg>');
}

.candlestick-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="8.5" x2="25" y2="41.5"/> <rect fill="#{rgba($primaryBrandColor,1)}" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" x="20.842" y="17.146" width="8.316" height="15.708"/> </svg>');
}

.chart_template-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"> <g fill="none" fill-rule="evenodd"> <rect width="20" height="20" fill="none"/> <g fill="#{rgba($primaryBrandColor,1)}" transform="translate(3 3)"> <path d="M4.05864772,10.5881597 L3.96565789,10.5881597 C1.90358816,10.5916328 0.184234309,8.96390779 0.0137311841,6.84684145 C-0.156771941,4.7297751 1.27867882,2.83239362 3.31310798,2.48571907 C4.29476577,0.740866197 6.20012412,-0.222868908 8.14053573,0.0439938228 C10.0809473,0.310856554 11.6741844,1.75574974 12.1771711,3.70478418 C13.9107218,3.99533956 15.1352245,5.6113735 14.9880145,7.4143868 C14.8408044,9.2174001 13.3714727,10.6000077 11.6151664,10.5881597 L11.5525941,10.5881597 L11.5525941,9.68122738 L11.5964329,9.68109808 C12.4888104,9.71384902 13.3303615,9.25365832 13.8040821,8.47387535 C14.2778026,7.69409239 14.3117231,6.71318475 13.8930661,5.90065085 C13.4744092,5.08811695 12.6667786,4.56740002 11.7744011,4.53464908 L11.4621762,4.51213337 L11.3997313,4.1904803 C11.0706846,2.4807448 9.72928238,1.17160096 8.05430581,0.925506607 C6.37932925,0.679412256 4.7361642,1.55005136 3.95629115,3.09685989 L3.8501347,3.30593438 L3.62221057,3.33166663 C1.99609499,3.53101612 0.800142372,4.99766193 0.890110859,6.68215272 C0.980079347,8.3666435 2.32500627,9.68926151 3.96253565,9.7036138 L4.05864772,9.70333032 L4.05864772,10.5881597 Z"/> <path d="M6.8034056 12.0588235L6.8034056 7.94117647 5.54953561 7.94117647 5.54953561 12.0588235 4.85294118 12.0588235 6.17647059 14.7058824 7.5 12.0588235 6.8034056 12.0588235zM8.63777091 8.82352941L9.89164089 8.82352941 9.89164089 13.2352941 8.63777091 13.2352941 8.63777091 8.82352941zM9.26470588 6.17647059L10.5882353 8.82352941 7.94117647 8.82352941 9.26470588 6.17647059z"/> </g> </g> </svg>');
}

.chart_template-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"> <g fill="none" fill-rule="evenodd"> <rect width="20" height="20" fill="none"/> <g fill="#{rgba($contentInverseColor,1)}" transform="translate(3 3)"> <path d="M4.05864772,10.5881597 L3.96565789,10.5881597 C1.90358816,10.5916328 0.184234309,8.96390779 0.0137311841,6.84684145 C-0.156771941,4.7297751 1.27867882,2.83239362 3.31310798,2.48571907 C4.29476577,0.740866197 6.20012412,-0.222868908 8.14053573,0.0439938228 C10.0809473,0.310856554 11.6741844,1.75574974 12.1771711,3.70478418 C13.9107218,3.99533956 15.1352245,5.6113735 14.9880145,7.4143868 C14.8408044,9.2174001 13.3714727,10.6000077 11.6151664,10.5881597 L11.5525941,10.5881597 L11.5525941,9.68122738 L11.5964329,9.68109808 C12.4888104,9.71384902 13.3303615,9.25365832 13.8040821,8.47387535 C14.2778026,7.69409239 14.3117231,6.71318475 13.8930661,5.90065085 C13.4744092,5.08811695 12.6667786,4.56740002 11.7744011,4.53464908 L11.4621762,4.51213337 L11.3997313,4.1904803 C11.0706846,2.4807448 9.72928238,1.17160096 8.05430581,0.925506607 C6.37932925,0.679412256 4.7361642,1.55005136 3.95629115,3.09685989 L3.8501347,3.30593438 L3.62221057,3.33166663 C1.99609499,3.53101612 0.800142372,4.99766193 0.890110859,6.68215272 C0.980079347,8.3666435 2.32500627,9.68926151 3.96253565,9.7036138 L4.05864772,9.70333032 L4.05864772,10.5881597 Z"/> <path d="M6.8034056 12.0588235L6.8034056 7.94117647 5.54953561 7.94117647 5.54953561 12.0588235 4.85294118 12.0588235 6.17647059 14.7058824 7.5 12.0588235 6.8034056 12.0588235zM8.63777091 8.82352941L9.89164089 8.82352941 9.89164089 13.2352941 8.63777091 13.2352941 8.63777091 8.82352941zM9.26470588 6.17647059L10.5882353 8.82352941 7.94117647 8.82352941 9.26470588 6.17647059z"/> </g> </g> </svg>');
}

.comparison-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="8.5" y1="12.65" x2="41.5" y2="12.65"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="16.69" y1="39.35" x2="33.31" y2="39.35"/> <circle fill="#{rgba($fillColor,1)}" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" cx="25" cy="12.65" r="2"/> <path fill="#{rgba($primaryBrandColor,1)}" d="M14,17.78l3.43,8.15a3.47,3.47,0,0,1-6.9,0L14,17.78m0-5.13L8.52,25.57A5.47,5.47,0,0,0,14,31h0a5.47,5.47,0,0,0,5.47-5.47L14,12.65Z"/> <path fill="#{rgba($primaryBrandColor,1)}" d="M19.46,25.57A5.47,5.47,0,0,1,14,31h0a5.47,5.47,0,0,1-5.47-5.47Z"/> <path fill="#{rgba($primaryBrandColor,1)}" d="M36,17.78l3.43,8.15a3.47,3.47,0,0,1-6.9,0L36,17.78m0-5.13-5.5,12.92A5.47,5.47,0,0,0,36,31h0a5.47,5.47,0,0,0,5.47-5.47L36,12.65Z"/> <path fill="#{rgba($primaryBrandColor,1)}" d="M41.48,25.57A5.47,5.47,0,0,1,36,31h0a5.47,5.47,0,0,1-5.47-5.47Z"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="14.65" x2="25" y2="39.35"/> </svg>');
}

.crosshair-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="8.5" y1="25" x2="20.095" y2="25"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="29.905" y1="25" x2="41.5" y2="25"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="8.5" x2="25" y2="20.095"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="29.905" x2="25" y2="41.5"/></svg>');
}

.dot-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <circle fill="#{rgba($primaryBrandColor,1)}" cx="25" cy="25" r="3.234"/> <circle fill="#{rgba($primaryBrandColor,1)}" cx="38.266" cy="25" r="3.234"/> <circle fill="#{rgba($primaryBrandColor,1)}" cx="11.734" cy="25" r="3.234"/></svg>');
}

.dot-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <circle fill="#{rgba($contentInverseColor,1)}" cx="25" cy="25" r="3.234"/> <circle fill="#{rgba($contentInverseColor,1)}" cx="38.266" cy="25" r="3.234"/> <circle fill="#{rgba($contentInverseColor,1)}" cx="11.734" cy="25" r="3.234"/></svg>');
}

.drawing-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"> <g fill="none" fill-rule="evenodd"> <rect width="20" height="20" fill="none"/> <path fill="#{rgba($primaryBrandColor,1)}" d="M4,13.4995206 L4,15.9995133 L6.49999276,15.9995133 L13.8724714,8.62703469 L11.3724786,6.12704193 L4,13.4995206 Z M15.8049658,6.69454028 C16.0643625,6.43489417 16.0643625,6.01418912 15.8049658,5.75454301 L14.2499703,4.19454753 C13.9903242,3.93515082 13.5696191,3.93515082 13.309973,4.19454753 L12.0849766,5.41454399 L14.5849693,7.91453675 L15.8049658,6.69454028 Z"/> </g> </svg>');
}

.drawing-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"> <g fill="none" fill-rule="evenodd"> <rect width="20" height="20" fill="none"/> <path fill="#{rgba($contentInverseColor,1)}" d="M4,13.4995206 L4,15.9995133 L6.49999276,15.9995133 L13.8724714,8.62703469 L11.3724786,6.12704193 L4,13.4995206 Z M15.8049658,6.69454028 C16.0643625,6.43489417 16.0643625,6.01418912 15.8049658,5.75454301 L14.2499703,4.19454753 C13.9903242,3.93515082 13.5696191,3.93515082 13.309973,4.19454753 L12.0849766,5.41454399 L14.5849693,7.91453675 L15.8049658,6.69454028 Z"/> </g> </svg>');
}

.indicator-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <polyline fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" points="7.14 16.68 18.02 7.5 31.84 19.3 42.86 10.75"/> <rect fill="#{rgba($primaryBrandColor,1)}" x="7.14" y="23.37" width="3.88" height="19.13"/> <rect fill="#{rgba($primaryBrandColor,1)}" x="15.1" y="15.67" width="3.88" height="26.83"/> <rect fill="#{rgba($primaryBrandColor,1)}" x="23.06" y="22.3" width="3.88" height="20.2"/> <rect fill="#{rgba($primaryBrandColor,1)}" x="31.02" y="26.8" width="3.88" height="15.7"/> <rect fill="#{rgba($primaryBrandColor,1)}" x="38.98" y="18.83" width="3.88" height="23.67"/></svg>');
}

.line-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="7.14" y1="25" x2="42.86" y2="25"/></svg>');
}

.line-w-icon {
    background-image: svg-url('<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="7.14" y1="25" x2="42.86" y2="25"/></svg>');
}

.linedot-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <circle fill="#{rgba($primaryBrandColor,1)}" cx="25" cy="25" r="3.234"/> <circle fill="#{rgba($primaryBrandColor,1)}" cx="38.266" cy="25" r="3.234"/> <circle fill="#{rgba($primaryBrandColor,1)}" cx="11.734" cy="25" r="3.234"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="11.734" y1="25" x2="38.266" y2="25"/></svg>');
}

.linedot-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <circle fill="#{rgba($contentInverseColor,1)}" cx="25" cy="25" r="3.234"/> <circle fill="#{rgba($contentInverseColor,1)}" cx="38.266" cy="25" r="3.234"/> <circle fill="#{rgba($contentInverseColor,1)}" cx="11.734" cy="25" r="3.234"/> <line fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="11.734" y1="25" x2="38.266" y2="25"/></svg>');
}

.ohlc-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="8.5" x2="25" y2="41.5"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="13.912" y1="14.403" x2="25" y2="14.403"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="35.597" x2="36.088" y2="35.597"/></svg>');
}

.ohlc-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <line fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="8.5" x2="25" y2="41.5"/> <line fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="13.912" y1="14.403" x2="25" y2="14.403"/> <line fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="25" y1="35.597" x2="36.088" y2="35.597"/></svg>');
}

.share-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <polyline fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" points="34.17 35.82 15.83 25 34.17 14.18"/> <circle fill="#{rgba($primaryBrandColor,1)}" cx="15.83" cy="25" r="3.5"/> <circle fill="#{rgba($primaryBrandColor,1)}" cx="34.17" cy="14.18" r="3.5"/> <circle fill="#{rgba($primaryBrandColor,1)}" cx="34.17" cy="35.82" r="3.5"/></svg>');
}

.share-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <polyline fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" points="34.17 35.82 15.83 25 34.17 14.18"/> <circle fill="#{rgba($contentInverseColor,1)}" cx="15.83" cy="25" r="3.5"/> <circle fill="#{rgba($contentInverseColor,1)}" cx="34.17" cy="14.18" r="3.5"/> <circle fill="#{rgba($contentInverseColor,1)}" cx="34.17" cy="35.82" r="3.5"/></svg>');
}

.spline-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <path fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" d="M8.5,23.733l3-3.559a6.468,6.468,0,0,1,10.52.9l4.619,7.862a6.468,6.468,0,0,0,10.858.458l4-5.656"/></svg>');
}

.spline-w-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <path fill="none" stroke="#{rgba($contentInverseColor,1)}" stroke-miterlimit="10" stroke-width="2" d="M8.5,23.733l3-3.559a6.468,6.468,0,0,1,10.52.9l4.619,7.862a6.468,6.468,0,0,0,10.858.458l4-5.656"/></svg>');
}

.table-icon {
    background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 50 50"> <rect fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x="8.5" y="8.5" width="33" height="33"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="8.5" y1="19.5" x2="41.5" y2="19.5"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="8.5" y1="30.5" x2="41.5" y2="30.5"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="19.5" y1="41.5" x2="19.5" y2="8.5"/> <line fill="none" stroke="#{rgba($primaryBrandColor,1)}" stroke-miterlimit="10" stroke-width="2" x1="30.5" y1="41.5" x2="30.5" y2="8.5"/> </svg>');
}

/*
 * contract type icons with specified color
 */
$contract_icons: (
    calle:        '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><polygon fill="__COLOR__" points="13.53 26.93 5.34 18.75 0 18.75 0 36 36 36 36 18.75 21.71 18.75 13.53 26.93"/><polygon fill="__COLOR__" points="17.79 18.75 9.27 18.75 13.53 23.01 17.79 18.75"/><polygon fill="__COLOR__" points="0 0 0 17.25 4.47 17.25 6.12 15.6 7.77 17.25 19.29 17.25 27.06 9.48 22.67 9.48 25.45 6.7 31.77 6.7 31.77 13.08 28.99 15.86 28.99 11.47 23.21 17.25 36 17.25 36 0 0 0"/></svg>',
    put:          '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><polygon fill="__COLOR__" points="13.53 9.06 5.34 17.25 0 17.25 0 0 36 0 36 17.25 21.71 17.25 13.53 9.06"/><polygon fill="__COLOR__" points="17.79 17.25 9.27 17.25 13.53 12.99 17.79 17.25"/><polygon fill="__COLOR__" points="0 36 0 18.75 4.47 18.75 6.12 20.4 7.77 18.75 19.29 18.75 27.06 26.52 22.67 26.52 25.45 29.3 31.77 29.3 31.77 22.92 28.99 20.14 28.99 24.53 23.21 18.75 36 18.75 36 36 0 36"/></svg>',
    onetouch:     '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><polygon fill="__COLOR__" points="12.63 29.18 8.45 25.01 14.71 18.75 16.21 17.25 23.82 9.64 18.79 9.64 21.41 7.02 0 7.02 0 17.25 0 18.75 0 36 9.54 36 7.68 34.13 12.63 29.18"/><polygon fill="__COLOR__" points="28.32 14.05 25.68 16.69 25.68 11.51 19.94 17.25 18.44 18.75 12.18 25.01 16.36 29.18 9.54 36 36 36 36 18.75 36 17.25 36 7.02 28.32 7.02 28.32 14.05"/><rect fill="__COLOR__" width="36" height="5.52"/></svg>',
    notouch:      '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><rect fill="__COLOR__" y="31.75" width="36" height="4.25"/><path fill="__COLOR__" d="M0,0V30.25H36V0ZM34.17,24.27l-2.45,2.45v-4.5l-6,6L10.76,13.32,8.13,15.95,2.42,10.23,4.15,8.5l4,4,2.63-2.63L25.69,24.79l4.47-4.47h-5l2.45-2.45h6.55Z"/></svg>',
    expiryrangee: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><rect fill="__COLOR__" y="26.46" width="36" height="9.54"/><rect fill="__COLOR__" width="36" height="10.21"/><polygon fill="__COLOR__" points="31.61 22.95 28.22 22.95 31.44 19.73 27.49 19.73 27.46 17.75 27.49 17.33 31.67 17.33 28.32 13.97 31.72 13.97 36 18.26 36 11.81 0 11.81 0 24.86 36 24.86 36 18.56 31.61 22.95"/></svg>',
    expirymiss:   '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><rect fill="__COLOR__" y="11.81" width="36" height="13.05"/><rect fill="__COLOR__" y="26.46" width="36" height="9.54"/><polygon fill="__COLOR__" points="31.61 9.7 28.22 9.7 31.44 6.47 27.49 6.47 27.46 4.5 27.49 4.08 31.67 4.08 28.32 0.72 31.72 0.72 36 5.01 36 0 0 0 0 10.21 36 10.21 36 5.31 31.61 9.7"/></svg>',
    range:        '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><path fill="__COLOR__" d="M0,24.86H36v-13H0Zm1.72-6H5.58L10,12.12l5.25,7.76L20.64,13l4.72,5.33h4.19L26.2,15h3.39L34,19.41l-4.54,4.54H26.1l3.22-3.22h-5l-3.52-4L15.16,24l-5.1-7.54L6.87,21.25H1.72Z"/><rect fill="__COLOR__" y="26.46" width="36" height="9.54"/><rect fill="__COLOR__" width="36" height="10.21"/></svg>',
    upordown:     '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36"><polygon fill="__COLOR__" points="23.62 11.81 12.62 11.81 17.98 21.96 23.62 11.81"/><polygon fill="__COLOR__" points="29.57 6.07 27.3 10.14 30.87 10.14 29.57 6.07"/><polygon fill="__COLOR__" points="10.85 8.45 11.74 10.14 24.56 10.14 27.32 5.17 23.13 6.51 24.69 3.49 30.66 1.59 32.61 7.7 31.35 10.14 36 10.14 36 0 0 0 0 10.14 9.92 10.14 10.85 8.45"/><polygon fill="__COLOR__" points="17.92 26.99 17.12 25.48 0 25.48 0 36 36 36 36 25.48 18.77 25.48 17.92 26.99"/><polygon fill="__COLOR__" points="36 11.81 26.37 11.81 19.69 23.81 36 23.81 36 11.81"/><polygon fill="__COLOR__" points="10.8 13.5 6.81 20.73 1.6 20.73 1.6 18.32 5.39 18.32 8.99 11.81 0 11.81 0 23.81 16.25 23.81 10.8 13.5"/></svg>',
    mb_calle:     '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="36" height="36"><polygon fill="__COLOR__" points="6.28 27.11 4.64 25.47 13.45 16.67 0 16.67 0 32 32 32 32 16.67 16.72 16.67 6.28 27.11"/><polygon fill="__COLOR__" points="0 0 0 15.33 14.78 15.33 22.91 7.21 18.55 7.21 20.86 4.89 26.92 4.89 26.92 11.08 24.61 13.4 24.61 8.78 18.05 15.33 32 15.33 32 0 0 0"/></svg>',
    mb_put:       '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="36" height="36"><polygon fill="__COLOR__" points="6.28 4.89 4.64 6.53 13.45 15.33 0 15.33 0 0 32 0 32 15.33 16.72 15.33 6.28 4.89"/><polygon fill="__COLOR__" points="0 32 0 16.67 14.78 16.67 22.91 24.79 18.55 24.79 20.86 27.11 26.92 27.11 26.92 20.92 24.6 18.6 24.6 23.22 18.05 16.67 32 16.67 32 32 0 32"/></svg>',
);

@function contract-icon($type, $color: $lightBlue) {
    $svg: str-replace(map_get($contract_icons, $type), '__COLOR__', #{rgba($color, 1)});
    @return svg-url($svg);
}

.contract-type {
    &.CALLE {
        background-image: contract-icon('calle');
    }
    &.CALLE.negative-color {
        background-image: contract-icon('calle', $negativeColor);
    }
    &.PUT {
        background-image: contract-icon('put');
    }
    &.PUT.negative-color {
        background-image: contract-icon('put', $negativeColor);
    }
    &.ONETOUCH {
        background-image: contract-icon('onetouch');
    }
    &.NOTOUCH {
        background-image: contract-icon('notouch');
    }
    &.NOTOUCH.negative-color {
        background-image: contract-icon('notouch', $negativeColor);
    }
    &.EXPIRYRANGEE {
        background-image: contract-icon('expiryrangee');
    }
    &.EXPIRYMISS {
        background-image: contract-icon('expirymiss');
    }
    &.EXPIRYMISS.negative-color {
        background-image: contract-icon('expirymiss', $negativeColor);
    }
    &.RANGE {
        background-image: contract-icon('range');
    }
    &.UPORDOWN {
        background-image: contract-icon('upordown');
    }
    &.UPORDOWN.negative-color {
        background-image: contract-icon('upordown', $negativeColor);
    }
}

.mb-trading-wrapper .contract-type {
    &.CALLE {
        background-image: contract-icon('mb_calle');
    }
    &.CALLE.negative-color {
        background-image: contract-icon('mb_calle', $negativeColor);
    }
    &.PUT {
        background-image: contract-icon('mb_put');
    }
    &.PUT.negative-color {
        background-image: contract-icon('mb_put', $negativeColor);
    }
}
