:root {
  --toll-country-select-min-height: 42px;
}

main > .section > div.text-input-field-link-wrapper {
  max-width: unset;
}

.tollCountry {
  max-width: var(--width-large);
  margin-top: calc(var(--spacing-xbig) * -1);
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--spacing-xbig) 0;
}

.tollCountry-select {
  box-sizing: border-box;
  position: relative;
  display: inline-block;
  width: 100%;
  background: var(--color-neutral-50);
  border: var(--spacing-1) solid var(--color-neutral-300);
  border-radius: var(--shape-border-radius-1);
  cursor: pointer;
  padding: var(--spacing-xmsmall) var(--spacing-xbig) var(--spacing-xmsmall) var(--spacing-small);
  transition: border-color 0.2s;
  min-height: var(--toll-country-select-min-height);
}

.tollCountry-select.open {
  border-color: var(--color-neutral-400);
  z-index: 10;
}

.tollCountry-select::after {
  content: "";
  position: absolute;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-bottom: var(--spacing-xxxsmall) solid var(--text-color);
  border-right: var(--spacing-xxxsmall) solid var(--text-color);
  height: var(--spacing-xsmall);
  right: var(--spacing-small);
  top: 45%;
  width: var(--spacing-xsmall);
}

.tollCountry-select.open::after {
  transform: translateY(0%) rotate(-135deg);
}

.tollCountry-select .list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--shape-border-radius-1);
  list-style-type: none;
  max-height: var(--height-4xs);
  overflow-y: auto;
  z-index: 20;
  width: 100%;
  margin-top: var(--spacing-xxsmall);
  padding-left: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tollCountry-select.open .list {
  visibility: visible;
  opacity: 1;
}

.tollCountry-select .option {
  font-weight: var(--font-weight-400);
  font-size: var(--body-font-size-m);
  line-height: 30px;
  min-height: var(--spacing-l);
  padding-left: 18px;
  padding-right: var(--spacing-l);
  cursor: pointer;
  transition: background 0.2s;
}

.tollCountry-select .list .option.selected {
  background: transparent;
  font-weight: var(--font-weight-800);
}

.tollCountry-select .list .option.disabled {
  color: var(--color-neutral-700);
}

.tollCountry-select .option.focus,
.tollCountry-select .option:not(.disabled):hover {
  background: var(--color-neutral-100);
}

.tollCountry-dynamic-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
}

.tollCountry__form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-xxbig);
  width: 100%;
}

@media (width >= 768px) {
  .tollCountry-select {
    width: 50%;
  }
}

@media (width <= 768px) {
  .tollCountry__form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-medium);
  }
}

