/**
 * @author      Aphagon Phromdesarn <aphagon@gmail.com>
 * @copyright   2024 Aphagon
 * @date        17-08-2024
 */

.forex-cross-main {
    width: 100%;
    height: auto;
    display: block;
    overflow: auto;
}
.forex-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    overflow: hidden;
    text-align: center;
    font-family: sans-serif;
    font-size: 14px;
}

.forex-table td,
.forex-table th {
    padding: 0;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    white-space: nowrap;
}

.forex-table td:hover {
    background-color: #ececec;
}

.forex-table td a {
    display: block;
    padding: 0.75rem 0.3rem;
    color: #333;
    text-decoration: none;
}

.forex-table .pair-empty {
    background-color: #ececec;
    cursor: default;
}

.forex-table .cross-heading {
    min-width: 70px;
    padding: 0.75rem 0.3rem;
}

.forex-table--bordered td,
.forex-table--bordered th {
    border: 1px solid #dee2e6;
}

.forex-table--bordered tr:first-child td,
.forex-table--bordered tr:first-child th {
    border-bottom: unset;
}

.forex-table--bordered td:first-child,
.forex-table--bordered th:first-child {
    border-right: unset;
}

.circle-flag {
    display: inline-block;
    position: relative;
    width: 20px;
    margin-right: 5px;
}

.circle-flag img {
    border-radius: 50% !important;
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ffffff;
}

.circle-flag--single {
    width: 20px;
    margin-right: 3px;
}

.circle-flag--single img {
    top: -16px;
}

.circle-flag--medium img {
    width: 18px;
    height: 18px;
}

.circle-flag img:last-child {
    bottom: 0;
    right: 0;
    top: -8px;
}

.circle-flag img:first-child {
    top: -16px;
    border: 1px solid #dee2e6;
    z-index: 1;
}

/********************************
******** Market Map ************
********************************/
.forex-market-map *,
.forex-market-map:after,
.forex-market-map:before {
    box-sizing: border-box;
}

.forex-market-map {
    font-size: 11px;
    /* font-size: 13px; */
    /* font-family: Noto Sans, sans-serif; */
    line-height: 1rem;
}

.forex-market-map-row {
    display: flex;
    position: relative;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.forex-market-map-row__column {
    flex: 1 1 12.5%;
    flex-direction: column;
    min-height: 290px;
}

.forex-market-map-row__column-cell {
    border: 1px solid #ccc;
    color: #fff;
    height: 40px;
    margin: 2px;
    padding: 5px;
    visibility: visible;
}

.forex-market-map-positive .forex-market-map-row__column-cell {
    background-color: #064810;
}

.forex-market-map-negative .forex-market-map-row__column-cell {
    background-color: #640000;
}

.forex-market-map.-cell-hovered
    .forex-market-map-row__column-cell:not(.-active):not(.-current) {
    background-color: #555;
}

.forex-market-map-row__column-cell.-current {
    background-color: #fff;
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    /* background-image: url('https://traderider.com/forex/wp-content/plugins/traderider-fx/assets/xau-icon.png'); */
    background-position: center;
    background-size: 24px;
    background-repeat: no-repeat;
}

.forex-market-map-row__column-cell a,
.forex-market-map-row__column-cell a:hover,
.forex-market-map-row__column-cell a:visited {
    color: #fff;
    display: block;
    height: 100%;
    line-height: inherit;
    text-decoration: none;
}

.forex-market-map-hide-for-small-only,
.forex-market-map-show-for-medium-up {
    padding-right: 3px;
}

.forex-market-map-hide-for-medium-only,
.forex-market-map-hide-for-small-only {
    display: inherit;
}

.forex-market-map-hide,
.forex-market-map-hide-for-medium-up,
.forex-market-map-show-for-small-only {
    display: none;
}

.forex-market-map-data {
    display: block;
}

.forex-market-map-data.text-right {
    float: right;
}

.text-right {
    text-align: right;
}

/********************************
******** Gold Today ************
********************************/
.forex-gold-today {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-image: url(./bg-gold-today.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    padding: 24px;
    font-family: "Kanit", Helvetica, Arial, sans-serif;
}

.forex-gold-today__text h2 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 0px 0px 5px;
    padding: 0px;
}

.forex-gold-today__text p {
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    margin: 0px;
    padding: 0px;
}

.forex-gold-today__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

.forex-gold-today__title {
    font-size: 44px;
    color: #f5d156;
    margin: 0px 0px 20px;
    padding: 0px;
}

.forex-gold-today__change {
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.forex-gold-today__change h2 {
    font-size: 64px;
    text-align: center;
    margin: 0px;
    padding: 0px;
}

.forex-gold-today__change p {
    font-size: 20px;
    text-align: center;
    margin: 0px;
    padding: 0px;
}

.forex-gold-today__change-mobile {
    display: none;
    border-radius: 4px;
    width: 100%;
    margin-top: 4px;
}

.forex-gold-today__change,
.forex-gold-today__change.gold-change-up,
.forex-gold-today__change-mobile,
.forex-gold-today__change-mobile.gold-change-up {
    background-color: #004d03;
    background-image: linear-gradient(to bottom, #019f07, #004d03);
}

.forex-gold-today__change.gold-change-down,
.forex-gold-today__change-mobile.gold-change-down {
    background-color: #580101;
    background-image: linear-gradient(to bottom, #c30303, #580101);
}

.forex-gold-today__change-mobile h2 {
    width: 100%;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0;
    padding: 0 8px;
}

.forex-gold-today__change-mobile-number {
    font-size: 28px;
    margin-left: 10px;
}

.forex-gold-today__body {
    width: 100%;
    display: grid;
    gap: 4px;
    grid-template-columns: calc(50% - 2px) calc(50% - 2px);
    overflow: hidden;
}

.forex-gold-today__body-item h3 {
    font-size: 24px;
    margin: 0px 0px 10px;
    padding: 0px;
    background: #ff9900;
    background: linear-gradient(to right, #ff9900 0%, #ffc500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#ThongkhamThaeng,
#ThongRupphan,
#ThongRupphanChange {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    overflow: hidden;
}

#ThongRupphanChange {
    display: none;
}

.forex-gold-today__body-table {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 8px;
    width: 100%;
}

.forex-gold-today__body-table table {
    margin: 0;
}

.forex-gold-today__body-table table thead tr {
    background-color: #005ac3;
    background-image: linear-gradient(to right, #002551, #005ac3);
}

.forex-gold-today__body-table table thead tr th {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 8px;
    text-wrap: nowrap;
}

.forex-gold-today__body-table table thead:first-child tr:first-child td,
.forex-gold-today__body-table table thead:first-child tr:first-child th {
    border-block-start: 0px;
}

.forex-gold-today__body-table table th,
.forex-gold-today__body-table table td {
    text-align: center;
    text-wrap: nowrap;
    border: 0px;
    color: #002551;
}

.forex-gold-today__body-table table td.gold-change-up {
    color: #019f07;
}

.forex-gold-today__body-table table td.gold-change-down {
    color: #ff0000;
}

.forex-gold-today__body-table table td.gold-no-change {
    color: #002551;
}

.forex-gold-today__body-table table > tbody > tr:nth-child(odd) > td {
    background-color: #fef9ea;
}

.forex-gold-today__body-table table > tbody > tr:nth-child(even) > td {
    background-color: #ffeaa4;
}

.forex-gold-today__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 16px;
}

.forex-gold-today__history {
    display: flex;
    flex-direction: column;
}

.forex-gold-today__history .forex-gold-today__text {
    text-align: right;
    margin-bottom: 8px;
}

.forex-gold-today__form {
    display: flex;
    flex-direction: row;
}

.forex-gold-today__form-group {
    display: flex;
    align-items: center;
    padding: 4px;
}

.forex-gold-today__form-group button[type="button"] svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.forex-gold-today__form-group button[type="button"]:hover {
    background-color: #005ac3;
    color: #f2f2f2;
}

.forex-gold-today__form-group button[type="button"] {
    display: flex;
    background-color: #f2f2f2;
    color: #000;
    align-items: center;
    border-radius: 4px;
    border: 0px;
    font-size: 14px;
    font-weight: 400;
    font-family: "Kanit", Helvetica, Arial, sans-serif;
}

.forex-gold-today__form-label {
    text-wrap: nowrap;
    margin-right: 8px;
    color: #fff;
}

.forex-gold-today__form-input {
    position: relative;
}

.forex-gold-today__form-input input[type="text"] {
    max-width: 140px;
    display: block;
    padding: 8px 36px 8px 8px;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    color: #000000;
    background-color: #f1f1f1;
    border: 0px;
}

.forex-gold-today__form-input input[type="text"]:focus-visible {
    outline: none;
}

.forex-gold-today__form-input-icon {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    align-items: center;
    pointer-events: none;
    color: #dc2525;
    padding-inline-end: 8px;
}

.forex-gold-today__form-input-icon svg {
    width: 24px;
    height: 24px;
}

@media only screen and (max-width: 1024px) {
    .forex-gold-today__title {
        font-size: 30px;
        margin: 0px 0px 14px;
    }

    .forex-gold-today__text h2 {
        font-size: 16px;
    }

    .forex-gold-today__text p {
        font-size: 10px;
    }

    .forex-gold-today__change {
        padding: 16px;
    }

    .forex-gold-today__change h2 {
        font-size: 42px;
    }

    .forex-gold-today__change p {
        font-size: 16px;
    }

    .forex-gold-today__body h3 {
        font-size: 18px;
        margin: 0px 0px 10px;
    }

    .forex-gold-today__body-table table thead tr th {
        font-size: 9px;
    }

    .forex-gold-today__body-table table th,
    .forex-gold-today__body-table table td {
        font-size: 11px;
    }

    .forex-gold-today__form-label {
        font-size: 10px;
    }

    .forex-gold-today__form-input input[type="text"] {
        max-width: 100px;
        padding: 6px 28px 6px 6px;
        font-size: 12px;
    }

    .forex-gold-today__form-input-icon svg {
        width: 16px;
        height: 16px;
    }

    .forex-gold-today__form-group button[type="button"] {
        font-size: 12px;
        padding: 6px 12px;
    }

    .forex-gold-today__form-group button[type="button"] svg {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }
}

@media only screen and (max-width: 680px) {
    .forex-gold-today {
        padding: 12px 4px;
    }

    .forex-gold-today__header {
        flex-direction: column;
        align-items: center;
    }

    .forex-gold-today__title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .forex-gold-today__text > h2 {
        font-size: 13px;
    }

    .forex-gold-today__text > p {
        font-size: 9px;
    }

    .forex-gold-today__title,
    .forex-gold-today__text > h2,
    .forex-gold-today__text > p {
        text-align: center;
    }

    .forex-gold-today__change {
        display: none;
    }

    .forex-gold-today__change-mobile {
        display: block;
    }

    .forex-gold-today__body h3 {
        font-size: 13px;
        margin: 0;
    }

    .forex-gold-today__body-item:nth-child(2) table th:nth-child(5),
    .forex-gold-today__body-item:nth-child(2) table td:nth-child(5) {
        display: none;
    }

    .forex-gold-today__body-item-mobile {
        display: flex;
        column-gap: 4px;
        width: 100%;
    }

    #ThongRupphan {
        flex: calc(100% - 64px);
    }

    #ThongRupphanChange {
        display: flex;
        flex: 60px;
    }

    .forex-gold-today__body-table {
        border-radius: 4px;
    }

    .forex-gold-today__body-table table thead tr th,
    .forex-gold-today__body-table table th,
    .forex-gold-today__body-table table td {
        font-size: 8px;
        padding: 3px;
    }

    .forex-gold-today__footer {
        flex-direction: column;
        align-items: center;
    }

    .forex-gold-today__footer .forex-gold-today__text {
        order: 2;
    }

    .forex-gold-today__footer .forex-gold-today__text > h2 {
        font-size: 10px;
    }

    .forex-gold-today__footer .forex-gold-today__text > p {
        font-size: 7px;
    }

    .forex-gold-today__history {
        order: 1;
        margin-bottom: 20px;
    }

    .forex-gold-today__history .forex-gold-today__text {
        margin-bottom: 5px;
    }

    .forex-gold-today__history .forex-gold-today__text > p {
        font-size: 10px;
    }

    .forex-gold-today__form {
        order: 2;
    }

    .forex-gold-today__form-group {
        flex-direction: column;
        padding: 2px;
    }

    .forex-gold-today__form-label {
        order: 2;
        margin-right: 0;
        margin-top: 6px;
        font-size: 11px;
    }
}
