@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');
@import url('custom_fonts.css');

html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .nav-link,
html[lang="ar"] .btn {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Copy Animation */
.base-color {
  color: hsl(var(--base)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #FF7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}




.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1E2337;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all .5s;
  background: #d1d1d1;
  border-radius: 5px;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: hsl(var(--dark));
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}


@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }
}




.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;

}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
  font-size: 16px;
}

.input-popup p::before {
  position: absolute;
  content: '';
  font-family: 'Line Awesome Free';
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}



.show-filter {
  display: none;
}

@media(max-width:767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}


.gateway-card {
  padding: 15px;
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: hsl(var(--base-two));
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: #fff;
}

.payment-system-list {
  --thumb-width: 100px;
  --thumb-height: 40px;
  --radio-size: 12px;
  --border-color: #eeeeee;
  --hover-border-color: hsl(var(--base-two));
  background-color: #fff;
  border-radius: 5px;
  height: 100%;

}


.payment-system-list.is-scrollable {
  max-height: min(388px, 70vh);
  overflow-x: auto;
  padding-block: 4px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;

}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--base-two));
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-top-color: var(--border-color);
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.payment-item:first-child {
  border-top-color: #fff;
  border-radius: 5px 5px 0 0;
}

.payment-item:first-child:has(:checked) {
  border-top: 1px solid var(--border-color);
}

.payment-item:last-of-type:has(:checked) {
  border-bottom: 1px solid var(--border-color);
}

.payment-item:has(.payment-item__radio:checked) {
  border-left: 3px solid var(--hover-border-color);
  border-radius: 0px;
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item:has(.payment-item__radio:checked) .payment-item__check {
  border: 3px solid hsl(var(--base-two));
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width))
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--base-two));
  display: inline-block;
  border-radius: 100%;

}

.payment-item__name {
  padding-left: 10px;
  width: calc(100% - var(--radio-size));
  transition: all 0.3s;
  font-size: 1.125rem;
}

.payment-item__thumb {
  width: var(--thumb-width);
  height: var(--thumb-height);
  text-align: right;
  padding-left: 10px;

  &:has(.text) {
    width: fit-content;
  }
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
}


.deposit-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.deposit-info:not(:last-of-type) {
  margin-bottom: 10px;
}



.deposit-info__title {
  max-width: 50%;
  margin-bottom: 0px;
  text-align: left;
  font-size: 18px;

  p {
    font-size: inherit;
    font-weight: 500;
  }
}

.deposit-info__input {
  max-width: 50%;
  text-align: right;
  width: 100%;

  .form--control {
    background-color: transparent !important;
  }

}

.deposit-info__input .input-group-text {
  border-right-color: transparent;
}

.deposit-info__input-select {
  border: 1px solid var(--border-color);
  width: 100%;
  border-radius: 5px;
  padding-block: 6px;
}

.deposit-info__input-group {
  border-radius: 5px;
  max-width: fit-content;
  margin-left: auto;

  .deposit-info__input-group-text {
    align-self: center;
    padding-left: 5px;
  }

}

.deposit-info__input-group .form--control {
  padding: 5px;
  border: 0;
  height: 35px;
  text-align: right;
}

.deposit-info__input-group .form--control:focus {
  box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
  font-size: 1rem;
  font-weight: 500;

}

.deposit-info__title .text.has-icon {
  display: flex;
  align-items: center;
  gap: 5px
}

.total-amount {
  border-top: 1px solid hsl(var(--black)/0.1);
}

.total-amount .deposit-info__title {
  font-weight: 600;
}

.payment-item__btn {
  border: 0;
  border-block: 1px solid var(--border-color);
  border-bottom: 0;
  background: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-weight: 500;
  background-color: hsl(var(--base-two)/0.1);
}

.payment-item:hover+.payment-item__btn {
  border-top-color: #fff;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

label.required:after {
  content: '*';
  color: #dc3545 !important;
  margin-left: 2px;
}

/* ================= Header Language Selector ================= */
.header-lang-wrapper {
  display: inline-flex;
  align-items: center;
}

.custom--lang-dropdown .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 50rem;
  background: hsl(var(--black) / 0.05);
  border: 1px solid hsl(var(--black) / 0.1);
  color: hsl(var(--heading-color));
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.custom--lang-dropdown .lang-btn:hover,
.custom--lang-dropdown .lang-btn:focus,
.custom--lang-dropdown.show .lang-btn {
  background: hsl(var(--base) / 0.2);
  border-color: hsl(var(--base));
  color: hsl(var(--heading-color));
}

.custom--lang-dropdown .lang-btn .lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.custom--lang-dropdown .lang-btn i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.custom--lang-dropdown.show .lang-btn i {
  transform: rotate(180deg);
}

.custom--lang-dropdown .dropdown-menu {
  min-width: 175px;
  padding: 8px;
  margin-top: 8px !important;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid hsl(var(--black) / 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  animation: fadeInDown 0.2s ease-in-out;
}

.custom--lang-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: hsl(var(--heading-color));
  transition: all 0.2s ease;
}

.custom--lang-dropdown .dropdown-item:hover {
  background: hsl(var(--base) / 0.12);
  color: hsl(var(--heading-color));
}

.custom--lang-dropdown .dropdown-item.active {
  background: hsl(var(--base)) !important;
  color: hsl(var(--heading-color)) !important;
  font-weight: 600;
}

.custom--lang-dropdown .dropdown-item.active i {
  color: hsl(var(--heading-color)) !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for language selector on mobile */
@media (max-width: 991px) {
  .header-lang-wrapper {
    position: relative;
  }

  .custom--lang-dropdown .lang-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
    gap: 5px;
  }

  .custom--lang-dropdown .dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    min-width: 160px;
    z-index: 1060;
  }

  html[lang="ar"] .custom--lang-dropdown .dropdown-menu {
    right: auto !important;
    left: 0 !important;
  }

  .offcanvas-language .btn {
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 8px;
  }
}

@media (max-width: 575px) {
  .header-action-wrap {
    gap: 6px !important;
  }

  .header .account-list__item .btn {
    padding: 5px 9px !important;
    font-size: 0.8rem !important;
    border-radius: 6px;
  }

  .custom--lang-dropdown .lang-btn {
    padding: 5px 8px;
  }

  .custom--lang-dropdown .lang-btn i {
    display: none;
  }
}

/* ===================================================
   Product Designer Text Toolbar & Controls Styling
   =================================================== */
.sidebar-layer__body .form-group {
    margin-bottom: 14px;
}

.sidebar-layer__body .form--label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    display: block;
}

.sidebar-layer__body .input-group-sm > .form-control {
    border-radius: 6px 0 0 6px;
    border-color: #d1d5db;
}

html[dir="rtl"] .sidebar-layer__body .input-group-sm > .form-control,
html[lang="ar"] .sidebar-layer__body .input-group-sm > .form-control {
    border-radius: 0 6px 6px 0 !important;
}

.sidebar-layer__body .input-group-sm > .input-group-text {
    border-radius: 0 6px 6px 0;
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
    font-size: 12px;
}

html[dir="rtl"] .sidebar-layer__body .input-group-sm > .input-group-text,
html[lang="ar"] .sidebar-layer__body .input-group-sm > .input-group-text {
    border-radius: 6px 0 0 6px !important;
}

.text-tools {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    margin-top: 4px !important;
    background: #f9fafb;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.text-tools .text-tool-btn,
.text-tools .btn {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #d1d5db !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #374151 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.text-tools .text-tool-btn:hover,
.text-tools .btn:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08) !important;
}

.text-tools .text-tool-btn:active,
.text-tools .btn:active {
    transform: translateY(0) !important;
}

/* Color Picker Button inside Text Tools */
.text-tools .color-picker-wrapper {
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

.text-tools .color-picker-wrapper input.color-picker {
    position: absolute !important;
    top: -10px !important;
    left: -10px !important;
    width: 60px !important;
    height: 60px !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
}

.text-tools .color-picker-wrapper .color-preview-indicator {
    width: 20px !important;
    height: 20px !important;
    border-radius: 5px !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
    display: inline-block !important;
    pointer-events: none !important;
/* إخفاء سكشن وزر مشاهدة الفيديو بالكامل من البانر */
.banner-video,
.banner-video__inner,
a.banner-video__popup,
a.show-video {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}