/* Classic checkout — payment method logos + default card selection */

.wc_payment_method.payment_method_ss_paypal > label,
.wc_payment_method.payment_method_ss_card > label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: #53616f;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.wc_payment_method.payment_method_ss_paypal > label,
.wc_payment_method.payment_method_ss_card > label {
  justify-content: space-between;
  width: 100%;
}

.wc_payment_method.payment_method_ss_paypal,
.wc_payment_method.payment_method_ss_card {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 1px solid var(--om-line, #e1e4e8);
  border-radius: var(--om-radius-sm, 10px);
  background: var(--om-bg-alt, #fff);
  color: var(--om-ink, #111827);
  font-family: inherit;
  overflow: hidden;
}

.wc_payment_method.payment_method_ss_paypal.sscb-payment-selected,
.wc_payment_method.payment_method_ss_card.sscb-payment-selected {
  border-color: var(--om-dark, #111);
  box-shadow: 0 0 0 1px var(--om-dark, #111);
}

.wc_payment_method.payment_method_ss_paypal > input.input-radio,
.wc_payment_method.payment_method_ss_card > input.input-radio {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 0 12px !important;
}

.wc_payment_method.payment_method_ss_paypal > input.input-radio + label,
.wc_payment_method.payment_method_ss_card > input.input-radio + label {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  padding: 0 12px 0 0 !important;
  color: var(--om-ink, #111827);
  font-size: 16px;
  font-weight: 600;
}

.wc_payment_method.payment_method_ss_paypal > label .sscb-payment-mark,
.wc_payment_method.payment_method_ss_card > label .sscb-payment-mark,
.wc_payment_method.payment_method_ss_paypal > label img,
.wc_payment_method.payment_method_ss_card > label img {
  display: block !important;
  flex: 0 0 auto;
  height: 22px;
  width: auto;
  max-width: 72px;
  margin: 0 0 0 auto !important;
  object-fit: contain;
}

.wc_payment_method.payment_method_ss_paypal > label .sscb-payment-mark,
.wc_payment_method.payment_method_ss_paypal > label img {
  height: 24px;
  max-width: 104px;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.wc_payment_method.payment_method_ss_card > label .sscb-payment-mark--stripe,
.wc_payment_method.payment_method_ss_card > label img.sscb-payment-mark--stripe {
  height: 22px;
  max-width: 64px;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.payment_method_ss_card .payment_box {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 12px 8px 18px !important;
  background: var(--om-bg-alt, #fff) !important;
  color: var(--om-ink, #111827);
}

.payment_method_ss_card .payment_box::before,
.payment_method_ss_card .payment_box::after {
  display: none !important;
}

.payment_method_ss_paypal .payment_box {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 0 15px 15px !important;
  background: transparent !important;
  color: #53616f;
  font-size: 13px;
  line-height: 1.45;
}

.payment_method_ss_paypal .payment_box::before,
.payment_method_ss_paypal .payment_box::after {
  display: none !important;
}

.sscb-paypal-inline p {
  margin: 0;
  color: #53616f;
  font-size: 13px;
  line-height: 1.45;
}

.sscb-paypal-transition {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
}

.sscb-paypal-transition.is-visible {
  display: grid;
}

.sscb-paypal-transition__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #d5d9df;
  border-radius: 999px;
  background: #fff;
  color: #001435;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

.sscb-paypal-transition__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #dbeafe;
  border-top-color: #0070ba;
  border-radius: 50%;
  animation: sscb-paypal-spin 0.8s linear infinite;
}

@keyframes sscb-paypal-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .wc_payment_method.payment_method_ss_paypal,
  .wc_payment_method.payment_method_ss_card {
    margin-bottom: 12px !important;
  }

  .wc_payment_method.payment_method_ss_paypal > input.input-radio + label,
  .wc_payment_method.payment_method_ss_card > input.input-radio + label {
    min-height: 62px;
    font-size: 16px;
  }

  .wc_payment_method.payment_method_ss_paypal > label img,
  .wc_payment_method.payment_method_ss_card > label img {
    height: 22px;
    max-width: 72px;
  }

  .wc_payment_method.payment_method_ss_paypal > label img {
    max-width: 96px;
  }
}
