/* Componente select propio (overlay tipo CDK + animación de desplegado). */
.pd-select-host {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
}

.pd-select-host > select.pd-select {
    display: none;
}

.pd-select-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 18px !important;
    border: 1px solid #e8e0d8 !important;
    background: #fdfcfa !important;
    border-radius: 8px !important;
    font-family: inherit;
    font-size: 14px;
    color: #141414;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.pd-select-trigger:hover {
    border-color: #ff1b82;
}

.pd-select-trigger.is-placeholder .pd-select-trigger__label {
    color: #707070;
}

.pd-select-trigger__label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-select-trigger__caret {
    flex: none;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #141414;
    transition: transform 0.18s ease;
}

.pd-select-trigger[aria-expanded="true"] .pd-select-trigger__caret {
    transform: rotate(180deg);
}

/* Overlay (estilo CDK): contenedor fijo, backdrop transparente, panel flotante */
.pd-overlay-container {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.pd-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    pointer-events: auto;
}

.pd-select-panel {
    position: fixed;
    z-index: 1001;
    pointer-events: auto;
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #e8e0d8;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.pd-select-panel.is-open {
    opacity: 1;
    transform: none;
}

.pd-select-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 7px;
    font: inherit;
    color: #141414;
    cursor: pointer;
}

.pd-select-option:hover {
    background: rgba(255, 27, 130, 0.08);
}

.pd-select-option.is-selected {
    background: rgba(255, 27, 130, 0.12);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .pd-select-panel,
    .pd-select-trigger__caret {
        transition: none;
    }
}
