/* Currency floating widget — cùng hệ style với google-translate-widget.css (dựng từ
   getComputedStyle() thật của app currency converter bên thứ 3 trên site tham chiếu), đặt xếp
   chồng ngay phía trên widget đổi ngôn ngữ (cũng fixed bottom:40px) để không đè lên nhau mà
   không cần tính toán độ rộng động của từng widget. */

.ccw-floating-box {
  position: fixed;
  left: 40px;
  bottom: 88px;
  z-index: 45;
  font-family: Raleway, sans-serif;
}

.ccw-selected {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 8px 4px 8px 12px;
  border: 1px solid rgba(204, 204, 204, 0.36);
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  color: rgb(30, 30, 30);
}

.ccw-selected-label {
  margin: 0 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  color: rgb(30, 30, 30);
}

.ccw-chevron {
  flex-shrink: 0;
  color: #b7b7b7;
  transform: rotate(180deg);
  transition: transform 0.2s ease-in-out;
}
.ccw-chevron--open {
  transform: rotate(0deg);
}

.ccw-options {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 220px;
  max-height: 265px;
  overflow-y: auto;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 0 17px -5px rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ccw-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: rgb(30, 30, 30);
}

.ccw-option-code {
  font-weight: 600;
  flex-shrink: 0;
}

.ccw-option-label {
  color: #767676;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccw-option:hover {
  background: rgba(30, 30, 30, 0.04);
}

.ccw-option--active {
  background: rgba(30, 30, 30, 0.06);
}
.ccw-option--active .ccw-option-code {
  font-weight: 700;
}

@media only screen and (max-width: 767px) {
  .ccw-floating-box {
    left: 16px;
    bottom: 66px;
  }
}
