@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

.isc-root .isc-ticker {
    position: relative;
    width: 100%;
    overflow: hidden;
    direction: ltr;
}

.isc-root .isc-ticker .isc-track {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    will-change: transform;
}

@keyframes isc-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-1 * var(--isc-width)), 0, 0); }
}

@keyframes isc-scroll-rtl {
    0% { transform: translate3d(calc(-1 * var(--isc-width)), 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.isc-track.isc-animate {
    animation: isc-scroll var(--isc-duration) linear infinite;
}

html[dir="rtl"] .isc-track.isc-animate {
    animation: isc-scroll-rtl var(--isc-duration) linear infinite;
}

.isc-ticker:hover .isc-track {
    animation-play-state: paused;
}

.isc-root .isc-card {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 0 0 350px;
    width: 350px;
    box-sizing: border-box;
    padding: 10px;
    background: #222;
    border-radius: 10px;
}

html[dir="rtl"] .isc-root .isc-card {
    direction: rtl;
}

.isc-root .isc-card .isc-card__left .isc-card__positive,
.isc-root .isc-card .isc-card__left .isc-card__negative {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.isc-root .isc-card .isc-card__left .isc-card__positive {
    background: rgba(0, 195, 55, 0.30);
}

.isc-root .isc-card .isc-card__left .isc-card__negative {
    background: rgba(237, 28, 36, 0.30);
}

.isc-root .isc-card .isc-card__center {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
}

.isc-root .isc-card .isc-card__center .isc-card__symbol {
    margin: 0;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.isc-root .isc-card .isc-card__center .isc-card__symbol a {
    color: #F5F5F7;
    text-decoration: none;
}

.isc-root .isc-card .isc-card__center .isc-card__data {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.isc-root .isc-card .isc-card__center .isc-card__data .isc-card__bid,
.isc-root .isc-card .isc-card__center .isc-card__data .isc-card__data-separator,
.isc-root .isc-card .isc-card__center .isc-card__data .isc-card__change {
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #D4DEE7;
    line-height: 1.2;
}

.isc-root .isc-card .isc-card__right {
    margin-left: auto;
}

html[dir="rtl"] .isc-root .isc-card .isc-card__right {
    margin-left: 0;
    margin-right: auto;
}

.isc-root .isc-card .isc-card__right .isc-card__button {
    padding: 10px 15px;
    display: inline-block;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #fff;
    background: #00C337;
    line-height: 1.2;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.isc-root .isc-card .isc-card__right .isc-card__button:hover {
    background: #00A32E;
}

/* STOCK TABLE STYLES */
.ist-root .ist-search-container {
    text-align: right;
}

html[dir="rtl"] .ist-root .ist-search-container {
    text-align: left;
}

.ist-root .ist-search-container .ist-search {
	text-align: center !important;
    margin: 0 !important;
    max-width: 262px;
    width: 100%;
    height: 48px !important;
    padding: 12px !important;
    font-size: 18px !important;
    font-family: 'Inter', arial, sans-serif !important;
    font-weight: 400 !important;
    color: #828282 !important;
    line-height: 24px !important;
    background: #FFF !important;
    border: 1px solid #828282 !important;
    border-radius: 4px !important;
    outline: none !important;
}

.ist-root .ist-table-container {
    margin: 76px 0 50px 0;
}

.ist-root .ist-table-container .ist-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ist-root .ist-table-container .ist-table th,
.ist-root .ist-table-container .ist-table td {
    text-align: center;
    padding: 16px 14px;
    border: none;
    border-bottom: 1px solid #D4DEE7;
}

.ist-root .ist-table-container .ist-table tbody tr:hover {
    background: #F4F7FB;
}

.ist-root .ist-table-container .ist-table tbody tr:last-child td {
    border-bottom: none;
}

.ist-root .ist-table-container .ist-table thead tr th {
    font-size: 16px !important;
    font-family: 'Inter', arial, sans-serif !important;
    font-weight: 500 !important;
    color: #222 !important;
    line-height: 26px !important;
}

.ist-root .ist-table-container .ist-table thead tr th:first-child,
.ist-root .ist-table-container .ist-table tbody tr td:first-child {
    text-align: left;
}

.ist-root .ist-table-container .ist-table tbody tr td {
    font-size: 16px !important;
    font-family: 'Inter', arial, sans-serif !important;
    font-weight: 400 !important;
    color: #2F2C2B !important;
    line-height: 24px !important;
}

.ist-root .ist-table-container .ist-table tbody tr td.ist-symbol span {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
}

.ist-root .ist-table-container .ist-table tbody tr td.ist-symbol a {
    color: #2F2C2B !important;
    cursor: pointer;
}

.ist-root .ist-table-container .ist-table tbody tr td.ist-symbol .ist-fullname {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
}

.ist-root .ist-table-container .ist-table tbody tr td.ist-symbol .ist-fullname a {
    color: #767676 !important;
}

.ist-root .ist-table-container .ist-table .ist-buy.positive,
.ist-root .ist-table-container .ist-table .ist-sell.positive {
    color: #00C337 !important;
}

.ist-root .ist-table-container .ist-table .ist-buy.negative,
.ist-root .ist-table-container .ist-table .ist-sell.negative {
    color: #F0474E !important;
}

.ist-root .ist-no-results {
	text-align: center;
	font-size: 16px !important;
    font-family: 'Inter', arial, sans-serif !important;
    font-weight: 500 !important;
    color: #222 !important;
    line-height: 26px !important;
}

.ist-root .ist-toggle-container {
    text-align: center;
}

.ist-root .ist-toggle-container .ist-toggle {
    position: relative;
    font-size: 18px;
    font-family: 'Inter', arial, sans-serif;
    font-weight: 600;
    color: #0A4FFF;
    line-height: 24px;
    cursor: pointer;
}

.ist-root .ist-toggle-container .ist-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    right: -34px;
    width: 24px;
    height: 24px;
    background: url('./assets/chevron-down.svg') no-repeat center;
    background-size: contain;
}

.ist-root .ist-toggle-container .ist-toggle.expanded::after {
    top: -2px;
    transform: rotate(180deg);
}

.ist-root .symbol-short-description {
	font-size: 12px !important;
    font-family: 'Inter', arial, sans-serif !important;
    font-weight: 400 !important;
    color: #767676 !important;
    line-height: 18px !important;
}

@media screen and (max-width: 767px) {
    .ist-root .ist-search-container {
        text-align: center;
    }
	
	.ist-root .ist-search-container .ist-search {
		padding: 10px 12px !important;
	}

    .ist-root .ist-table-container {
        margin: 70px 0;
    }

    .ist-root .ist-table-container .ist-table colgroup col {
        width: 25% !important;
    }

    .ist-root .ist-table-container .ist-table tbody tr td.ist-symbol .ist-fullname {
        display: none;
    }
}

html[dir="rtl"] .ist-root .ist-table-container .ist-table thead tr th:first-child,
html[dir="rtl"] .ist-root .ist-table-container .ist-table tbody tr td:first-child {
    text-align: right;
}

html[dir="rtl"] .ist-root .ist-table-container .ist-table tbody tr td:not(:first-child) {
    direction: ltr; /* Force numbers to display LTR */
    text-align: center; /* Helper to keep them centered if needed */
}

/* LIVE PRICE & CHART WIDGET STYLES */

[data-id="d88d803"],
[data-id="5010b5d"] {
    display: none !important;
}

.live-price-widget * {
    margin: 0;
    padding: 0;
    font-family: inherit;
}

.live-price-widget__header {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #D4DEE7;
    display: flex;
    align-items: flex-end;
}

.live-price-widget__header h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    margin-right: 15px;
}

.live-price-widget__header small {
    font-size: 20px;
    line-height: 26px;
    font-weight: 500;
    margin-right: 10px;
}

.live-price-widget__boxes {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #D4DEE7;
    position: relative;
}

.live-price-box__container {
    flex: 1;
}

.live-price-box__container p {
    display: flex;
}

.live-price-box__container p span {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-price-box {
    color: #fff;
    padding: 13px 20px;
    position: relative;
}

.live-price-box>a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.live-price-box h3 {
    font-size: 16px;
    line-height: 26px;
    color: #fff;
    font-weight: 400;
}

.live-price-box--sell {
    background-color: #a8b6c3;
    border-radius: 8px 0 0 8px;
}

.live-price-box--buy {
    background-color: #a8b6c3;
    border-radius: 0 8px 8px 0;
}

.live-price-box-daily-metrics,
.live-price-widget__last-update {
    font-size: 12px;
    color: #828282;
    line-height: 26px;
}

.live-price-box-daily-metrics {
    margin: 10px 0;
}

.live-price-spread-circle {
    position: absolute;
    top: calc(50% - 26px);
    left: 50%;
    transform: translate(-50%, calc(50% - 26px));
    z-index: 2;
    background-color: #fff;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    color: #222;
}

/* Chart Styles */
.tv-lightweight-charts table tr:first-child td:nth-child(2) canvas:first-child {
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-bottom: none;
    border-right: none;
}

.ifx-chart-container td {
    border: none !important;
}

.chart-style-buttons li a {
    color: #000;
}

.chart-buttons {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.chart-header {
    display: flex;
	justify-content: space-between !important;
    align-items: center;
	justify-content: end;
}

.chart-header h3 {
	color: #222;
	font-family: 'Inter', arial, sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 32px;
}

body .chart-header a {
    color: #0A4FFF !important;
    text-decoration: underline !important;
}

.chart-header a .chart-icon {
	padding-left: 8px;
}

.chart-buttons ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 30px;
}

.chart-buttons ul li {
    display: inline-flex;
}

.chart-buttons ul li a {
    display: inline-flex;
    padding: 0 14px;
    border-radius: 100px;
    border: 1px solid #D4DEE7;
    font-size: 16px;
    font-weight: 500;
    height: 30px;
    align-items: center;
    line-height: 1;
}

.chart-buttons ul li a:hover,
.chart-buttons ul li a.active {
    background-color: #222;
    color: #fff;
    cursor: pointer;
}

.chart-style-buttons {
    border-radius: 100px;
    overflow: hidden;
    -webkit-box-shadow: inset 0px 0px 0px 1px #D4DEE7;
    -moz-box-shadow: inset 0px 0px 0px 1px #D4DEE7;
    box-shadow: inset 0px 0px 0px 1px #D4DEE7;
}

.chart-style-buttons>li {
    display: flex;
}

.chart-style-buttons>li:first-child {
    overflow: hidden;
}

.chart-style-buttons>li:last-child {
    overflow: hidden;
}

#chartDefault {
    border: none;
}

#chartLines {
    border: none;
}

.chart-tooltip {
    background-color: #222222D9;
    color: #fff;
    backdrop-filter: blur(4px);
}

.tooltip-text {
    color: #D4DEE7;
}

.tooltip-text strong {
    color: #fff;
}

.chart-tooltip-date {
    font-size: 10px;
    color: #D4DEE7;
    margin-bottom: 5px;
}

.chart-notice {
    text-align: right;
    color: #828282;
    font-size: 14px;
    margin-top: 22px;
}

.chart-title {
    font-weight: 600;
    font-size: 28px;
	line-height: 32px;
}

.ifx-symbol-description-container {
    text-align: center;
    background: #000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(34, 34, 34, 1) 100%);
    padding: 80px 0;
}

.ifx-symbol-description__content {
    max-width: var(--content-width);
    margin: 0 auto;
}

.ifx-symbol-description-container h2 {
    font-weight: 600;
    font-size: 40px;
    line-height: 50px;
    color: #e6e6e6;
    margin-bottom: 30px;
}

.ifx-symbol-description-text {
    color: #e6e6e6;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
}

.ifx-symbol-description-table {
    max-width: var(--content-width);
    margin: 0 auto;
}

.ifx-symbol-description-table>h3 {
    text-align: center;
    font-weight: 600;
    font-size: 40px;
    line-height: 50px;
    letter-spacing: 0;
    margin-bottom: 50px;
}

.trading-conditions-table__left-group {
    margin-bottom: 40px;
}

.trading-conditions-table__left-group-header {
    margin-bottom: 25px;
}

.trading-conditions-table__left-group-header h3 {
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0;
}

.trading-conditions-table__left-group-content-item {
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    border-bottom: 1px solid #D4DEE7;
    padding: 15px 0;
}

.trading-conditions-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 130px;
}

.trading-conditions-table__left,
.trading-conditions-table__right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media screen and (max-width: 767px) {
    .trading-conditions-table {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trading-conditions-table__left,
    .trading-conditions-table__right {
        gap: 0;
    }

    .ifx-symbol-description-table>h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .chart-buttons {
        width: 100%;
        align-items: flex-start;
    }

    .chart-buttons>ul {
        flex-wrap: wrap;
        flex: 1;
        gap: 10px;
        max-width: 60%;
        height: auto;
    }

    ul.chart-style-buttons {
        max-width: 95px;
        gap: 0;
    }
}


.ifx-chart__container {
    position: relative;
}



.lds-dual-ring,
.lds-dual-ring:after {
    box-sizing: border-box;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6.4px solid currentColor;
    border-color: currentColor transparent currentColor transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all ease-in-out 250ms;
    z-index: 10;
	color: #ff0000;
}

.loader-wrapper.active {
    opacity: 1;
    pointer-events: all;
}

/* Market Hours Styles */
.live-price-widget__market-hours {
    margin-top: 30px;
}

.market-hours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.market-hours-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.market-hours-status {
    font-size: 14px;
    font-weight: 600;
    color: #00C337;
}

.market-hours-schedule {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.market-hours-row {
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 26px;
    padding: 3px 0;
}

.market-hours-time {
    flex: 1;
    font-weight: 400;
    color: #222;
	font-size: 16px;
    line-height: 26px;
}

.market-hours-time.closed {
    color: #828282;
}

.market-hours-note {
    margin-top: 10px;
}

.market-hours-note p {
	font-size: 14px;
	color: #222;
	line-height: 26px;
    margin: 18px 0 0 0;
	padding-bottom: 20px;
	border-bottom: 1px solid #D4DEE7;
}

@media screen and (max-width: 767px) {
    .market-hours-time {
        font-size: 12px;
    }

    .market-hours-header h3 {
        font-size: 18px;
    }

    .market-hours-row {
        padding: 4px 0;
    }
}

.ws-loader-wrapper {
	display: flex;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 0.9);
	z-index: 10;
	color: #ff0000;
}

/* Hide posts grid */
[data-elementor-type="wp-post"][data-elementor-post-type="markets"] > div:last-child {
	display: none;
}


html[dir="rtl"] .live-price-widget__boxes {
	flex-direction: row-reverse;
}

html[dir="rtl"] #view-all-link .chart-icon {
	display: inline-flex;
	transform: rotate(180deg);
}
