.statement-currency-filter-host {
  position: relative;
  overflow: visible;
}

.statement-currency-select {
  position: relative;
  overflow: visible;
}

.statement-currency-select,
.statement-currency-select * {
  box-sizing: border-box;
}

.statement-currency-select .ant-select-selector {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 34px 0 12px !important;
  cursor: text;
}

.statement-currency-select.is-open .ant-select-selector {
  padding: 0 33px 0 11px !important;
  border: 2px solid #5f5bc4 !important;
  box-shadow: none !important;
}

.statement-currency-selection {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.statement-currency-tags {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.statement-currency-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  color: #47439e;
  font-size: 12px;
  line-height: 22px;
  white-space: nowrap;
  background: #f0efff;
  border-radius: 4px;
}

.statement-currency-tag.is-count {
  padding: 0 5px;
}

.statement-currency-search {
  flex: 1 1 28px;
  width: 28px;
  min-width: 18px;
  height: 28px;
  padding: 0;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  background: transparent;
  border: 0;
  outline: 0;
}

.statement-currency-search::placeholder {
  color: #c8c8c8;
}

.statement-currency-select .ant-select-arrow {
  right: 12px;
  color: #5f5bc4;
  font-size: 18px;
  pointer-events: none;
}

.statement-currency-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1190;
  width: 100%;
  min-width: 219px;
  overflow: hidden;
  color: #1a1a1a;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(28, 33, 48, 0.18);
}

.statement-currency-dropdown[hidden] {
  display: none;
}

.statement-currency-options {
  max-height: 256px;
  padding: 8px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.statement-currency-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
}

.statement-currency-option:hover,
.statement-currency-option:focus-visible {
  background: #f7f7fa;
  outline: none;
}

.statement-currency-option.is-selected {
  color: #47439e;
  background: #f4f3ff;
}

.statement-currency-check {
  visibility: hidden;
  margin-left: 12px;
  color: #5f5bc4;
  font-size: 16px;
  font-weight: 700;
}

.statement-currency-option.is-selected .statement-currency-check {
  visibility: visible;
}

.statement-currency-no-options {
  padding: 36px 16px;
  color: #8a8a8a;
  font-size: 14px;
  text-align: center;
}

.statement-currency-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-height: 48px;
  padding: 0 16px;
  border-top: 1px solid #e8e8e8;
}

.statement-currency-actions button {
  padding: 4px 0;
  color: #5f5bc4;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.statement-currency-actions button:hover {
  color: #47439e;
}

.statement-transaction-selection {
  gap: 8px;
}

.statement-transaction-label {
  flex: 0 0 auto;
  color: #c8c8c8;
  white-space: nowrap;
}

.statement-transaction-label.has-selection {
  color: #1a1a1a;
}

.statement-transaction-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #555;
  font-size: 13px;
  line-height: 22px;
  background: #f0f0f3;
  border-radius: 11px;
}

.statement-transaction-count[hidden] {
  display: none;
}

.statement-transaction-select:not(.is-open) .statement-transaction-search {
  flex: 0 0 1px;
  width: 1px;
  min-width: 1px;
}

.statement-transaction-select.is-open .statement-transaction-search {
  min-width: 20px;
}

@media (max-width: 640px) {
  .statement-currency-dropdown {
    min-width: 220px;
  }
}
