/* One compact list for every payment provider; logos are local display assets. */
.payment-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 0;
  width: 76px;
  height: 34px;
}
.payment-brand img {
  display: block;
  max-width: 100%;
  width: 76px;
  height: 32px;
  object-fit: contain;
}
.payment-brand .payment-symbol {
  width: 34px;
  height: 34px;
  flex: none !important;
  border-radius: 9px;
}
.checkout-shell .checkout-page .payment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.checkout-shell .checkout-page .payment-options .payment-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 18px;
  grid-template-areas: "brand name total radio" "brand fee total radio";
  column-gap: 11px;
  row-gap: 2px;
  align-items: center;
  min-height: 60px;
  padding: 8px 11px;
  border: 1px solid #e0e6ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.checkout-shell .checkout-page .payment-options .payment-card:hover {
  border-color: #b9c9e3;
  background: #fafcff;
}
.checkout-shell
  .checkout-page
  .payment-options
  .payment-card:has(input:checked) {
  border-color: #547bd3;
  background: #f6f8ff;
  box-shadow: inset 0 0 0 1px #547bd3;
}
.checkout-shell
  .checkout-page
  .payment-options
  .payment-card:has(input:focus-visible) {
  outline: 3px solid #b2c7fb;
  outline-offset: 2px;
}
.checkout-shell
  .checkout-page
  .payment-options
  .payment-card:has(input:disabled) {
  display: grid;
  min-height: 60px;
  opacity: 0.55;
  cursor: not-allowed;
}
.checkout-shell .checkout-page .payment-card > input {
  grid-area: radio;
  position: static;
  align-self: center;
  justify-self: end;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}
.checkout-shell .checkout-page .payment-card .payment-card-top {
  grid-area: brand;
  display: flex;
  width: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.checkout-shell .checkout-page .payment-card-top .payment-brand {
  width: 68px;
  height: 32px;
  flex: none;
}
.checkout-shell .checkout-page .payment-card .payment-card-copy {
  grid-area: name;
  align-self: end;
  min-width: 0;
  width: auto;
  padding: 0;
}
.checkout-shell .checkout-page .payment-card-copy b {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.checkout-shell .checkout-page .payment-card .payment-fee {
  grid-area: fee;
  align-self: start;
  width: auto;
  font-size: 10px;
  line-height: 1.35;
  color: #6e7c93;
  margin: 0;
}
.checkout-shell .checkout-page .payment-card .payment-card-total {
  grid-area: total;
  align-self: center;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
  color: #253b5c;
  white-space: nowrap;
}
.checkout-shell .checkout-page .payment-card-total:empty {
  display: none;
}
.checkout-shell .checkout-page .payment-recommendation {
  margin-bottom: 13px;
  font-size: 12px;
}
.optional-tax-choice {
  border: 1px solid #d8e3f5;
  border-radius: 12px;
  background: #f8faff;
  padding: 13px;
  margin: 16px 0 8px;
}
.optional-tax-choice legend {
  padding: 0 5px;
  color: #233d67;
  font-size: 13px;
  font-weight: 700;
}
.optional-tax-choice > p {
  margin: 0 0 10px;
  color: #687a96;
  font-size: 11px;
  line-height: 1.55;
}
.optional-tax-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.optional-tax-options label {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #dce4f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}
.optional-tax-options label:has(input:checked) {
  border-color: #547bd3;
  background: #f2f6ff;
  box-shadow: inset 0 0 0 1px #547bd3;
}
.optional-tax-options label:has(input:focus-visible) {
  outline: 3px solid #b2c7fb;
  outline-offset: 2px;
}
.optional-tax-options input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}
.optional-tax-options span {
  min-width: 0;
}
.optional-tax-options b,
.optional-tax-options small {
  display: block;
}
.optional-tax-options b {
  color: #213858;
  font-size: 12px;
}
.optional-tax-options small {
  margin-top: 2px;
  color: #6e7d94;
  font-size: 10px;
  line-height: 1.45;
}
.checkout-shell .checkout-page #checkout-form[data-step="2"] .checkout-main {
  max-height: none;
  overflow: visible;
  padding: 0;
}
.checkout-shell .checkout-page #checkout-form[data-step="2"] .checkout-summary {
  position: sticky;
  top: 90px;
}
.payment-method-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.payment-method-options label {
  align-items: center;
  padding: 8px 10px;
  min-height: 58px;
  gap: 10px;
  background: #fff;
}
.payment-method-options label:has(input:focus-visible) {
  outline: 3px solid #b2c7fb;
  outline-offset: 2px;
}
.payment-method-options label > input {
  order: 3;
  margin: 0;
  margin-left: auto;
  align-self: center;
}
.payment-method-options label > .payment-brand {
  display: flex;
  width: 64px;
  height: 32px;
  flex: none;
}
.payment-method-options .payment-method-copy {
  flex: 1;
}
@media (max-width: 1100px) {
  .checkout-shell .checkout-page .payment-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-shell .checkout-page .payment-options .payment-card {
    grid-template-columns: 66px minmax(0, 1fr) 18px;
    grid-template-areas: "brand name radio" "brand fee radio" "brand total radio";
    column-gap: 10px;
    row-gap: 2px;
    min-height: 76px;
    padding: 10px 12px;
  }
  .checkout-shell .checkout-page .payment-card-top .payment-brand {
    width: 64px;
  }
  .checkout-shell .checkout-page .payment-card .payment-card-total {
    justify-self: start;
    font-size: 12px;
    white-space: normal;
  }
  .checkout-shell .checkout-page .payment-card-copy b {
    font-size: 12px;
  }
  .checkout-shell .checkout-page .payment-card .payment-fee {
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  .checkout-shell
    .checkout-page
    #checkout-form[data-step="2"]
    .checkout-summary {
    position: static;
  }
  .checkout-shell .checkout-page .payment-options .payment-card {
    min-height: 76px;
    border-radius: 11px;
  }
  .payment-method-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .payment-method-options label {
    gap: 9px;
    padding: 10px;
  }
  .payment-method-options label > .payment-brand {
    width: 60px;
  }
  .payment-method-options .payment-method-copy small {
    font-size: 10px;
  }
  .optional-tax-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-shell .checkout-page .payment-options .payment-card {
    transition: none;
  }
}
