/* SWS wallet container - hidden by default, shown only when wallets are available */
.sws-legacy-wallets {
  display: none;
  margin-bottom: 1rem;
}

/* Show container when it has active wallet buttons */
.sws-legacy-wallets.has-wallets {
  display: block;
}

/* Individual wallet button containers */
.sws-legacy-wallets > div {
  display: none;
  height: 40px;
  margin: 0 0 1em 0;
}

/* Show only wallet buttons that are successfully initialized */
.sws-legacy-wallets > div.wallet-active {
  display: block;
}

#sws-applepay-legacy {
  height: 40px;
  display: none;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain;
  -apple-pay-button-style: black;
}

#sws-applepay-legacy.wallet-active {
  display: inline-block;
}

#sws-gpay-legacy {
  display: none;
}

#sws-gpay-legacy.wallet-active {
  display: block;
}

#sws-afterpay-legacy {
  display: none;
}

#sws-afterpay-legacy.wallet-active {
  display: block;
}

#sws-cashapp-legacy {
  display: none;
}

#sws-cashapp-legacy.wallet-active {
  display: block;
}

.sq-card-iframe-container {
  height: auto !important;
}

/* Ensure proper spacing only when wallet buttons are visible */
.sws-legacy-wallets:empty,
.sws-legacy-wallets:not(.has-wallets) {
  display: none !important;
  margin: 0 !important;
}
