.yk-phone {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.yk-phone__cc,
.yk-phone__cc:hover,
.yk-phone__cc:focus,
.yk-phone__cc:active {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  left: auto !important;
  transform: translateY(-50%);
  display: flex !important;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  z-index: 3;
  cursor: pointer;
}

.yk-phone__flag {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.yk-phone__flag img,
.yk-phone__opt-flag img {
  display: block;
  width: 20px;
  height: 15px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.yk-phone__dial {
  display: inline !important;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0;
}

.yk-phone__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #555;
}

.yk-phone__input,
.yk-phone input[type="tel"],
.yk-checkout .yk-phone .input-text {
  display: block;
  min-width: 0;
  width: 100% !important;
  border-radius: 8px !important;
  padding: 18px 88px 8px 12px !important;
}

.yk-phone__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.yk-phone__opt,
.yk-phone__opt:hover,
.yk-phone__opt:focus,
.yk-phone__opt:active {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  text-transform: none !important;
  font-size: 13px !important;
  color: #111 !important;
  cursor: pointer;
}

.yk-phone__opt:hover,
.yk-phone__opt.is-active {
  background: #f4f4f4 !important;
}

.yk-phone__opt-flag {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.yk-phone__opt-name {
  flex: 1;
}

.yk-phone__opt-dial {
  color: #666;
  font-weight: 600;
}

.yk-country-row .select2-selection__rendered,
.yk-country-row select option {
  font-size: 14px;
}

@media (max-width: 768px) {
  .yk-phone__flag {
    font-size: 18px;
  }

  .yk-phone__flag img,
  .yk-phone__opt-flag img {
    width: 18px;
    height: 13px;
  }

  .yk-phone__list {
    max-height: 50vh;
  }
}
