/* 🛠 Fix input/flag overlap and improve user layout */

/* Main container */
.ccw-widget {
  max-width: 420px;
  margin: 24px auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  font-family: 'Inter', sans-serif;
}

/* Currency group */
.currency-input-group {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  position: relative;
  border: 1px solid #ccc;
}

/* Flag */
.currency-flag {
  position: absolute;
  width: 30px;
  height: 30px;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid #ccc;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Input Field */
.currency-input-group input[type="number"] {
  flex: 1;
  padding-left: 70px !important; /* Keep space from flag */
  font-size: 22px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #111;
  outline: none;
}

/* Placeholder UX */
.currency-input-group input::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Dropdown container */
.currency-select {
  margin-left: 10px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
}

.currency-select select {
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: transparent;
  appearance: none;
  outline: none;
  color: #333;
  cursor: pointer;
}

/* Swap icon */
.currency-swap {
  text-align: center;
  margin: 12px 0;
  font-size: 24px;
  color: #333;
}

/* Result info */
.ccw-result {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.ccw-result p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #777;
}

/* Mobile fix */
@media (max-width: 480px) {
  .currency-input-group {
    padding: 16px 14px;
  }

  .currency-flag {
    width: 26px;
    height: 26px;
    left: 12px;
  }

  .currency-input-group input {
    font-size: 18px;
    padding-left: 60px !important;
  }

  .currency-select select {
    font-size: 14px;
  }
}
/* Reset & Base */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #f4f6f8;
}

/* Widget Container */
.ccw-widget {
  max-width: 520px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* Input Group */
.currency-input-group {
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid #d0d7de;
}

/* Flag Icon */
.currency-flag {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Input Field */
.currency-input-group input[type="number"] {
  flex: 1;
  font-size: 1.4rem;
  font-weight: 600;
  border: none;
  background: transparent;
  outline: none;
  color: #111;
}

/* Currency Dropdown */
.currency-select select {
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.5rem;
  cursor: pointer;
  color: #444;
}

/* Swap Button */
.currency-swap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  font-size: 1.6rem;
  cursor: pointer;
  color: #0077cc;
  transition: transform 0.3s ease;
}
.currency-swap:hover {
  transform: rotate(180deg);
}

/* Result Section */
.ccw-result {
  text-align: center;
  font-size: 1.2rem;
  color: #111;
  font-weight: bold;
  margin-top: 1rem;
}
.ccw-result small {
  display: block;
  color: #666;
  margin-top: 4px;
  font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .ccw-widget {
    padding: 1.2rem;
  }
  .currency-input-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .currency-select {
    margin-top: 0.5rem;
  }
}

