/* === Base Colors === */
.base-color {
  color: hsl(var(--base)) !important;
}

/* === Copy Animation Button === */
.copyInput {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

/* === Copied Tooltip Animation === */
.copied::after {
  content: "COPIED";
  position: absolute;
  top: 8px;
  right: 12%;
  width: max-content;
  padding: 5px 10px;
  font-size: 1rem;
  color: #fff;
  background-color: hsl(var(--base));
  border-radius: 4px;
  opacity: 0;
  animation: showCopied 1.5s ease;
  white-space: nowrap;
}

@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 === */
.cookies-card {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  width: 520px;
  padding: 20px;
  background: #fff;
  color: hsl(var(--body-color));
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px) saturate(5);
  transition: all 0.15s ease-in-out;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.cookies-card__icon {
  width: 50px;
  height: 50px;
  background-color: hsl(var(--base));
  color: #fff;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cookies-btn {
  display: inline-block;
  padding: 10px 30px;
  margin: 4px;
  background: #f0f0f0;
  color: #333;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s;
}

.cookies-btn:hover {
  background: #e5e5e5;
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
    border-radius: 0;
  }
}

/* === Input Tooltip Popup === */
.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  padding: 20px;
  color: #fff;
  background-color: #1a1a1a;
  border-radius: 6px;
  transform: translateX(-50%);
  transition: all 0.3s ease;
  z-index: 1000;
}

.input-popup::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  border: 10px solid transparent;
  border-top-color: #1a1a1a;
}

.input-popup p {
  padding-left: 24px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  left: 0;
  top: 3px;
  font-family: 'Line Awesome Free';
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.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: hsl(var(--base-d-200));
}

/* === Responsive Filter === */
.show-filter {
  display: none;
}

@media (max-width: 767px) {
  .responsive-filter-card {
    display: none;
  }
  .show-filter {
    display: block;
  }
}

/* === Select2 Customization === */
.select2-dropdown {
  border: none !important;
  margin-top: 8px !important;
  border-radius: 6px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.select2-container {
  width: 100% !important;
}

.select2-selection--single {
  height: 46px !important;
  padding: 10px 15px !important;
  border-radius: 6px !important;
  border: 1px solid #e5e5e5 !important;
}

.select2-selection__arrow:after {
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  position: absolute;
  top: -5px;
  right: 10px;
  transition: transform 0.3s ease;
}

.select2-container--open .select2-selection__arrow:after {
  transform: rotate(-180deg);
}

.select2-results__option {
  padding: 12px 14px !important;
  border-bottom: 1px solid #eee;
}

.select2-results__option--highlighted {
  background-color: hsl(var(--base)) !important;
  color: #fff !important;
}

.select2-search__field {
  padding: 10px 20px !important;
  border: 1px solid #ced4da !important;
}

.select2-search__field:focus {
  border-color: hsl(var(--base)) !important;
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(115, 103, 240, 0.07);
}

/* === Payment Gateway Styles === */
.gateway-card {
  padding: 15px;
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: hsl(var(--base));
  color: #fff;
  border-radius: 6px;
}

.payment-system-list {
  background-color: #fff;
  border-radius: 6px;
  padding-block: 8px;
  --thumb-width: 100px;
  --thumb-height: 40px;
}

.payment-system-list.is-scrollable {
  max-height: min(388px, 70vh);
  overflow-y: auto;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 6px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--base));
  border-radius: 10px;
}