/* "Bayar dengan" dropdown (fp2-paydrop.js): a view over the real select[name="pembayaran"], which stays in the page
 * (visually hidden) as the source of truth. All widths; on phones the panel is a bottom sheet. */
.fp2-pd-src {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.fp2-pd {
  position: relative;
}

.fp2-pd-btn {
  width: 100%;
  min-height: 56px;
  padding: 6px 14px 6px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--fp2-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--fp2-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s;
}

.fp2-pd-btn:hover:not(:disabled),
.fp2-pd-btn:focus-visible,
.fp2-pd.is-open .fp2-pd-btn {
  border-color: var(--fp2-primary);
  outline: none;
}

.fp2-pd-btn.is-disabled {
  background: var(--fp2-page);
  cursor: not-allowed;
  opacity: .7;
}

.fp2-pd-ico {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--fp2-page);
  color: var(--fp2-primary-dark);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fp2-pd-ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.fp2-pd-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fp2-pd-text b {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp2-pd-text small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fp2-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp2-pd-chev {
  flex: none;
  display: grid;
  color: var(--fp2-muted);
  transition: transform .15s;
}

.fp2-pd.is-open .fp2-pd-chev {
  transform: rotate(180deg);
}

.fp2-pd-panel {
  position: absolute;
  z-index: 60;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 400px;
  overflow-y: auto;
  padding: 6px;
  border: 1.5px solid var(--fp2-border-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 40, 60, .16);
}

.fp2-pd-panel[hidden] {
  display: none;
}

.fp2-pd-panel.is-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.fp2-pd-title,
.fp2-pd-backdrop {
  display: none;
}

.fp2-pd-item {
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.fp2-pd-item.is-active {
  background: var(--fp2-page);
}

.fp2-pd-item.is-on {
  background: var(--fp2-primary-soft);
}

.fp2-pd-item.is-on .fp2-pd-text b {
  color: var(--fp2-primary-dark);
}

.fp2-pd-check {
  flex: none;
  width: 18px;
  display: grid;
  color: var(--fp2-primary);
}

.fp2-pd-item.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.fp2-pd-item.is-disabled.is-active {
  background: transparent;
}

@media (max-width: 760px) {
  .fp2-pd-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(10, 25, 40, .45);
  }

  .fp2-pd-panel {
    position: fixed;
    z-index: 1200;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    max-height: min(70vh, 520px);
    padding: 8px 12px calc(14px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(15, 40, 60, .22);
  }

  .fp2-pd-panel.is-up {
    top: auto;
    bottom: 0;
  }

  .fp2-pd-title {
    display: block;
    padding: 8px 6px 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--fp2-text);
  }

  .fp2-pd-item {
    padding: 12px 10px;
  }
}

.fp2-pd-item.is-group-start {
  margin-top: 4px;
  border-top: 1px solid var(--fp2-border, #e3ebf1);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
