.phone {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--Spacing-x2);

  --react-international-phone-background-color: var(--Main-Grey-White);
  --react-international-phone-border-color: var(--Scandic-Beige-40);
  --react-international-phone-dropdown-preferred-list-divider-color: var(
    --Scandic-Brand-Pale-Peach
  );
  --react-international-phone-selected-dropdown-item-background-color: var(
    --Scandic-Blue-00
  );
  --react-international-phone-text-color: var(--Main-Grey-100);

  --react-international-phone-dropdown-preferred-list-divider-margin: 8px;

  --react-international-phone-height: 60px;
  --react-international-phone-dropdown-top: calc(
    var(--react-international-phone-height) + var(--Spacing-x1)
  );
  --react-international-phone-dial-code-preview-font-size: var(
    --typography-Body-Regular-fontSize
  );
}

@media (min-width: 385px) {
  .phone {
    grid-template-columns: minmax(124px, 164px) 1fr;
  }
}

.phone:has(.input:active, .input:focus) {
  --react-international-phone-border-color: var(--Scandic-Blue-90);
}

.phone :global(.react-international-phone-country-selector-dropdown) {
  background: var(--Main-Grey-White);
  border-radius: var(--Corner-radius-md);
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.08);
  gap: var(--Spacing-x1);
  outline: none;
  padding: var(--Spacing-x2);
}

.phone
  :global(.react-international-phone-country-selector-dropdown__list-item) {
  border-radius: var(--Corner-radius-md);
  padding: var(--Spacing-x1) var(--Spacing-x1) var(--Spacing-x1)
    var(--Spacing-x-one-and-half);
}

.phone
  :global(.react-international-phone-country-selector-button__button-content) {
  align-self: center;
}

.select {
  align-content: center;
  background-color: var(--Main-Grey-White);
  border-color: var(--Scandic-Beige-40);
  border-style: solid;
  border-width: 1px;
  border-radius: var(--Corner-radius-md);
  display: grid;
  gap: var(--Spacing-x-half);
  grid-template-rows: auto auto;
  height: 60px;
  padding: var(--Spacing-x1) var(--Spacing-x2);
  transition: border-color 200ms ease;
}

.select {
  width: 100%;
}

.select[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.selectContainer {
  background-color: var(--Main-Grey-White);
  border: none;
  display: grid;
  gap: var(--Spacing-x1);
  grid-template-columns: auto 1fr auto;
  height: 18px;
  justify-content: flex-start;
  order: 2;
}

.arrow {
  display: none;
}

.flag {
  height: 18px;
  margin: 0;
  width: 18px;
}

.select .dialCode {
  border: none;
  color: var(--UI-Text-High-contrast);
  line-height: 1;
  justify-self: flex-start;
  padding: 0;
}
