/* v1.10.9a 強制上書き：画像角丸なし・ボタン小型化 */

/* 商品カード/プレビュー/画像HTML/バナーすべて角丸なし */
.bkpc-card img,
.bkpc-product-card img,
.bk-product-card img,
.bkpc-preview img,
.bkpc-v197-preview-frame img,
.bkpc-image-preview img,
.bkpc-product-image img,
.bkpc-card-image img,
.bkpc-shop-group-card img,
.bkpc-shop-banner img,
.bkpc-extra-affiliate-button img,
.bkpc-extra-affiliate-buttons img {
  border-radius: 0 !important;
  object-fit: contain !important;
}

.bkpc-card-image,
.bkpc-product-image,
.bkpc-image,
.bkpc-image-html,
.bkpc-image-preview,
.bkpc-shop-banner,
.bkpc-extra-affiliate-button,
.bkpc-extra-affiliate-buttons,
.bkpc-v197-preview-frame .bkpc-card-image,
.bkpc-v197-preview-frame .bkpc-product-image,
.bkpc-v197-preview-frame .bkpc-image {
  border-radius: 0 !important;
  overflow: visible !important;
}

/* ASPバナー/画像HTMLのaにも角丸・切り抜きをさせない */
.bkpc-card-image a,
.bkpc-product-image a,
.bkpc-image a,
.bkpc-image-html a,
.bkpc-image-preview a,
.bkpc-extra-affiliate-button a {
  border-radius: 0 !important;
  overflow: visible !important;
}

/* ボタン小型化：既存の大きい指定を上書き */
.bkpc-btn,
a.bkpc-btn,
.bkpc-card .bkpc-btn,
.bkpc-product-card .bkpc-btn,
.bk-product-card .bkpc-btn,
.bkpc-extra-affiliate-button--button-wrap > a,
.bkpc-extra-affiliate-buttons .bkpc-btn-other,
.bkpc-internal-buttons .bkpc-btn-internal,
.bkpc-internal-buttons .bkpc-btn--internal,
.bkpc-display-disabled .bkpc-btn-disabled {
  min-height: 44px !important;
  padding: 10px 22px !important;
  line-height: 1.3 !important;
}

/* サービスカードで横幅が大きくなりすぎるのを抑える */
.bkpc-extra-affiliate-button--button-wrap > a,
.bkpc-extra-affiliate-buttons .bkpc-btn-other,
.bkpc-internal-buttons .bkpc-btn-internal,
.bkpc-internal-buttons .bkpc-btn--internal {
  min-width: 180px !important;
}

/* 管理画面プレビュー内も同じ */
.bkpc-v197-preview-frame .bkpc-btn,
.bkpc-v197-preview-frame a.bkpc-btn,
.bkpc-v197-preview-frame .bkpc-extra-affiliate-button--button-wrap > a {
  min-height: 44px !important;
  padding: 10px 22px !important;
  line-height: 1.3 !important;
  min-width: 180px !important;
}

/* impression 1x1は表示崩れ防止 */
.bkpc-card img[width="1"],
.bkpc-product-card img[width="1"],
.bk-product-card img[width="1"],
.bkpc-preview img[width="1"],
.bkpc-extra-affiliate-button img[width="1"],
.bkpc-card img[height="1"],
.bkpc-product-card img[height="1"],
.bk-product-card img[height="1"],
.bkpc-preview img[height="1"],
.bkpc-extra-affiliate-button img[height="1"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
