/* =====================================================
   VASURA — multicurrency.css
   Shipping notice bar, currency switcher, geo toast
   ===================================================== */

/* =====================================================
   SCROLLING SHIPPING NOTICE BAR
   ===================================================== */
.shipping-notice-bar {
  background: var(--color-gold);
  color: var(--color-white);
  height: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.shipping-notice-bar.hidden { display: none; }

.shipping-notice-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
  gap: 0;
}
.shipping-notice-bar:hover .shipping-notice-track { animation-play-state: paused; }

.shipping-notice-item {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 2rem;
}
.shipping-notice-sep {
  font-size: 0.5rem;
  opacity: 0.6;
  color: rgba(255,255,255,0.8);
}

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

.shipping-notice-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.2);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
  flex-shrink: 0;
  z-index: 2;
}
.shipping-notice-close:hover { background: rgba(0,0,0,0.4); }

/* =====================================================
   CUSTOM CURRENCY SWITCHER DROPDOWN
   ===================================================== */
.vasura-currency-switcher {
  position: relative;
}

.currency-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  white-space: nowrap;
}
.currency-switcher-btn:hover,
.currency-switcher-btn[aria-expanded="true"] {
  border-color: var(--color-gold);
  background: var(--color-gold-bg);
  color: var(--color-gold-dark);
}
.currency-flag { font-size: 1rem; line-height: 1; }
.currency-code { font-size: 0.8rem; font-weight: 600; }
.currency-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.currency-switcher-btn[aria-expanded="true"] .currency-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-height: 320px;
  overflow-y: auto;
}
.currency-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
/* Custom scrollbar for dropdown */
.currency-dropdown::-webkit-scrollbar { width: 4px; }
.currency-dropdown::-webkit-scrollbar-track { background: var(--color-cream); }
.currency-dropdown::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

.currency-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.825rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.15s;
}
.currency-option:hover { background: var(--color-cream); color: var(--color-text); }
.currency-option.active {
  background: var(--color-gold-bg);
  color: var(--color-gold-dark);
  font-weight: 500;
}
.currency-option-flag   { font-size: 1rem; flex-shrink: 0; }
.currency-option-code   { font-weight: 600; font-size: 0.8rem; min-width: 32px; }
.currency-option-symbol { color: var(--color-gold); font-weight: 600; font-size: 0.75rem; min-width: 20px; }
.currency-option-name   { font-size: 0.75rem; color: var(--color-text-muted); flex: 1; }

/* Simple select fallback */
.vasura-currency-select {
  appearance: none;
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--color-text);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: var(--transition);
}
.vasura-currency-select:focus { outline: none; border-color: var(--color-gold); }

/* Display only (no plugin) */
.vasura-currency-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.375rem 0.625rem;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

/* =====================================================
   GEO CURRENCY TOAST
   ===================================================== */
.vasura-geo-toast {
  position: fixed;
  bottom: 5rem;
  left: 1.5rem;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  max-width: 320px;
}
.vasura-geo-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.geo-toast-inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border-left: 3px solid var(--color-gold);
}
.geo-toast-flag  { font-size: 2rem; flex-shrink: 0; }
.geo-toast-text  { flex: 1; }
.geo-toast-text strong { font-size: 0.875rem; display: block; color: var(--color-text); }
.geo-toast-text p { font-size: 0.78rem; color: var(--color-text-muted); margin: 0.125rem 0 0; }
.geo-toast-btn {
  padding: 0.4rem 0.875rem;
  background: var(--color-gold);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}
.geo-toast-btn:hover { background: var(--color-gold-dark); color: white; }
.geo-toast-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
}
.geo-toast-close:hover { color: var(--color-text); }

/* =====================================================
   CHECKOUT CURRENCY NOTICE
   ===================================================== */
.vasura-checkout-currency-notice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-gold-bg);
  border: 1px solid rgba(184,150,12,0.25);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  margin-bottom: 1.5rem;
}

/* =====================================================
   INR REFERENCE PRICE
   ===================================================== */
.inr-reference {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* =====================================================
   WORLDWIDE SHIPPING BADGE (product page)
   ===================================================== */
.worldwide-ship-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  background: #EAF4EE;
  color: var(--color-green-herb);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(45,106,79,0.2);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .shipping-notice-item { padding: 0 1.25rem; font-size: 0.75rem; }
  .vasura-geo-toast { left: 1rem; right: 1rem; max-width: none; bottom: 4.5rem; }
  .geo-toast-inner  { flex-wrap: wrap; gap: 0.625rem; }
  .currency-dropdown { right: auto; left: 0; }
}
