.animation-preview-selector {
  width: 100%;
  /* padding: 16px 0; */
}

.animation-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.animation-preview-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.animation-preview-item:hover .animation-preview-wrapper {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.animation-preview-item.is-active .animation-preview-wrapper {
  box-shadow: 0 0 0 2px #2271b1;
}

.animation-preview-item.is-active .animation-preview-wrapper button.animation-preview-button {
  background-color: #f0f6fc !important;
  border-color: #2271b1 !important;
}

.animation-preview-label {
  text-align: center;
  font-size: 11px;
  color: #757575;
  margin-top: 8px;
}

.animation-number {
  font-weight: 500;
  color: #1e1e1e;
  display: block;
}

.animation-description {
  display: none;
}

.animation-preview-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
}

.animation-preview-item .animation-preview-wrapper button.animation-preview-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  height: 42px !important;
  padding: 12px 24px;
  background-color: #fff !important;
  color: #000 !important;
  border-radius: 3px;
  position: relative;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ボタンコンテンツの基本スタイル */
.animation-preview-wrapper .wp-block-zenblocks-button-basic-content {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

/* プレビューのデフォルトスタイルを確保 */
.animation-preview-wrapper .wp-block-zenblocks-button-basic-text {
  position: relative;
  display: inline-block !important;
  color: #000 !important;
  white-space: nowrap;
  pointer-events: none;
}

.animation-preview-wrapper .wp-block-zenblocks-button-basic-text .default {
  display: block !important;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  color: #000 !important;
}

.animation-preview-wrapper .wp-block-zenblocks-button-basic-text .hover {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  color: #000 !important;
}

.animation-preview-wrapper .wp-block-zenblocks-button-basic-text .char {
  display: inline-block !important;
  color: inherit;
}

/* 強制ホバー時（autoPlay）に:hoverスタイルを適用 */
.animation-preview-wrapper button.is-force-hover .wp-block-zenblocks-button-basic-text .default {
  opacity: 0 !important;
  visibility: hidden !important;
}

.animation-preview-wrapper button.is-force-hover .wp-block-zenblocks-button-basic-text .hover {
  opacity: 1 !important;
  visibility: visible !important;
}

/* マウスホバー時（is-hover-enabled）に:hoverスタイルを適用 */
.animation-preview-wrapper.is-hover-enabled button.animation-preview-button:hover .wp-block-zenblocks-button-basic-text .default {
  opacity: 0 !important;
  visibility: hidden !important;
}

.animation-preview-wrapper.is-hover-enabled button.animation-preview-button:hover .wp-block-zenblocks-button-basic-text .hover {
  opacity: 1 !important;
  visibility: visible !important;
}
