select[data-p7-dropdown-native] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

.p7-dropdown-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9px;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--p7-line, #deded8);
  border-radius: 12px;
  background: var(--p7-stone, #f5f5f1);
  color: var(--p7-ink, #191917);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

label:has(> .p7-dropdown-trigger, > [data-p7-dropdown-suggestions]) {
  -webkit-tap-highlight-color: transparent;
}

.p7-dropdown-trigger::after,
.src-field:has(> [data-p7-dropdown-suggestions])::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}

.p7-dropdown-trigger[aria-expanded="true"]::after,
.src-field:has(> [data-p7-dropdown-suggestions][aria-expanded="true"])::after {
  transform: translateY(2px) rotate(225deg);
}

.p7-dropdown-trigger:focus-visible,
.p7-dropdown-trigger[aria-expanded="true"],
.src-field input[data-p7-dropdown-suggestions]:focus-visible,
.src-field input[data-p7-dropdown-suggestions][aria-expanded="true"] {
  outline: 2px solid #0876b9;
  outline-offset: 0;
  background-color: white;
}

.p7-dropdown-trigger[aria-disabled="true"] {
  opacity: 0.56;
  cursor: default;
}

.cv-compare-item label:has(> .p7-dropdown-trigger)::after,
.v7-calc-select:has(> .p7-dropdown-trigger)::after {
  display: none;
}

.cv-compare-item .p7-dropdown-trigger {
  min-height: 53px;
  border-color: transparent;
  font-size: var(--cv-copy);
}

.cv-compare-sticky.is-fixed .p7-dropdown-trigger {
  min-height: 42px;
  font-size: 17px;
}

.v7-calc-select > .p7-dropdown-trigger {
  display: block;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  font: inherit;
}

.v7-calc-select > .p7-dropdown-trigger::after {
  position: absolute;
  top: 50%;
  right: 18px;
}

.rf-contact-form .p7-dropdown-trigger,
.brief-form .p7-dropdown-trigger {
  margin-top: 7px;
}

.src-field:has(> [data-p7-dropdown-suggestions]) {
  position: relative;
}

.src-field:has(> [data-p7-dropdown-suggestions])::after {
  position: absolute;
  right: 16px;
  bottom: 18px;
}

.src-field input[data-p7-dropdown-suggestions] {
  padding-right: 37px;
}

header > #selector + .p7-dropdown-trigger {
  width: min(100%, 370px);
}

.p7-dropdown-menu {
  box-sizing: border-box;
  position: fixed;
  inset: auto;
  z-index: 9100;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--p7-line, #deded8);
  border-radius: 14px;
  background: white;
  box-shadow:
    0 12px 32px #20201b1f,
    0 2px 6px #20201b0d;
  color: var(--p7-ink, #191917);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  font-family: var(--p7-font, system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.35;
}

.p7-dropdown-menu[hidden] {
  display: none;
}

.p7-dropdown-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  min-height: 44px;
  border-radius: 9px;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.p7-dropdown-option[aria-selected="true"] {
  color: #075682;
  background: #eef6fb;
}

.p7-dropdown-option[aria-selected="true"]::after {
  content: "";
  width: 10px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.p7-dropdown-option[data-active] {
  box-shadow: inset 0 0 0 1px #94c2df;
}

.p7-dropdown-option[aria-disabled="true"] {
  color: #858680;
  cursor: default;
}

@media (hover: hover) {
  .p7-dropdown-trigger:hover:not([aria-disabled="true"]) {
    border-color: #c5c6be;
  }
  .p7-dropdown-option:hover:not(
      [aria-disabled="true"],
      [aria-selected="true"]
    ) {
    background: #f3f3ef;
  }
}

@media (max-width: 768px) {
  .cv-compare-item .p7-dropdown-trigger,
  .cv-compare-sticky.is-fixed .p7-dropdown-trigger {
    min-height: 44px;
    padding-inline: 10px;
    gap: 7px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  header > #selector + .p7-dropdown-trigger {
    width: 100%;
    margin-top: 10px;
  }
}

@media (forced-colors: active) {
  .p7-dropdown-option[data-active] {
    outline: 1px solid Highlight;
    outline-offset: -1px;
  }
}
