/* Keep native PayPal shortcut inputs, links and click handlers intact. */
.paypal-logo {
  box-sizing: border-box; display: block; float: none;
  width: 100%; max-width: 100%; min-width: 0; margin: 10px auto 0;
}
.paypal-logo a {
  box-sizing: border-box; display: block; width: 100%; max-width: 100%; min-width: 0;
}
/* Support both linked images and native image inputs. */
.paypal-logo img,
.paypal-logo input[type="image"] {
  box-sizing: border-box; display: block; width: 100% !important; max-width: 100% !important;
  height: 44px !important; min-width: 0; margin: 0; padding: 0;
  border: 1px solid #111; border-radius: 8px; background: #111;
  object-fit: contain; cursor: pointer; box-shadow: none;
}
.paypal-logo a:hover img,
.paypal-logo input[type="image"]:hover { background-color: #292929; border-color: #292929; }
.paypal-logo a:focus-visible,
.paypal-logo input[type="image"]:focus-visible {
  outline: 3px solid #2459ed; outline-offset: 3px; border-radius: 8px;
}
.paypal-logo input[type="image"]:disabled { opacity: .5; cursor: not-allowed; }
/* PDP: follow the actual native CTA, including quantity wrapping and font zoom.
   Without JS the shortcut remains a normal full-width row. Cart/drawer stay compact. */
.blue39-native-info > .card > .flex.justify-end:has(.paypal-logo) {
  box-sizing: border-box; width: var(--blue39-paypal-width, 100%); max-width: 100%;
  padding: 0; margin: 0 0 0 var(--blue39-paypal-left, 0px);
  justify-content: stretch;
}
.blue39-native-info .paypal-logo,
.blue39-native-info .paypal-logo img,
.blue39-native-info .paypal-logo input[type="image"] { max-width: none !important; }

/* Product shortcut spans quantity + purchase action with the same pill shape. */
.blue39-native-info .paypal-logo img,
.blue39-native-info .paypal-logo input[type="image"],
.blue39-native-info .paypal-logo a:focus-visible { border-radius: 999px; }
/* Once our validated private shortcut is present, hide older native image copies. */
#cart-drawer:has(.blue39-minicart-paypal) .paypal-logo:not(.blue39-minicart-paypal) { display: none; }

/* Private cart HTML is sanitized: its allowed anchor carries the static artwork.
   Drawer-only rules leave the approved product and cart shortcuts unchanged. */
#cart-drawer .blue39-minicart-paypal a {
  position: relative; height: 44px; min-height: 44px;
  border: 1px solid #111; border-radius: 8px;
  background: #111 url("../images/paypal-express-button.svg") center / contain no-repeat;
}
#cart-drawer .blue39-minicart-paypal a:hover { background-color: #292929; }
#cart-drawer .blue39-minicart-paypal a > span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (forced-colors: active) {
  #cart-drawer .blue39-minicart-paypal a {
    display: flex; align-items: center; justify-content: center;
    background-image: none; color: ButtonText; border-color: ButtonText;
  }
  #cart-drawer .blue39-minicart-paypal a > span {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
  }
}
