.flag-icon {
  width: 20px;
  height: 15px;
  margin-right: 6px;
  vertical-align: middle;
  object-fit: cover;
  display: inline-block;
}

/* =============================================
   Base styles: match Bootstrap .form-control
   Applies to ALL Select2 country dropdowns
   (white bg, border, standard form-control look)
   ============================================= */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  height: calc(1.5em + .75rem + 2px);
  padding: 3px 10px;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 13px;
  color: rgba(73, 80, 87, 0.76);
  line-height: 1.5;
  padding: 0;
  padding-right: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 4px;
}

/* =============================================
   Sidebar forms override (article-detail,
   press-release, etc.)
   Parent: .request-sample-form
   Style: grey bg (#f6f6f6), no border
   ============================================= */
.request-sample-form .select2-container--default .select2-selection--single {
  background-color: #f6f6f6;
  border: 0;
  height: auto;
  min-height: calc(1.5em + .75rem + 2px);
}

.request-sample-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: rgba(80, 80, 80, 0.76);
}

/* =============================================
   Full-page forms override (contact-us,
   request-sample, request-customisation, etc.)
   Parent: .form-section-pd-reqcus
   Style: white bg, border, height 41px
   ============================================= */
.form-section-pd-reqcus .select2-container--default .select2-selection--single {
  height: 41px;
}

/* =============================================
   Dropdown z-index fix
   .register on checkout has z-index: 9999,
   so the dropdown (appended to body) must be higher
   ============================================= */
.select2-container--open .select2-dropdown {
  z-index: 10000;
}

/* =============================================
   Dropdown results (shared across all contexts)
   ============================================= */
.select2-results__option {
  padding: 6px 10px;
  font-size: 13px;
}

.select2-results__option span {
  display: inline-flex;
  align-items: center;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #0029ff;
}

/* =============================================
   intl-tel-input: full-width wrapper
   Overrides the library default of inline-block
   so the phone input stretches to match all
   other .form-control fields in the same form.
   ============================================= */
.form-section-pd-reqcus .iti,
.request-sample-form .iti {
  width: 100%;
  display: block;
}
