/**
 * App Store badge — block editor sets width on the <figure>, not only <img>.
 * These rules target both so the badge size always applies (also after Site Editor saves).
 */
:root {
  --booklex-appstore-badge-max: 196px;
}

.wp-block-image.booklex-appstore-badge,
figure.booklex-appstore-badge {
  width: min(var(--booklex-appstore-badge-max), 100%) !important;
  max-width: min(var(--booklex-appstore-badge-max), 100%) !important;
  box-sizing: border-box;
}

.booklex-appstore-badge a {
  display: block;
  line-height: 0;
}

.booklex-appstore-badge img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
