@use "components/variables";
@use "components/mixins";
@use "components/predictions-dropdown";
@use "components/predictions-modal";
@use "components/statuses";
@use "components/statuslist";
@use "components/button";

.endereco-relative-container {
  position: relative;
}

.endereco-big-flag {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0 !important;
  display: flex;
  z-index: 1;
  cursor: pointer;
  align-items: center;
  outline: none;

  &:focus,
  &:focus-visible {
    outline: 3px solid #0c517d;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(12, 81, 125, 0.25);
  }
}

.endereco-flag {
  > svg {
    width: 100%;
    height: 100%;
  }
}
.endereco-flag-dropdown-element {
  margin: 2px 0;
  padding: 2px 0;
  border: 2px solid transparent;
}

.endereco-small-flag {
  max-width: 20px;
  height: 20px;
  margin-right: 8px;

  > svg {
    width: 100%;
    height: 100%;
  }
}

.endereco-country-code-col {
  min-width: 30px;
}

.endereco-cur-down {
  max-width: 8px;
  margin: 0 4px;

  > svg {
    width: 100%;
  }
}

.endereco-flag-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 2;
}

.endereco-flag-dropdown-inner {
  background-color: #fff;
  padding: 8px;
  margin: 0;
  list-style: none;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.25), 0 0 12px rgba(0,0,0,0.125);
  width: auto;
  max-height: 280px;
  overflow-y: auto;

  .endereco-flag-dropdown-element {
    display: flex;
    align-items: center;

    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: inherit;
    position: relative;
    overflow: hidden;
    padding: 8px;
    color: #333;
    width: 100%;

    * {
      pointer-events: none;
    }

    &:last-child {
      margin-bottom: 0;
    }

    &:hover,
    &.active {
      background-color: rgba(76, 175, 80, 0.1);
      border-color: #388E3C;
    }
  }
}

.endereco-hidden {
  display: none;
}

