.p2m-select-wrap { position: relative; width: 100%; }
.p2m-select-wrap > select { display: none !important; }
.p2m-select-button {
    display: block;
    width: 100%;
    height: 38px;
    margin-top: 0;
    padding: 0 32px 0 12px;
    border: 1px solid #dce6ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #24394c;
    font-size: 14px;
    line-height: 36px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.p2m-select-button:hover {
    border-color: #a9bfd1;
}
.p2m-select-button::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 16px;
    border: 5px solid transparent;
    border-top-color: #52677a;
    pointer-events: none;
}
.p2m-select-button:disabled {
    color: #8995a0;
    background-color: #f1f4f7;
    cursor: not-allowed;
}
.p2m-select-button:focus-visible {
    outline: none;
    border-color: #4284b5;
    box-shadow: 0 0 0 3px rgba(66, 132, 181, 0.12);
}
.p2m-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: min(220px, 40vh);
    overflow-y: auto;
    z-index: 1000;
    margin: 0;
    padding: 4px 0;
    border: 1px solid #c9d8e5;
    border-radius: 8px;
    background: white;
    box-shadow: 0 8px 24px rgba(24, 55, 82, .15);
    list-style: none;
}
.p2m-select-options[hidden] { display: none; }
.p2m-select-options button {
    display: block;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    color: #243746;
    font-size: 14px;
    text-align: left;
    white-space: normal;
    cursor: pointer;
}
.p2m-select-options button:hover,
.p2m-select-options button:focus-visible { background: #eaf3fa; outline: none; }
.p2m-select-options button:disabled { color: #a1aab2; cursor: not-allowed; }
