@media only screen and (max-width: 768px) {
.kajex-archive-currency {
    display: flex
;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 30px;
}

  .kajex-table1 th {
    font-size: 14px !important;
    padding: 15px 15px !important;

  }

h3#kajex-coin-popup-title {
    font-size: 16px !important;
    font-weight: 600;
}

#kajex-crypto-ticker {
  animation-duration: 90s !important;
}

button#kajex-fetch-history {
    background-color: #aa8f5e;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;
margin: 0 !important;

}

.kajex-table1 td {
    padding: 15px 15px !important;
    font-size: 14px !important;

}


}




#kajex-rate-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* بک‌گراند نیمه‌شفاف */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

button#kajex-fetch-history {
    background-color: #aa8f5e;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;
}

button#kajex-fetch-history:hover {
    background-color: #aa8f5e !important;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;
}

button#kajex-fetch-history:focus {
    background-color: #aa8f5e !important;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;
}
.kajex-ticker-item {
    margin: 0 40px;
    display: inline-block;
    color: #272624;
    white-space: nowrap;
    font-weight: 400;
    white-space: nowrap;
    font-size: 14px;
}
.kajex-ticker-item img {
    border-radius: 50%;
    background: white;
    padding: 1px;
}

#kajex-crypto-ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    direction: ltr;
    background: white;
    color: black;
    z-index:999;
    padding: 10px 0;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    font-family: "Helvetica",sans-serif;
    font-size: 16px;
    font-weight: bold;
}

#kajex-crypto-ticker {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-name: kajexTickerLoop;
  animation-duration: 90s;
}

@keyframes kajexTickerLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


.kajex-ticker-item {
    margin: 0 40px;
    display: inline-block;
}




input#kajex-to-date {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
    padding-right: 10px;
}

input#kajex-from-date {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
    padding-right: 10px;
}

.kajex-table1 table tbody tr:hover {
    cursor: pointer;
}

.kajex-archive-date {
    display: flex
;
    flex-direction: column;
    gap: 8px;
}

.kajex-archive-currency {
    display: flex
;
    flex-direction: row;
    gap: 10px;
    margin-top: 30px;
}

.kajex-popup-content {
    background: #fff;
    padding: 30px 30px !important;
    width: calc(100% - 10%);
    top: 50%;
    left: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: absolute;
    transform: translate(-50%, -50%);
    height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    direction: rtl;
}

h3#kajex-popup-title {
    font-size: 20px;
    font-weight: 600;
}

#kajex-popup-close {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 14px;
  color: #666;
  transition: 0.3s ease;
}

#kajex-popup-close:hover {
  color: #000;
  transform: scale(1.2);
}

#kajex-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  white-space: normal;
}

#kajex-history-table th,
#kajex-history-table td {
  text-align: center;
  padding: 12px;
  border: 1px solid #e0e0e0;
}

#kajex-history-table th {
  background-color: #f9f9f9;
  font-weight: bold;
}


input.kajex-input-front {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
}

select.kajex-input-front {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
}

.kajex-img-converter {
    display: flex
;
    gap: 5px;
}

.kajex-convert-form-container {
    display: flex
;
    align-items: flex-end;
    gap: 20px;
}

.kajex-convert-form-section {
    display: flex
;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

button.kajex-btn-front {
    background-color: #aa8f5e;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 14px 74px 14px 74px;
    border: none;
    height: 54px;
    margin-top: 23px;
}

button.kajex-btn-front:hover {
    background-color: #aa8f5e !important;
    font-weight: 400 !important;
    color: #FFFFFF !important;
        border: none !important;

}

button.kajex-btn-front:focus {
    background-color: #aa8f5e !important;
    font-weight: 400 !important;
    color: #FFFFFF !important;
        border: none !important;

}

.kajex-convert-form-bottom {
    display: flex
;
    justify-content: space-between;
    align-items: baseline;
    flex-direction: row-reverse;
}

div#kajex-conversion-result strong {
    font-size: 16px;
    font-weight: 500 !important;
    font-family: 'kaj';
}

select.kajex-input-front {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: white url('/wp-content/plugins/kajex-core/assets/front/images/arrow.svg') no-repeat left 1rem center  !important;
  background-size: 1rem;
  cursor: pointer;
}

button#kajex-fetch-coin-history {
    background-color: #aa8f5e;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;
}

#kajex-coin-rate-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

input#kajex-coin-to-date {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
    padding-right: 10px;
}

input#kajex-coin-from-date {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
    padding-right: 10px;
}

.kajex-table1 table tbody tr:hover {
    cursor: pointer;
}

.kajex-archive-date {
    display: flex
;
    flex-direction: column;
    gap: 8px;
}

.kajex-archive-currency {
    display: flex
;
    flex-direction: row;
    gap: 10px;
    margin-top: 30px;
}

.kajex-popup-content {
    background: #fff;
    padding: 30px 30px !important;
    width: calc(100% - 10%);
    top: 50%;
    left: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: absolute;
    transform: translate(-50%, -50%);
    height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    direction: rtl;
}

h3#kajex-coin-popup-title {
    font-size: 20px;
    font-weight: 600;
}

#kajex-coin-popup-close {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 14px;
  color: #666;
  transition: 0.3s ease;
}

#kajex-coin-popup-close:hover {
  color: #000;
  transform: scale(1.2);
}

#kajex-coin-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  white-space: normal;
}

#kajex-history-coin-table th,
#kajex-history-coin-table td {
  text-align: center;
  padding: 12px;
  border: 1px solid #e0e0e0;
}

#kajex-history-coin-table th {
  background-color: #f9f9f9;
  font-weight: bold;
}

#kajex-history-coin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  white-space: normal;
}


h3#kajex-remittance-popup-title {
    font-size: 20px;
    font-weight: 600;
}

#kajex-remittance-popup-close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 14px;
    color: #666;
    transition: 0.3s ease;
}

#kajex-remittance-popup-close:hover {
    color: #000;
    transform: scale(1.2);
}

#kajex-remittance-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    white-space: normal;
}

#kajex-history-remittance-table th,
#kajex-history-remittance-table td {
    text-align: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

#kajex-history-remittance-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

#kajex-history-remittance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    white-space: normal;
}

button#kajex-fetch-remittance-history {
    background-color: #aa8f5e;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;

}

button#kajex-fetch-remittance-history:hover {
    background-color: #aa8f5e;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;

}

button#kajex-fetch-remittance-history:focus {
    background-color: #aa8f5e;
    font-family: "kaj", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    border-radius: 8px 8px 8px 8px;
    padding: 14px 74px 14px 74px;
    border: none !important;
    height: 60px;
    margin-top: 23px;

}

#kajex-remittance-rate-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

input#kajex-remittance-to-date {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
    padding-right: 10px;
}

input#kajex-remittance-from-date {
    border: solid 1px #d5d5d5 !important;
    border-radius: 8px !important;
    height: 60px !important;
    background: white;
    color: black !important;
    padding-right: 10px;
}