.replicate-history-card-action {
  position: relative;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.replicate-history-card-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(31, 66, 48, 0.14);
}

.replicate-history-delete {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(224, 95, 115, 0.24);
  border-radius: 50%;
  color: #df536b;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(37, 55, 46, 0.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(0.92);
  transition: opacity 160ms ease, transform 180ms ease, color 160ms ease, background 160ms ease;
}

.replicate-history-card-action:hover .replicate-history-delete,
.replicate-history-card-action:focus-within .replicate-history-delete {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: replicate-history-delete-float 1.35s ease-in-out infinite;
}

.replicate-history-delete:hover,
.replicate-history-delete:focus-visible {
  color: #fff;
  background: #e05f73;
  outline: none;
  animation-play-state: paused;
}

@keyframes replicate-history-delete-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1); }
}

@media (hover: none) {
  .replicate-history-delete {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    animation: none !important;
  }
}

.replicate-delete-confirm .ant-modal-content {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(212, 226, 217, 0.9);
  border-radius: 22px;
  box-shadow: 0 26px 72px rgba(24, 52, 38, 0.2);
}

.replicate-delete-confirm .ant-modal-confirm-body-wrapper {
  padding: 26px 28px 24px;
}

.replicate-delete-confirm .ant-modal-confirm-body {
  align-items: flex-start;
}

.replicate-delete-confirm .ant-modal-confirm-title {
  padding-top: 2px;
  color: #18251f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.replicate-delete-confirm .ant-modal-confirm-content {
  margin-top: 10px;
  color: #6f8177;
  font-size: 14px;
  line-height: 1.75;
}

.replicate-delete-confirm-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 14px;
  border-radius: 14px;
  color: #e05f73;
  background: rgba(224, 95, 115, 0.11);
}

.replicate-delete-confirm .ant-modal-confirm-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.replicate-delete-confirm .ant-modal-confirm-btns .ant-btn {
  min-width: 94px;
  height: 42px;
  margin-inline-start: 0;
  border-radius: 12px;
  font-weight: 700;
}

.replicate-delete-confirm .ant-btn-dangerous.ant-btn-primary {
  border-color: #e05f73;
  background: #e05f73;
  box-shadow: 0 9px 20px rgba(224, 95, 115, 0.24);
}

.replicate-delete-confirm .ant-btn-dangerous.ant-btn-primary:hover {
  border-color: #cf4861;
  background: #cf4861;
}
