.pvh-engine-picker-field {
    display: grid;
    gap: 10px;
}

.pvh-engine-picker-label {
    font-weight: 700;
}

.pvh-engine-picker-preview {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
}

.pvh-engine-picker-thumb,
.pvh-engine-picker-result-thumb {
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.pvh-engine-picker-thumb {
    width: 74px;
    height: 44px;
    border-radius: 8px;
}

.pvh-engine-picker-thumb img,
.pvh-engine-picker-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pvh-engine-picker-info {
    min-width: 0;
}

.pvh-engine-picker-title {
    display: block;
    overflow: hidden;
    margin-bottom: 3px;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pvh-engine-picker-meta {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.pvh-engine-picker-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

body.pvh-engine-picker-open {
    overflow: hidden;
}

.pvh-engine-picker-modal[hidden] {
    display: none;
}

.pvh-engine-picker-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
}

.pvh-engine-picker-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(5px);
}

.pvh-engine-picker-modal-panel {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(760px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 48px));
    margin: 24px auto;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.pvh-engine-picker-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #eef2f7;
}

.pvh-engine-picker-modal-header h2 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 22px;
    line-height: 1.2;
}

.pvh-engine-picker-modal-header p {
    margin: 0;
    color: #64748b;
}

.pvh-engine-picker-modal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #111827;
    background: #fff;
    cursor: pointer;
}

.pvh-engine-picker-modal-search {
    padding: 16px 24px;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
}

.pvh-engine-picker-search {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
}

.pvh-engine-picker-results {
    display: grid;
    gap: 10px;
    overflow: auto;
    padding: 18px 24px 24px;
}

.pvh-engine-picker-result {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-align: left;
    background: #fff;
    cursor: pointer;
}

.pvh-engine-picker-result:hover,
.pvh-engine-picker-result:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.pvh-engine-picker-result-thumb {
    width: 96px;
    height: 54px;
    border-radius: 10px;
}

.pvh-engine-picker-result-main {
    min-width: 0;
}

.pvh-engine-picker-result-main strong,
.pvh-engine-picker-result-main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pvh-engine-picker-result-main strong {
    color: #111827;
}

.pvh-engine-picker-result-main small {
    margin-top: 4px;
    color: #64748b;
}

.pvh-engine-picker-result-action {
    padding: 7px 12px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 700;
    font-size: 12px;
}

.pvh-engine-picker-empty {
    padding: 26px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .pvh-engine-picker-modal-panel {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
        border-radius: 14px;
    }

    .pvh-engine-picker-modal-header,
    .pvh-engine-picker-modal-search,
    .pvh-engine-picker-results {
        padding-right: 16px;
        padding-left: 16px;
    }

    .pvh-engine-picker-result {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .pvh-engine-picker-result-thumb {
        width: 76px;
        height: 44px;
    }

    .pvh-engine-picker-result-action {
        grid-column: 1 / -1;
        justify-self: start;
    }
}
