.gdpc-product-payments {
  margin: 14px 0 18px;
}

.gdpc-product-payments *,
.gdpc-product-payments-modal * {
  box-sizing: border-box;
}

.gdpc-product-payments__trigger {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 520px;
  min-height: 58px;
  padding: 10px 12px;
  color: #153146;
  background: #fff;
  border: 1px solid #cfdce6;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.gdpc-product-payments__trigger:hover,
.gdpc-product-payments__trigger:focus {
  background: #fbfdff;
  border-color: #88b5cf;
  outline: 0;
}

.gdpc-product-payments__trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #0d6fab;
  background: #eaf5fb;
  border: 1px solid #cfe3ef;
  border-radius: 8px;
  font-size: 20px;
}

.gdpc-product-payments__trigger-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gdpc-product-payments__trigger-copy strong {
  color: #102b3a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.gdpc-product-payments__trigger-copy span {
  color: #526b7d;
  font-size: 12px;
  line-height: 1.3;
}

.gdpc-product-payments__trigger-link {
  color: #0d6fab;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.gdpc-product-payments-modal[hidden] {
  display: none !important;
}

.gdpc-product-payments-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gdpc-product-payments-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 42, 0.5);
}

.gdpc-product-payments-modal__dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1120px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  min-width: 0;
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
  color: #102b3a;
  background: #fff;
  border: 1px solid #d7e2ea;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(13, 35, 52, 0.16);
}

.gdpc-product-payments-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #e2e9ef;
}

.gdpc-product-payments-modal__header > div {
  min-width: 0;
}

.gdpc-product-payments-modal__kicker {
  margin: 0 0 4px;
  color: #0d6fab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.gdpc-product-payments-modal__header h2 {
  margin: 0;
  color: #102b3a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.gdpc-product-payments-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #233746;
  background: #fff;
  border: 1px solid #d7e1ea;
  border-radius: 8px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.gdpc-product-payments-modal__close:hover,
.gdpc-product-payments-modal__close:focus {
  border-color: #8ab5cd;
  outline: 0;
}

.gdpc-product-payments-modal__tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 24px 0;
  overflow-x: auto;
  border-bottom: 1px solid #e2e9ef;
}

.gdpc-product-payments-modal__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px 11px;
  color: #526b7d;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.gdpc-product-payments-modal__tab.is-active {
  color: #0b4f7a;
  border-bottom-color: #0d6fab;
}

.gdpc-product-payments-modal__tab:focus {
  outline: 2px solid #13679c;
  outline-offset: -2px;
}

.gdpc-product-payments-modal__tab-icon,
.gdpc-product-payment-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #0d6fab;
  background: #edf7fc;
  border: 1px solid #d3e8f2;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gdpc-product-payments-modal__tab-icon {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.gdpc-product-payment-panel__icon {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.gdpc-product-payments-modal__tab-icon--dashicon,
.gdpc-product-payment-panel__icon--dashicon {
  font-size: 18px;
}

.gdpc-product-payments-modal__tab-icon--image img,
.gdpc-product-payment-panel__icon--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gdpc-product-payments-modal__body {
  min-width: 0;
  overflow: auto;
  padding: 18px 24px 24px;
  background: #f6f8fa;
}

.gdpc-product-payment-panel[hidden] {
  display: none !important;
}

.gdpc-product-payment-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.gdpc-product-payment-panel__summary {
  display: flex;
  gap: 12px;
  align-items: center;
}

.gdpc-product-payment-panel__summary h3 {
  margin: 0;
  color: #102b3a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.gdpc-product-payment-panel__summary p {
  margin: 3px 0 0;
  color: #617485;
  font-size: 13px;
  line-height: 1.35;
}

.gdpc-product-payment-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.gdpc-product-payment-panel__plans,
.gdpc-product-payment-panel__methods {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e7ed;
  border-radius: 8px;
}

.gdpc-product-payment-panel__plans h4,
.gdpc-product-payment-panel__methods h4 {
  margin: 0 0 12px;
  color: #102b3a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.gdpc-product-plan-list {
  display: grid;
  gap: 8px;
}

.gdpc-product-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  background: #fbfdff;
  border: 1px solid #dce6ed;
  border-radius: 8px;
  min-width: 0;
}

.gdpc-product-plan__main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gdpc-product-plan__main strong {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: baseline;
  color: #092f43;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}

.gdpc-product-plan__badge {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  padding: 3px 8px;
  color: #7a4f00;
  background: #fff3d8;
  border: 1px solid #f4d28d;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.gdpc-product-plan__total,
.gdpc-product-plan__meta {
  color: #5c7080;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.gdpc-product-plan__total span {
  color: #243c4f;
  font-weight: 800;
}

.gdpc-product-plan__meta {
  text-align: right;
  white-space: nowrap;
}

.gdpc-product-gateway-list {
  display: grid;
  gap: 8px;
}

.gdpc-product-gateway {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 10px;
  background: #fbfdff;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
}

.gdpc-product-gateway__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e7ed;
  border-radius: 6px;
}

.gdpc-product-gateway__icon img,
.gdpc-product-gateway__icon svg {
  display: block;
  max-width: 42px;
  max-height: 24px;
  height: auto;
}

.gdpc-product-gateway__fallback {
  color: #0d6fab;
  font-size: 12px;
  font-weight: 900;
}

.gdpc-product-gateway__dashicon {
  color: #0d6fab;
  font-size: 20px;
  line-height: 1;
}

.gdpc-product-gateway strong {
  color: #243c4f;
  font-size: 13px;
  line-height: 1.25;
}

.gdpc-product-card-brands {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e0e7ed;
}

.gdpc-product-card-brands > span {
  color: #5c7080;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.gdpc-product-card-brands > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gdpc-product-card-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 52px;
  padding: 4px 7px;
  color: #102b3a;
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.gdpc-product-card-brand img {
  display: block;
  max-width: 42px;
  max-height: 22px;
  height: auto;
}

.gdpc-product-card-brand img:not([hidden]) + span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.gdpc-product-card-brand.is-text-fallback {
  justify-content: flex-start;
}

.gdpc-product-payment-panel__empty {
  margin: 0;
  color: #617485;
  font-size: 13px;
  line-height: 1.45;
}

body.gdpc-product-payments-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .gdpc-product-payments-modal {
    padding: 0;
    place-items: end center;
  }

  .gdpc-product-payments-modal__dialog {
    width: 100%;
    max-width: 100vw;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }

  .gdpc-product-payments-modal__header {
    position: relative;
    padding-right: 66px;
  }

  .gdpc-product-payments-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
  }

  .gdpc-product-payment-panel__grid {
    grid-template-columns: 1fr;
  }

  .gdpc-product-plan {
    grid-template-columns: 1fr;
  }

  .gdpc-product-plan__meta {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .gdpc-product-payments__trigger {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .gdpc-product-payments__trigger-link {
    grid-column: 2;
  }

  .gdpc-product-payments-modal__header {
    padding: 18px 16px 12px;
  }

  .gdpc-product-payments-modal__tabs {
    padding: 10px 16px 0;
  }

  .gdpc-product-payments-modal__body {
    padding: 16px;
  }
}
