/* Pallet dropdown cards, shared menu + trigger for every select/picker. */

.pallet-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.pallet-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.pallet-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 12px 0 14px;
  border: 1px solid var(--gray-300, #D8DEE5);
  border-radius: 8px;
  background: #F7F9FB;
  color: var(--ink, #101820);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.011em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.pallet-select-trigger:hover {
  background: #fff;
  border-color: #C5CDD6;
}

.pallet-select-trigger:focus {
  outline: none;
}

.pallet-select-trigger:focus-visible {
  background: #fff;
  border-color: var(--blue, #246BFE);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, .12);
}

.pallet-select-trigger[aria-expanded="true"] {
  background: #fff;
  border-color: var(--blue, #246BFE);
}

.pallet-select-trigger:disabled {
  cursor: default;
  opacity: .55;
}

.pallet-select-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-select-trigger::after {
  content: "";
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  background: currentColor;
  opacity: .72;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 5.8L8 10.4L12.5 5.8' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 5.8L8 10.4L12.5 5.8' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}

.pallet-select-trigger.onb-input,
.pallet-select-trigger.f-input,
.pallet-select-trigger.offer-control {
  height: 46px;
  min-height: 46px;
  padding: 0 12px 0 14px;
  background-image: none;
}

.pallet-select--inline {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
  line-height: 1;
}

.pallet-select--inline .pallet-select-trigger {
  width: auto;
  min-height: 0;
  height: auto;
  padding: 0;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
}

.pallet-select--inline .pallet-select-trigger:hover,
.pallet-select--inline .pallet-select-trigger:focus-visible,
.pallet-select--inline .pallet-select-trigger[aria-expanded="true"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.pallet-select--inline .pallet-select-value {
  flex: 0 1 auto;
  line-height: 1;
}

.pallet-select--inline .pallet-select-trigger::after {
  align-self: center;
}

.launch-field .pallet-select-trigger,
.checkout-field .pallet-select-trigger,
.drop-option-row .pallet-select-trigger {
  min-height: 44px;
  font-size: 13px;
}

.pallet-select-menu {
  position: fixed;
  z-index: 120;
  box-sizing: border-box;
  max-height: min(320px, calc(100vh - 24px));
  overflow: auto;
  padding: 6px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(16, 24, 32, .16), 0 0 0 1px rgba(16, 24, 32, .06);
}

.pallet-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink, #101820);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.011em;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.pallet-select-option:hover,
.pallet-select-option.is-active {
  background: #F1F3F5;
}

.pallet-select-option[aria-selected="true"] {
  background: var(--blue, #246BFE);
  color: #fff;
}

.pallet-select-option[aria-selected="true"]:hover,
.pallet-select-option[aria-selected="true"].is-active {
  background: var(--blue, #246BFE);
  color: #fff;
}

.pallet-select-option:disabled,
.pallet-select-option[aria-disabled="true"] {
  cursor: default;
  opacity: .42;
  background: transparent;
}

.pallet-select-check {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.pallet-select-check svg {
  width: 14px;
  height: 14px;
  display: block;
}

.pallet-select-option-label {
  min-width: 0;
  flex: 1 1 auto;
}

.picker[aria-expanded="true"] {
  border-color: var(--blue, #246BFE);
}

@media (max-width: 760px) {
  .pallet-select-trigger {
    height: 48px;
    min-height: 48px;
    font-size: 16px;
  }
  .pallet-select--inline .pallet-select-trigger {
    min-height: 0;
    height: auto;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pallet-select-trigger,
  .pallet-select-menu {
    transition: none;
  }
}
