body[data-page=products-detail] .pd__cart__bg:has(+ div[data-anygift]:not(:empty)),
body[data-page=shopinshop-products-detail] .pd__cart__bg:has(+ div[data-anygift]:not(:empty)) {
  margin-bottom: 0 !important;
}
div[data-anygift]:has( > div) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background: unset;
  margin: 20px 0 35px;
}
div[data-anygift] > div {
  max-width: 240px;
  width: 100% !important;
  text-align: center;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper) {
  gap: 16px !important;
}
div[data-anygift] > div > div.anygift-gift-ui__about-button__wrapper.ag-text-right {
  margin-top: 12px !important;
  line-height: 1 !important;
  clear: both;
  display: none;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper) > button {
  border-radius: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  padding: 14px 5px !important;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper) > button:hover {
  opacity: .75 !important;
  transition: .3s;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper).ag-text-left > button:first-child {
  padding: 14px 15px 14px 5px !important;
  background: url('/sw/onlinestore/assets/images/common/anygift_btn_bg.png') center center/cover no-repeat;
  text-shadow: -1px 2px 4px rgba(0, 0, 0, 0.2);
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper).ag-text-left > button:first-child::before {
  content: '';
  height: 19px;
  width: 25px;
  margin-right: 8px;
  background: url('/sw/onlinestore/assets/images/common/anygift_btn_ico.png') center center/contain no-repeat;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper).ag-text-left > button + button {
  border-color: #D3D2CF !important;
  color: #45433E !important;
  display: none !important;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper).ag-text-left > button + button:hover {
  opacity: 0.75;
}
div[data-anygift] > div > div.anygift-gift-ui__about-button__wrapper.ag-text-right > button {
  height: auto !important;
}
div[data-anygift] > div > div.anygift-gift-ui__about-button__wrapper.ag-text-right > button > div {
  margin-top: 0 !important;
}
div[data-anygift] .js-anygift-added-detail-link {
  margin-top: 12px;
  margin-bottom: 0;
  float: unset;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper).ag-text-left > button:first-child:disabled {
  padding: 14px 5px 14px 28px !important;
  background: #45433E url(/sw/onlinestore/assets/images/common/ico_gift_white.svg) center left 20px / 16px auto no-repeat;

  background-color: #d3d2cf;
  color: #807f7d;
  pointer-events: none;
  text-shadow: none;
  max-height: 56px;
  height: auto;
}
div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper).ag-text-left > button:first-child:disabled::before {
  content: unset;
}
body[data-page=products-detail] .anygift-floating-cart__button,
body[data-page=shopinshop-products-detail] .anygift-floating-cart__button {
  background: #85D4CC !important;
  border: 1px solid #807f7d;
}
body[data-page=products-detail] .anygift-floating-cart,
body[data-page=shopinshop-products-detail] .anygift-floating-cart {
    z-index: 11;
}
.wrapper:has(.anygift-gift-ui__container) .js-itemTagList::after {
  content: "Eギフト";
  border: 1px solid #45433e;
  color: #fff;
  line-height: 100%;
  font-size: 1.4rem;
  height: 22px;
  padding: 4px;
  background-color: #45433e;
}
@media (max-width: 800px) {
  div[data-anygift]:has( > div) {
    margin: 20px -5.3333vw 40px;
  }
  div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper) > button {
    height: 46px !important;
  }
  body[data-page=products-detail] .anygift-floating-cart,
  body[data-page=shopinshop-products-detail] .anygift-floating-cart {
    bottom: 70px !important;
  }
  div[data-anygift] > div > div:not(.anygift-gift-ui__about-button__wrapper).ag-text-left > button:first-child {
    background: url('/sw/onlinestore/assets/images/common/anygift_btn_bg_sp.png') center center/cover no-repeat;
  }
}
