/* =========================================================================
   Papaya â€” checkout payment box fix
   Paste into Appearance > Customize > Additional CSS, then Publish.
   (Already included in papaya-theme.zip v1.1.0 â€” you only need one of the two.)
   ========================================================================= */

/* Payment method rows */
.woocommerce-checkout #payment ul.payment_methods li{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.woocommerce-checkout #payment ul.payment_methods li>label{flex:1}
.woocommerce-checkout #payment ul.payment_methods li>.payment_box{flex:0 0 100%}
/* Gateways print their accepted-card icons inside the label â€” Square prints
   seven. The global `img{display:block}` reset plus an auto left margin turned
   each one into its own right-aligned row, which is the tall empty band at
   checkout. They belong on the baseline, next to the label text. */
.woocommerce-checkout #payment ul.payment_methods li img,
.woocommerce-checkout #payment ul.payment_methods li label img{
  display:inline-block;max-height:22px;width:auto;
  margin:0 0 0 6px;padding:0;float:none;vertical-align:middle}
.woocommerce-checkout #payment ul.payment_methods li>label{
  flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;line-height:1.9}
/* A gateway that renders an empty container until it is chosen must not
   reserve height for it. */
.woocommerce-checkout #payment ul.payment_methods li>div:empty,
.woocommerce-checkout #payment .payment_box:empty{display:none}

/* Square mounts its card number / expiry / CVV as hosted iframes inside this
   container. Their contents are cross-origin, so no stylesheet of ours reaches
   the text inside â€” what we CAN control is the field they sit in. Without this
   they inherit nothing, collapse to a few pixels tall and read as broken. */
.woocommerce-checkout #payment div.payment_box .wc-square-credit-card-hosted-field,
.woocommerce-checkout #payment div.payment_box [id^="wc-square-credit-card-hosted-field"]{
  background:#fff;border:1px solid var(--pv-line);border-radius:2px;
  padding:.45em .8em;margin:0 0 .7em;box-sizing:border-box}
.woocommerce-checkout #payment div.payment_box #wc-square-credit-card-container{
  display:block;width:100%;margin:.2em 0 0}
/* Deliberately no height on the iframe: Square's own script sizes it, and
   overriding that is how these fields end up clipped. */
.woocommerce-checkout #payment div.payment_box #wc-square-credit-card-container iframe{
  display:block;width:100%;border:0}
/* Square prints its field labels as plain text nodes; give them the same
   treatment as the rest of the checkout labels rather than browser default. */
.woocommerce-checkout #payment div.payment_box label{
  display:block;font-family:var(--pv-sans);font-size:.62rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--pv-ink-70);margin:0 0 .35em}
.woocommerce-checkout #payment div.payment_box .wc-square-credit-card-card-type{
  max-height:22px;width:auto;display:inline-block;vertical-align:middle}