﻿

.psi-pick {
    position: relative;
    width: 100%;
    max-width: 360px;
    font-family: inherit;
    font-size: 13px;
    color: #111827;
}

.psi-pick-locked {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    cursor: pointer;
}

.psi-pick-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #374151;
}

.psi-pick-change {
    flex-shrink: 0;
    font-size: 12px;
    text-decoration: none;
    color: #00457c;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

    .psi-pick-change:hover {
        background-color: #f3f4f6;
    }

.psi-pick-chooser {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 1200;
    box-sizing: border-box;
}

.psi-pick-input {
    width: 100%;
    box-sizing: border-box;
    height: 30px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-family: inherit;
}

.psi-pick-results {
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.psi-pick-item {
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
}

    .psi-pick-item:last-child {
        border-bottom: none;
    }

    .psi-pick-item:hover {
        background-color: #f3f4f6;
    }

.psi-pick-cancel {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    text-decoration: none;
    color: #374151;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

    .psi-pick-cancel:hover {
        background-color: #f3f4f6;
    }

.psi-pick[data-disabled="1"] .psi-pick-locked {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.psi-pick[data-disabled="1"] .psi-pick-text {
    color: #9ca3af;
}

.psi-pick[data-disabled="1"] .psi-pick-change {
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 800px) {
    .psi-pick {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .psi-pick-chooser {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin-top: 0;
        border-radius: 0;
        padding: 14px 14px 18px 14px;
        box-shadow: none;
        z-index: 3000;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .psi-pick-results {
        flex: 1;
        max-height: none;
    }

    .psi-pick-item {
        padding: 12px 10px;
        font-size: 14px;
    }

    .psi-pick-input {
        font-size: 16px;
    }

    .psi-pick-cancel {
        font-size: 13px;
    }
}

.psi-pick-item.is-active {
  background-color: #eef2ff;
}