/* ===== shop/book-guarantee block (front-end + shared) ===== */
.shop-book-guarantee {
  box-sizing: border-box;
  width: 100%;
  margin: 1.2em 0;
  padding: 48px 24px;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, Helvetica, sans-serif;
}
.shop-book-guarantee *,
.shop-book-guarantee *::before,
.shop-book-guarantee *::after {
  box-sizing: border-box;
}
.shop-book-guarantee__inner {
  display: flex;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== left image ===== */
.shop-book-guarantee__media {
  flex: 0 0 auto;
  width: 45%;
  min-width: 0;
}
.shop-book-guarantee__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.shop-book-guarantee__media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

/* ===== right content ===== */
.shop-book-guarantee__content {
  flex: 1 1 auto;
  min-width: 0;
}
.shop-book-guarantee__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #141414;
  text-transform: none;
}
.shop-book-guarantee__desc {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #4b5563;
}
.shop-book-guarantee__features {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.shop-book-guarantee__feature {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.shop-book-guarantee__feature-icon {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}
.shop-book-guarantee__feature-text {
  display: inline;
}

/* ===== CTA button ===== */
.shop-book-guarantee__btn {
  display: inline-block;
  padding: 14px 28px;
  background: #8c1f27;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.shop-book-guarantee__btn:hover {
  background: #6b1a22;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(140, 31, 39, 0.3);
}
.shop-book-guarantee__btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===== responsive ===== */
@media (max-width: 768px) {
  .shop-book-guarantee {
    padding: 32px 16px;
  }
  .shop-book-guarantee__inner {
    flex-direction: column;
    gap: 24px;
  }
  .shop-book-guarantee__media {
    width: 100%;
  }
}

/* ===== editor-only ===== */
.shop-book-guarantee.is-editor .is-deletable {
  position: relative;
}
.shop-del-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  z-index: 5;
}
.is-deletable:hover > .shop-del-btn {
  display: flex;
}
.shop-guarantee__feature-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  z-index: 5;
}
.shop-book-guarantee.is-editor .shop-book-guarantee__feature:hover > .shop-guarantee__feature-remove {
  display: flex;
}
.shop-guarantee__panel-hint {
  font-weight: 600;
  color: #141414;
}
