/**
 * Selector de métodos de pago (checkout): una sola línea, sin parpadeo.
 * El select nativo queda accesible/oculto; la UI es un listbox de chips.
 */
.pm-field {
    position: relative;
    margin-bottom: 20px;
}

.pm-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.pm-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.pm-picker {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 #f1f5f9;
    contain: layout paint;
}

.pm-picker::-webkit-scrollbar {
    height: 4px;
}

.pm-picker::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

.pm-chip {
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: max-content;
    max-width: none;
    padding: 10px 14px;
    margin: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    scroll-snap-align: start;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-chip:hover {
    border-color: #D4AF37;
    background: #fffbeb;
}

.pm-chip:focus-visible {
    outline: 2px solid #1e3d73;
    outline-offset: 2px;
}

.pm-chip.is-selected {
    border-color: #1e3d73;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    box-shadow: 0 0 0 1px #1e3d73 inset, 0 6px 14px rgba(30, 61, 115, 0.12);
}

.pm-chip__icon {
    flex: 0 0 auto;
    font-size: 1.05em;
    line-height: 1;
}

.pm-chip__label {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .pm-chip {
        flex: 0 0 auto;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .pm-picker {
        gap: 6px;
        padding-bottom: 10px;
    }

    .pm-chip {
        min-height: 42px;
        padding: 8px 12px;
        font-size: 13px;
    }
}
