.nd-payment-panel {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.nd-payment-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0;
  color: #24201e;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.nd-payment-panel__summary::-webkit-details-marker {
  display: none;
}

.nd-payment-panel__chevron {
  width: 6px;
  height: 6px;
  margin: 0 3px 0 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nd-payment-panel[open] .nd-payment-panel__chevron {
  transform: rotate(225deg);
}

.nd-payment-panel__brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, 38px);
  gap: 3px 12px;
  max-width: 488px;
  padding-top: 2px;
}

.nd-payment-panel__brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 24px;
  min-width: 38px;
  padding: 1px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 2px;
}

.nd-payment-panel__brand > svg,
.nd-payment-panel__brand img {
  display: block;
  width: 100%;
  max-width: 34px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 959px) {
  .is-sticky > .product-detail__buy-buttons,
  .is-sticky > .block-product-buy-button-group {
    padding: 8px max(var(--page-padding), 16px)
      calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .is-sticky > .product-detail__buy-buttons .product-detail__form .form__buttons {
    gap: 0;
  }

  .is-sticky > .product-detail__buy-buttons .product-detail__form .form__buttons > .button[name="add"],
  .is-sticky > .product-detail__buy-buttons .nd-payment-panel,
  .is-sticky > .block-product-buy-button-group > :not(.payment-button-wrapper),
  .is-sticky > .block-product-buy-button-group .nd-payment-panel,
  .is-sticky .shopline-payment-button-wrapper > .pay-button-common-item-express {
    display: none !important;
  }

  .is-sticky .shopline-payment-button-wrapper {
    display: block !important;
    min-height: 52px;
    margin: 0 !important;
  }

  .is-sticky .shopline-payment-button-wrapper > .pay-button-buy-now {
    display: flex !important;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
  }
}

@media (max-width: 599px) {
  .nd-payment-panel {
    margin-top: 10px;
  }

  .nd-payment-panel__summary {
    min-height: 44px;
  }

  .nd-payment-panel__brands {
    column-gap: 7px;
    max-width: 100%;
  }
}
