.h-border::after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: var(--green-gradient);
}

.calculator-popup-container::-webkit-scrollbar {
  display: none;
  /* Для Chrome, Safari и Opera */
}

.email-input {
  background: var(--border-dark);
  width: 100%;
  max-height: 54px;
  padding: 15px 25px !important;
}

.submit-brevo {
  background: var(--green-gradient);
}

.flex-spinner {
  width: max-content;
}

.wpcf7-spinner {
  padding: 15px 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  position: relative;
  margin: 0 0 0 24px;
  background: none;
  position: absolute;
  top: 0;
  right: 0;
}

.wpcf7-spinner::before {
  content: none;
}

.wpcf7-spinner::after {
  content: '';
  width: 24px;
  height: 24px;
  background-image: url('../img/spinner.svg');
  background-repeat: no-repeat;
  background-size: contain;
  animation: spin 1s linear infinite;
  position: absolute;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.wpcf7 form .wpcf7-response-output {
  padding: 0;
  border: none;
}

.submit-brevo {
  max-height: 54px;
}

#calc-price.fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--border-dark);
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.3s ease-out forwards;
}

/* Для возврата */
#calc-price:not(.fixed) {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Стили для новой цены в калькуляторе при применении купона */
.price-display + .new-price-display {
  display: none;
}
.price-display.show-discount {
  margin-right: 10px;
  color: var(--medium-gray);
  -webkit-text-fill-color: var(--medium-gray);
  font-size: 18px;
  position: relative;
}
.price-display.show-discount:before {
  position: absolute;
  content: '';
  width: 100%;
  height: 2px;
  background-color: red;
  left: 0;
  top: 50%;
  transform: rotate(-20deg);
}

.price-display.show-discount + .new-price-display {
  display: inline;
}

#menu-item-10549 a:hover,
#menu-item-10603 a:hover,
#menu-item-10551 a:hover,
#menu-item-10552 a:hover,
#menu-language a:hover,
#menu-item-10860 a:hover,
#menu-item-10861 a:hover,
#menu-item-21157 a:hover {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: var(--green-gradient);
}

.btn-discord:hover {
  transition: all 0.1s ease;
  box-shadow: 0px 4px 20px 0px var(--discord-bg);
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  display: none;
}

#trustpilot-widget-trustbox-0-wrapper {
  z-index: 0 !important;
}

main {
  overflow-x: hidden;
  padding-top: var(--header-height);
}

.dashboard-icon-wrapper div svg path.colorable,
.dashboard-icon-wrapper span,
.dashboard-icon-wrapper {
  transition: all 0.3s ease;
}

.dashboard-icon-wrapper div svg path.colorable {
  fill: var(--medium-gray);
}

.dashboard-icon-wrapper:hover {
  background-color: white !important;
}

.dashboard-icon-wrapper:hover div svg path.colorable,
.dashboard-icon-wrapper:hover span {
  fill: white;
  color: white;
  font-weight: bold;
}

.dashboard-icon-wrapper:focus,
.dashboard-icon-wrapper.active {
  background-image: var(--green-gradient);
}

.dashboard-icon-wrapper:focus span {
  color: var(--green-mint);
}

.dashboard-icon-wrapper.active span {
  color: white;
}

.dashboard-icon-wrapper:focus div svg path.colorable,
.dashboard-icon-wrapper.active div svg path.colorable {
  fill: var(--green-mint);
}

.copy-btn {
  transition: all 0.3s ease;
  will-change: background-color, color;
}

.copy-btn.copied {
  background-color: white;
  color: black;
}

.trustpilot-widget iframe {
  width: 100% !important;
  height: 100% !important;
  margin-top: -5px;
}

.trustpilot-widget.mobile iframe {
  width: 100% !important;
  height: 100% !important;
  margin-top: 55px;
}

.page-id-10839 article h1 {
  font-family: 'Actay Wide';
  font-size: 32px !important;
  font-style: normal;
  font-weight: 700;
  line-height: 36px !important;
  text-transform: capitalize;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .page-id-10839 article h1 {
    font-size: 44px !important;
    line-height: 44px !important;
    margin-bottom: 0;
  }

  .wpcf7-spinner {
    margin: 0 0 0 24px;
  }
}

@media (min-width: 1024px) {
  .page-id-10839 article h1 {
    font-size: 50px !important;
    line-height: 50px !important;
    margin-bottom: 30px;
  }

  .wp-block-pullquote p {
    font-size: 32px;
    line-height: 36px;
  }

  .wp-block-pullquote cite {
    font-size: 16px;
    line-height: 16px;
  }

  .wp-block-media-text__content {
    font-size: 16px;
    max-width: 300px;
  }
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 54px;
}

.custom-select::-webkit-scrollbar {
  width: 8px;
}

.custom-select::-webkit-scrollbar-track {
  background: var(--border-dark);
}

.custom-select::-webkit-scrollbar-thumb {
  background-color: var(--green-fresh);
  border-radius: 4px;
}

.custom-select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background-image: url('/assets/icon/chevron-icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.animate-fade-out {
  animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.iti {
  display: block !important;
}

.iti__country-list--dropup {
  bottom: initial !important;
}

.iti--container {
  top: 1px !important;
  width: 100%;
  left: 0 !important;
  position: relative !important;
  padding: 0 !important;
}

.iti__flag-container {
  height: 48px;
  width: 80px;
  background: rgba(21, 23, 24, 0.8);
  display: flex;
  justify-content: center;
  z-index: 2;
  border-bottom-left-radius: 14px;
  border-top-left-radius: 14px;
}

.iti.iti--allow-dropdown {
  width: 100%;
}

.iti--container .iti__country-list {
  background-color: rgba(36, 36, 36, 1) !important;
  color: rgba(255, 255, 255, 1);
  border-radius: 14px;
  border: none !important;
  width: 101% !important;
  white-space: normal;
  scrollbar-color: var(--green-fresh) var(--border-dark);
}

.iti--container .iti__country-list.iti__country-list--dropup {
  margin-bottom: 80px;
}

@media (min-width: 1025px) {
  .iti__flag-container {
    height: 54px;
  }
}

.iti__country-list {
  max-height: 250px !important;
  padding: 8px !important;
}

.iti__country {
  display: flex;
  align-items: start;
}

.iti__flag-box {
  margin-top: 4px;
}

.iti__dial-code {
  order: 1;
  margin-right: 6px;
  color: rgba(255, 255, 255, 1) !important;
}

.iti__country-name {
  order: 2;
}

.iti__divider {
  display: none;
}

.iti__flag {
  box-shadow: none !important;
  background-color: transparent !important;
}

.iti__arrow {
  width: 8px !important;
  height: 8px !important;
  border-left: 3px solid white !important;
  border-bottom: 3px solid white !important;
  transform: rotate(-45deg);
  border-right: none !important;
  border-top: none !important;
  margin-left: 12px !important;
}

.iti__arrow--up {
  transform: rotate(135deg);
  margin-top: 8px;
}

.iti--allow-dropdown input {
  padding-left: 90px !important;
}

@media (max-width: 1025px) {
  .iti__country {
    font-size: 13px;
  }

  .flex-spinner {
    width: 100%;
  }
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE и Edge */
  scrollbar-width: none;
  /* Firefox */
}

.calendar-select {
  margin-bottom: 40px;
  margin-top: 30px;
}

@media (min-width: 1023px) {
  .calendar-select {
    margin-top: 0;
    margin-left: 210px;
  }
}

.calendar-button,
.calendar-dropdown {
  width: 100%;
}

@media (min-width: 1023px) {
  .calendar-button,
  .calendar-dropdown {
    width: 300px;
  }
}

.calendar-button {
  font-size: 18px;
}

.calendar-arrow {
  width: 17px;
  height: 13px;
  background-image: url(../img/arrow-menu.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.3s ease;
  filter: invert(1);
}

.calendar-arrow.open {
  transform: rotate(180deg);
  margin-top: 0px;
}

.calendar-dropdown {
  position: absolute;
  padding: 8px 20px 8px 8px;
  margin-top: 4px;
  border-radius: 14px;
  background: var(--Background-Secondary, #242424);
  overflow: hidden;
  z-index: 1;
}

.calendar-dropdown::before {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  left: 12px;
  bottom: -115px;
  background: #F0B90B;
  filter: blur(79.53500366210938px);
}

.calendar-dropdown-item {
  cursor: pointer;
  border-radius: 7px;
}

.calendar-dropdown-item:hover {
  background: rgba(21, 23, 24, 0.8);
}

/* ========================================
   СТИЛИ ДЛЯ СКРЫТИЯ ПЛАТФОРМ ПО СТРАНАМ
   ======================================== */

/* Общие стили для всех заблокированных платформ */
body.restricted-tradelocker .calc-item-tradelocker .calc-item,
body.restricted-metatrader5 .calc-item-mt5 .calc-item,
body.restricted-ctrader .calc-item-ctrader .calc-item {
  border-color: transparent;
  background: var(--Background-Tertiary, rgba(21, 23, 24, 0.8));
  cursor: not-allowed;
  position: relative;
  user-select: none;
  pointer-events: none;
}

/* Стили для изображений заблокированных платформ */
body.restricted-tradelocker .calc-item-tradelocker img,
body.restricted-metatrader5 .calc-item-mt5 img,
body.restricted-ctrader .calc-item-ctrader img {
  opacity: 0.2;
}

/* Базовые стили для tooltip'а */
.platform-selector .toltip-text {
  position: absolute;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  border-radius: 14px;
  background-color: var(--dark-gray);
  width: max-content;
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, 0%) scale(0.95);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  background-image: url(../img/tooltip-bg.png);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Hover эффект для заблокированных платформ - показываем tooltip */
body.restricted-tradelocker .platform-selector .calc-item-tradelocker:hover .toltip-text,
body.restricted-metatrader5 .platform-selector .calc-item-mt5:hover .toltip-text,
body.restricted-ctrader .platform-selector .calc-item-ctrader:hover .toltip-text {
  opacity: 1;
  visibility: visible;
  z-index: 3;
  transform: translate(-50%, 0%) scale(1);
}
.not-available {
  display: none;
  background-color: var(--dark-gray);
  background-image: url(../img/tooltip-trading.png);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}
body.restricted-tradelocker .trading-tradelocker .btn-secondary,
body.restricted-metatrader5 .trading-mt5 .btn-secondary,
body.restricted-ctrader .trading-ctrader .btn-secondary {
  display: none;
}
body.restricted-tradelocker .trading-tradelocker .not-available,
body.restricted-metatrader5 .trading-mt5 .not-available,
body.restricted-ctrader .trading-ctrader .not-available {
  display: flex;
}

body.restricted-tradelocker .trading-tradelocker .trading-item,
body.restricted-metatrader5 .trading-mt5 .trading-item,
body.restricted-ctrader .trading-ctrader .trading-item {
  border: 1px solid var(--Controls-Tertiary, #5e5e5e);
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

/**
 * Platform Restrictions CSS
 * Стили для уведомлений об ограничениях платформ
 */

.platform-restriction-container {
  margin: 20px 0;
  padding: 0;
}

.platform-restriction-notice {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  color: #721c24;
  padding: 15px 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.platform-restriction-notice strong {
  color: #721c24;
  font-weight: 600;
}

.platform-restriction-notice::before {
  content: '⚠️';
  margin-right: 10px;
  font-size: 18px;
  position: relative;
  top: auto;
  left: auto;
}

/* Анимация появления */
.platform-restriction-container {
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для отключенной кнопки */
.btn-primary.disabled,
.btn-primary:disabled {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .platform-restriction-notice {
    padding: 12px 16px;
    font-size: 13px;
    margin: 0 10px;
  }

  .platform-restriction-notice::before {
    font-size: 14px;
  }
}

.widefat {
  margin-top: 20px;
}

.tablenav {
  margin: 20px 0;
}

.wp-block-table thead {
  border: none;
}

.wp-block-media-text__content {
  margin-top: auto;
  padding: 0 0 0 20px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0 !important;
}

.wp-block-pullquote {
  padding: 0 0 0 40px;
  max-width: 726px;
}

.wp-block-pullquote blockquote {
  border-left: 1px solid var(--green-accents);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.wp-block-pullquote p {
  font-family: 'Actay Wide', sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

@media (min-width: 1536px) {
  .wp-block-pullquote p {
    font-size: 36px;
    line-height: 40px;
  }
}

.wp-block-pullquote cite {
  align-self: flex-end;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
}

.woocommerce ul.order_details li {
  margin: 0;
  padding: 0;
  border: none;
}

.btn-secondary.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
