/* PayPal Smart Currency v2.0 */

/* Converted price with tooltip */
.ppsc-converted {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed rgba(0,0,0,0.3);
}
.ppsc-converted:hover::after {
  content: attr(data-ppsc-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.5;
  white-space: nowrap;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.ppsc-converted:hover::before {
  content: '';
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a2e;
  z-index: 99999;
  pointer-events: none;
}

/* Shortcode price */
.ppsc-price {
  display: inline-block;
  white-space: nowrap;
}
.ppsc-price[data-ppsc-done="1"] {
  visibility: visible;
}

/* Currency Switcher */
.ppsc-switcher,
.ppsc-switcher-floating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 14px;
  z-index: 9999;
}
.ppsc-switcher-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
}
.ppsc-switcher-label {
  font-size: 16px;
  line-height: 1;
}
.ppsc-switcher-select {
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  outline: none;
  padding: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.ppsc-switcher-select:focus {
  outline: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .ppsc-switcher,
  .ppsc-switcher-floating {
    background: #1e1e2e;
    border-color: #333;
    color: #eee;
  }
  .ppsc-switcher-select {
    color: #eee;
  }
}

/* Elementor compatibility */
.elementor-widget-heading .ppsc-converted,
.elementor-heading-title .ppsc-converted {
  border-bottom-color: rgba(255,255,255,0.3);
}

/* WooCommerce price compatibility */
.woocommerce-Price-amount .ppsc-converted {
  border-bottom: none;
  cursor: default;
}
.woocommerce-Price-amount .ppsc-converted:hover::after,
.woocommerce-Price-amount .ppsc-converted:hover::before {
  display: none;
}
