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

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

.icon-animation-preview-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

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

.icon-animation-preview-item.is-active .icon-animation-preview-button .wp-block-zenblocks-button-basic-content {
  background: #f0f6fc !important;
}

.icon-animation-preview-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}

.icon-animation-preview-button {
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100% !important;
}

.icon-animation-preview-button .wp-block-zenblocks-button-basic-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff !important;
}

.icon-animation-preview-button .wp-block-zenblocks-button-basic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  width: 24px !important;
  height: 24px !important;
  /* _icon.scss のトランジションがプレビューに干渉するのを防止 */
  transition: none !important;
}

/* wrap_icon の ::before 擬似要素（アイコンフレーム）を無効化 */
.icon-animation-preview-button .wp-block-zenblocks-button-basic-icon.wrap_icon::before {
  display: none !important;
}

/* .default と .hover は absolute で重ねる */
.icon-animation-preview-button .wp-block-zenblocks-button-basic-icon > .default,
.icon-animation-preview-button .wp-block-zenblocks-button-basic-icon > .hover {
  position: absolute !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  /* _icon.scss の opacity/visibility トランジションがプレビューに干渉するのを防止 */
  transition: none !important;
  /* transform は force-hover.scss で各アニメーションごとに設定 */
}

.icon-animation-preview-button .wp-block-zenblocks-button-basic-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  color: #000;
  stroke: #000;
}

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

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